CN111339583B - Method, device and server for determining sequence of models in virtual space - Google Patents

Method, device and server for determining sequence of models in virtual space Download PDF

Info

Publication number
CN111339583B
CN111339583B CN202010220818.XA CN202010220818A CN111339583B CN 111339583 B CN111339583 B CN 111339583B CN 202010220818 A CN202010220818 A CN 202010220818A CN 111339583 B CN111339583 B CN 111339583B
Authority
CN
China
Prior art keywords
model
wall
home decoration
decoration material
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010220818.XA
Other languages
Chinese (zh)
Other versions
CN111339583A (en
Inventor
胡文康
章思喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong 3vjia Information Technology Co Ltd
Original Assignee
Guangdong 3vjia Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong 3vjia Information Technology Co Ltd filed Critical Guangdong 3vjia Information Technology Co Ltd
Priority to CN202010220818.XA priority Critical patent/CN111339583B/en
Publication of CN111339583A publication Critical patent/CN111339583A/en
Application granted granted Critical
Publication of CN111339583B publication Critical patent/CN111339583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a device and a server for determining a model sequence in a virtual space, wherein the method comprises the following steps: displaying a virtual space corresponding to the home decoration design file through a preset page; the virtual space consists of wall models, and house decoration material models are placed in the virtual space; when a material ordering instruction is received, determining a target wall model from wall models in the virtual space according to a preset wall selection strategy; determining a target house decoration material model belonging to the target wall model from the house decoration material model according to the projection of the house decoration material model relative to the target wall model; and determining the arrangement sequence of the target home decoration material models based on the position of the projection corresponding to the target home decoration material models in the target wall models. The invention can effectively improve the rationality of the sequence of the home decoration materials.

Description

Method, device and server for determining sequence of models in virtual space
Technical Field
The invention relates to the technical field of home decoration design, in particular to a method, a device and a server for determining a model sequence in a virtual space.
Background
With the improvement of living standard, users pay more attention to daily life quality, wherein on one hand, professional home decoration designers are employed to design own houses so that the houses are more attractive and comfortable, and after the professional home decoration designers finish home decoration design in software, the professional home decoration designers generally need to output numbers of each home decoration material model in a home decoration design file by using the software so as to facilitate the home decoration designers to browse each home decoration material model in the home decoration design file, adjust the home decoration material model later and the like, however, the inventor researches find that the existing method for determining the sequence of the home decoration material model has the problem of poor rationality, and the determined sequence is messy, so that the home decoration designer is inconvenient to browse and adjust the home decoration design file.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, a device and a server for determining a model sequence in a virtual space, which can effectively improve the rationality of the sequence of home decoration materials.
In a first aspect, an embodiment of the present invention provides a method for determining a material sequence in a virtual space, where the method is applied to a server, where the server stores a home decoration design file, where the home decoration design file includes a wall model and a home decoration material model, and the method includes: displaying a virtual space corresponding to the home decoration design file through a preset page; the virtual space consists of the wall body model, and the home decoration material model is placed in the virtual space; when a material ordering instruction is received, determining a target wall model from wall models in the virtual space according to a preset wall selection strategy; determining a target house decoration material model belonging to the target wall model from the house decoration material model according to the projection of the house decoration material model relative to the target wall model; and determining the arrangement sequence of the target home decoration material models based on the position of the projection corresponding to the target home decoration material models in the target wall models.
In one embodiment, the step of determining the target wall model from the wall models of the virtual space displayed on the preset page according to the preset wall selection policy includes: determining candidate wall models according to the relative position sequence among the wall models; and if the included angle between the horizontal line corresponding to the candidate wall model and the abscissa axis in the preset coordinate system is in the preset included angle interval, determining the candidate wall model as a target wall model.
In one embodiment, the step of determining a target house decoration material model belonging to the target wall model from the house decoration material models according to the projection of the house decoration material model relative to the target wall model includes: for each home decoration material model in the virtual space, determining a wall model to which the home decoration material model belongs by adopting at least one of the following modes: determining a wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model; or determining a wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model; and obtaining a target home decoration material model belonging to the target wall model.
In one embodiment, the step of determining the wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model includes: determining a wall model in which the projection of the designated side center point of the home decoration material model is positioned as a wall model to which the home decoration material model belongs; or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, determining the wall model with the smallest included angle with the home decoration material model as the wall model to which the home decoration material model belongs; or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, and the included angles between the home decoration material model and each wall model are the same, determining the wall model with the front arrangement sequence of the wall models as the wall model to which the home decoration material model belongs; the step of determining the wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model comprises the following steps: and determining the wall model closest to the home decoration material model as the wall model to which the home decoration material model belongs.
In one embodiment, the method further comprises: and determining the arrangement sequence of the wall models according to the relative positions of the wall models.
In one embodiment, the step of determining the arrangement sequence of the target home decoration material model based on the position of the projection corresponding to the target home decoration material model in the target wall model includes: judging whether an associated home decoration material model associated with the target home decoration material model exists in the virtual space; wherein the target home decoration material model and the associated home decoration material model belong to the same home decoration combination; if so, determining the height value of each home decoration material model in a home decoration combination to which the target home decoration material model belongs from the ground, and determining the arrangement sequence of each home decoration material model in the home decoration combination according to the sequence from small to large of the height values; if not, determining the height value of the target household material model corresponding to the target wall model from the ground, and determining the arrangement sequence of the target household material model according to the sequence from small to large of the height value; the method further comprises the steps of: and if the height values of the target home material models corresponding to the target wall models from the ground are the same, determining the arrangement sequence of the target home material models according to the sequence from near to far of the distances between the target house material models and the wall models.
In one embodiment, the home decoration design file is formatted in CAD format.
In a second aspect, an embodiment of the present invention further provides a device for determining a material sequence in a virtual space, where the device is applied to a server, where the server stores a home decoration design file, where the home decoration design file includes a wall model and a home decoration material model, and the device includes: the target wall body determining module is used for determining a target wall body model from all the wall body models when receiving a material ordering instruction;
the projection unit determining module is used for determining a projection unit corresponding to the target wall model according to the projection of each home decoration material model in the virtual space corresponding to the target wall model; and the sequence determining module is used for determining the sequence of each home decoration material model corresponding to the target wall model according to the relative position of the projection unit corresponding to the target wall model and the target wall model.
In a third aspect, embodiments of the present invention also provide a method comprising a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the method according to any of the first aspects provided.
In a fourth aspect, embodiments of the present invention also provide a computer storage medium storing computer software instructions for use with any of the methods provided in the first aspect.
The embodiment of the invention has the following beneficial effects:
the method, the device and the server for determining the model sequence in the virtual space are applied to a server storing a home decoration design file, the home decoration design file comprises at least one wall model and a plurality of home decoration material models, each wall model forms at least one virtual space, each home decoration material model is placed at a designated position in each virtual space. According to the method, the home decoration material model is projected to the target wall body, so that the projection unit of the home decoration material model corresponding to the target wall body model is determined, and then the sequence of each home decoration material model is determined according to the position of the projection unit corresponding to the target wall body model in the target wall body model.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for determining a model order in a virtual space according to an embodiment of the present invention;
fig. 2 is a schematic projection view of a home decoration material model according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for determining a model order in a virtual space according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for determining a material sequence in a virtual space according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, the existing method for exporting the cabinet body number of the CAD (Computer Aided Design ) does not accord with the general numbering rule, so that the exported CAD cabinet number is poor in readability, and the actual requirement of the home decoration design cannot be met. The space utilization rate in the home decoration design is low, the compact and attractive effect cannot be achieved, particularly, after the cabinet body structure is adjusted, the design needs to be restarted, the effect drawing designed before is basically abandoned, namely, the problem that the existing method for determining the sequence of the home decoration material model is poor in rationality is solved, the final home decoration design effect is affected, and based on the method, the device and the server for determining the sequence of the model in the virtual space, provided by the embodiment of the invention, the rationality of the sequence of the home decoration material can be effectively improved.
For the convenience of understanding the present embodiment, first, a detailed description is given of a method for determining a model sequence in a virtual space, which is disclosed in the present embodiment, where the method is applied to a server, where the server stores a home decoration design file, where the home decoration design file includes at least one wall model and a plurality of home decoration material models, where each wall model forms at least one virtual space, each home decoration material model is placed at a specified position in each virtual space, where the home decoration design file may represent selection and placement of each wall model and each home decoration material model, and by displaying the home decoration design file to a user, the user may obtain a result of the home decoration design, and in one embodiment, the format of the home decoration design file may use a CAD format, referring to a flow diagram of a method for determining a model sequence in a virtual space shown in fig. 1, where the method mainly includes the following steps:
step S102, displaying virtual spaces corresponding to the home decoration design files through preset pages. The virtual space consists of wall models, and house decoration material models are placed in the virtual space.
Step S104, when receiving the material sorting instruction, determining a target wall model from the wall models in the virtual space according to a preset wall selection strategy.
The material sorting instruction is used for instructing the server to start sorting the home decoration material models in the home decoration design file, and the wall body selection strategy can be used for selecting a target wall body model from all wall body models in the home decoration design file. In one embodiment, the wall selection policy may be to sequence each wall model in the home decoration design file from left to right (or from right to left), if the included angle between the leftmost wall model (or the rightmost wall model) and the preset coordinate system is in the preset included angle area, determine the leftmost wall model (or the rightmost wall) as the target wall model, sequence the home decoration material model corresponding to the target wall model, and when the home decoration material model corresponding to the target wall model is sequenced, continue to determine the target wall model from the other wall models according to the wall selection policy until the home decoration material models corresponding to all wall models in the home decoration design file are sequenced.
And S106, determining a target house decoration material model belonging to the target wall model from the house decoration material models according to the projection of the house decoration material model relative to the target wall model.
Before sorting the house decoration material models based on the target wall models, the house decoration material models corresponding to the target wall models should be determined. In one embodiment, a rule for determining a correspondence between a house decoration material model and a wall model may be preset, and a house decoration material model corresponding to a target wall model may be determined according to the rule for determining, for example, the rule for determining is set to project from a center point of a back surface of the house decoration material model, and the wall model where the projection is located is determined as the wall model corresponding to the house decoration material model.
Step S108, determining the arrangement sequence of the target home decoration material models based on the position of the projection corresponding to the target home decoration material models in the target wall models.
In one embodiment, the home decoration material models may be ordered according to the sequence of the projection unit from bottom to top, so as to obtain the sequence of each home decoration material model corresponding to the target wall model. In another embodiment, it may be determined whether a projection unit has an associated projection unit, and if so, the projection unit and its associated projection unit are used as a home decoration combination, and the projection units corresponding to the home decoration material model in the home decoration combination are ranked, and then the home decoration combination is ranked as a whole.
According to the method for determining the model sequence in the virtual space, provided by the embodiment of the invention, the home decoration material models are projected to the target wall, so that the projection units of the home decoration material models corresponding to the target wall models are determined, and then the sequences of the home decoration material models are determined according to the positions of the projection units corresponding to the target wall models, and the embodiment of the invention relies on the wall models to determine the sequences of the home decoration material models, so that the sequences of the home decoration material models are more visual and reasonable, and further, a home decoration designer can conveniently perform subsequent operations on the home decoration design files on the basis of the sequences of the home decoration material models.
In order to facilitate understanding the above step S104, the embodiment of the present invention provides an implementation manner of determining a target wall model from wall models in a virtual space according to a preset wall selection policy, where candidate wall models may be determined according to a relative position sequence between the wall models, and if an included angle between a horizontal line corresponding to the candidate wall model and an abscissa axis in a preset coordinate system is in a preset included angle interval, the candidate wall model is determined as the target wall model. Assuming that a preset included angle interval is 30 degrees, assuming that a wall model A1, a wall model A2 and a wall model A3 exist, if all the wall models are ordered from left to right, determining that the order of the wall models is A2, A3 and A1, then the candidate wall model is the wall model A2, and if the included angle between the wall model A2 and the abscissa axis in a preset coordinate system is 20 degrees and is smaller than the preset included angle interval, then the wall model A2 is determined to be the target wall model.
Furthermore, according to the embodiment of the invention, the arrangement sequence of each wall model can be determined according to the relative position between each wall model, for example, the arrangement sequence of each wall model is A2, A3 and A1, and the included angles between the wall model A1, the wall model A2 and the wall model A3 and the abscissa axis in the preset coordinate system are all smaller than 30 degrees, so that the arrangement sequence of each wall model is [ A2, A3 and A1].
In order to facilitate understanding the step S106, the embodiment of the present invention provides a specific implementation manner of determining a projection unit corresponding to a target wall model according to projection of each home decoration material model in a virtual space corresponding to the target wall model, and may refer to the following steps 1 to 2 to determine whether the home decoration material model corresponds to the target wall model:
and step 1, determining a wall model to which each home decoration material model belongs by adopting at least one of the following modes aiming at each home decoration material model in the virtual space.
Mode one: and determining a wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model. In practical application, the wall model of the home decoration material model can be determined based on the projection position according to the following (1) to (3):
(1) And determining the wall model where the projection of the designated side center point of the home decoration material model is located as the wall model where the home decoration material model belongs. The designated side center point may be a center point of the back surface of the home decoration material model. In order to facilitate understanding, the embodiment of the invention provides a schematic projection diagram of a home decoration material model, and as shown in fig. 2, a projection of a center point of a back surface of the home decoration material model is located in a wall model A2, so that the home decoration material model can be determined to belong to the wall model A2.
(2) If the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, the wall model with the smallest included angle with the home decoration material model is determined as the wall model to which the home decoration material model belongs. For example, the projection of the center point of the back surface of the home decoration material model is located at the junction of the wall body model A1 and the wall body A2, then an included angle A1 between the home decoration material model and the wall body model A1 and an included angle A2 between the home decoration material model and the wall body model A2 are calculated, and if the included angle A1 is greater than the included angle A2, the home decoration material model belongs to the wall body model A2.
(3) If the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, and the included angles between the home decoration material model and each wall model are the same, the wall model with the front arrangement sequence of the wall models is determined as the wall model to which the home decoration material model belongs. For example, the arrangement sequence of each wall model is determined as [ A2, A3, A1] according to the above method, if the projection of the back center point of the house decoration material model is located at the junction of the wall model A1 and the wall A2, and the included angle A1 is equal to the included angle A2, because the arrangement sequence of the wall models is [ A2, A3, A1], that is, the wall model A1 is more forward, the wall mousse to which the house decoration material model belongs is the wall model A2.
Mode two: and determining the wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model. In a specific embodiment, the wall model closest to the house decoration material model may be determined as the wall model to which the house decoration material model belongs. Specifically, the distance between the home decoration material model and each wall model can be calculated, if the distance between the home decoration material model and the wall model A1 is l1, the distance between the home decoration material model and the wall model A2 is l2, the distance between the home decoration material model and the wall model A3 is l3, and if the distance l2 is the smallest, the home decoration material model can be determined to belong to the wall model A2.
And 2, obtaining a target home decoration material model belonging to the target wall model. By the method, the wall models of all home decoration material models in the home decoration design file are determined, and if the target wall model is the wall model A2, all home decoration material models belonging to the wall model 2 can be directly obtained and determined as target home decoration material models.
In order to facilitate understanding the step S108, the embodiment of the present invention further provides a specific implementation manner of determining the arrangement sequence of the target home decoration material model based on the position of the projection corresponding to the target home decoration material model in the target wall model, which is referred to as the following steps a to d:
And a step a, judging whether an associated home decoration material model associated with the target home decoration material model exists in the virtual space. If yes, executing the step b; if not, executing the step c. Wherein the target home decoration material model and the related home decoration material model belong to the same home decoration combination. For example, in a home design process, a plurality of cabinets may be set as one home decoration combination, or a tea table and a sofa may be set as one home decoration combination, and then each home decoration material model in the home decoration combination has an association relationship with the rest of home decoration material models in the home decoration combination.
And b, determining the height value of each home decoration material model in the home decoration combination to which the target home decoration material model belongs from the ground, and determining the arrangement sequence of each home decoration material model in the home decoration combination according to the sequence of the height values from small to large. In practical application, if the target home decoration material belongs to a home decoration combination, the home decoration material models contained in the home decoration combination can be firstly ordered, for example, home decoration material models with the height from the ground being less than 700mm are firstly ordered, then home decoration material models with the height from the ground being less than or equal to 700mm and less than or equal to 1000mm are ordered, finally home decoration material models with the height from the ground being more than 1000mm are ordered, and all home decoration material models in the home decoration combination are ordered according to the range. And after the home decoration combination sorting is finished, sorting other home decoration combinations or target home decoration material models without related home decoration material models.
And c, determining the height value of the target household material model corresponding to the target wall model from the ground, and determining the arrangement sequence of the target household material model according to the sequence of the height value from small to large. For example, for a target home decoration material model without an associated home decoration material model, the home decoration material models can be ranked according to the rule of firstly ranking the home decoration material models with the height from the ground less than 700mm, then ranking the home decoration material models with the height from the ground less than or equal to 700mm and X less than or equal to 1000mm, and finally ranking the home decoration material models with the height from the ground more than 1000 mm.
And d, if the height values of the target home material models corresponding to the target wall models from the ground are the same, determining the arrangement sequence of the target home material models according to the sequence from near to far of the distances between the target home decoration material models and the wall models. If the height of the target house decoration material B1 from the ground is the same as the height of the target house decoration material B2 from the ground, and if the target house decoration material B1 is closer to the target wall model, the sequence of the target house decoration materials is [ B1, B2 ].
Based on the method for determining the model sequence in the virtual space provided by the embodiment, the embodiment of the invention also provides another method for determining the model sequence in the virtual space, and the method for determining the model sequence in the virtual space provided by the embodiment of the invention takes the house decoration material model as an example to better determine the sequence of the house decoration material model such as the house decoration material model by taking the house decoration material model as the example, so that the sequence of the house decoration material model such as the house decoration material model is more reasonable. Referring to fig. 3, a flow chart of another method for determining a model sequence in a virtual space is shown, where the method includes a judgment mode of a wall surface to which a unit belongs, an ordering rule of the wall surface unit, and a combined ordering rule, and the method mainly includes the following steps:
In step S302, a first wall (i.e., the aforementioned target wall model) is determined from each wall in the home decoration design file.
Step S304, determining whether a custom unit (i.e., the foregoing home decoration material model) exists in the home decoration design file. If yes, go to step S306; if not, step S314 is performed. Wherein, the home decoration material model can comprise a whole cabinet body or a whole door, etc. Taking the case that the customizing unit is a cabinet body as an example, when determining the wall body to which the customizing unit belongs, the following rules can be adopted: the wall projected by the central point of the back of the cabinet body is used as the wall surface to which the cabinet body belongs, and even if the angle of the cabinet body deviates to another wall surface, the wall surfaces are ordered according to the mapping of the central point of the cabinet body; when the cabinet body has two walls in the projection direction, the nearest wall is taken as the reference; when the projection position of the center of the cabinet body is the junction of the two walls, the included angle between the cabinet body and the two walls is used for judging which wall belongs to.
Further, the wall body to which the cabinet body belongs can be judged according to the included angle between the cabinet body and the wall body, and the method is specific: when the included angle between the cabinet body and one wall body is smaller, the cabinet body belongs to the wall body; when the included angle between the cabinet body and the two walls is equal, the cabinet body belongs to the wall body with the front ordered wall bodies. The projected surface of the center point of the back of the wall body is the front of the wall body, and units belonging to the same wall body exist in CAD of the same wall body when CAD is exported.
In step S306, a first custom unit projected onto the first wall is determined.
Step S308, judging whether the first custom unit belongs to a home decoration combination. If yes, go to step S310; if not, step S312 is performed.
Step S310, according to the projection of the first customizing unit on the first wall, other customizing units in the home decoration combination of the customizing unit are ordered according to the combination ordering rule. Wherein, the combined ordering rule may include: sequencing from the combined floor cabinets, re-sequencing the middle cabinets in the combination, and finally sequencing the hanging cabinets in the combination; and after the combination sorting is finished, continuing to carry out the sorting backwards according to the wall sorting. The cabinet ordering priority within a combination is higher than other cabinet ordering, but is subject to overall cabinet ordering. In addition, the sorting function is effective when the scheme is used for exporting the CAD, and any scheme is used for sorting the cabinet at the last moment when the CAD is exported.
Step S312, the first customizing units are ordered according to the projection of the first customizing units on the first wall. The serial number of the first custom unit must be continuously numbered after the serial number of the last custom unit. When the cabinet is in concrete implementation, the cabinet bodies can be ordered according to the height of the cabinet bodies above the ground, when the projections of the cabinet bodies on the same wall are overlapped, the cabinet bodies close to the wall are selected to be preferentially ordered, and one of the two completely overlapped cabinet bodies is selected to be preferentially ordered; the custom units are characterized in that the units of the top sealing plate are ordered (taking the wall as a unit) after the ordering of other custom units is completed; when ordering of other customized units is completed (including a top sealing plate), the unit attribute is CAD (computer aided design) to be output independently of the island platform, and the serial numbers of the island platform are arranged after the other cabinet bodies are arranged; the serial numbers of the island platforms are the same as the ordering rules of the combined cabinet body.
Specifically, when the cabinet bodies are ordered according to the height of the cabinet bodies above the ground, the height of the cabinet bodies above the ground can be firstly ordered to be less than 700mm, then the height of the cabinet bodies above the ground is ordered to be more than or equal to 700mm and less than or equal to 1000mm, and finally the custom units with the height of the cabinet bodies above the ground are ordered to be more than 1000 mm; when the projection left sides of the units on the wall surface are aligned, firstly sorting the units to be high and low, and then sorting the units to be high and low; when the units are aligned and consistent in height on the left side of the projection on the wall surface, the units are firstly ordered to be close to the wall and then ordered to be far from the wall.
Step S314, judging whether the next numbered wall exists. If yes, go to step S304; if not, ending. When the method is specifically implemented, all units projected on one wall can be ordered and then the units of the next wall are ordered, all the cabinets on one wall are arranged and then the cabinets are arranged, and finally the hanging cabinets are arranged.
In summary, the method for determining the material sequence in the virtual space provided by the embodiment meets the actual requirements, follows the general numbering rule, has stronger practicability, makes the cabinet layout in the home decoration design more reasonable, and has an important role in generating the cabinet ordering method by the CAD auxiliary function in the home decoration design software.
For the method for determining the material sequence in the virtual space provided by the above embodiment, the embodiment of the present invention provides a device for determining the material sequence in the virtual space, which is applied to a server, where the server stores a home decoration design file, and the home decoration design file includes a wall model and a home decoration material model, and referring to a schematic structural diagram of a device for determining the material sequence in the virtual space shown in fig. 4, the device includes the following modules:
The display module 402 is configured to display, through a preset page, a virtual space corresponding to the home decoration design file; the virtual space consists of wall models, and house decoration material models are placed in the virtual space;
the wall determining module 404 is configured to determine, when receiving the material sorting instruction, a target wall model from wall models in the virtual space according to a preset wall selection policy;
a material determining module 406, configured to determine a target home decoration material model belonging to the target wall model from the home decoration material models according to the projection of the home decoration material model relative to the target wall model;
the ranking module 408 is configured to determine a ranking order of the target home decoration material models based on the positions of the projections corresponding to the target home decoration material models in the target wall model.
According to the determining device for the material sequence in the virtual space, provided by the embodiment of the invention, the home decoration material model is projected to the target wall body, so that the projection unit of the home decoration material model corresponding to the target wall body model is determined, and then the sequence of each home decoration material model is determined according to the position of the projection unit corresponding to the target wall body model, and the determining device for the material sequence in the virtual space, which is provided by the embodiment of the invention, depends on the wall body model to determine the sequence of the home decoration material model, so that the sequence of the home decoration material model is more visual and reasonable, and a home decoration designer can conveniently perform subsequent operation on the home decoration design file on the basis of the sequence of the home decoration material model.
In one embodiment, the wall determination module 404 is further configured to: determining candidate wall models according to the relative position sequence among the wall models; and if the included angle between the horizontal line corresponding to the candidate wall model and the abscissa axis in the preset coordinate system is in the preset included angle interval, determining the candidate wall model as a target wall model.
In one embodiment, the material determining module 406 is further configured to: for each home decoration material model in the virtual space, determining a wall model to which the home decoration material model belongs by adopting at least one of the following modes: determining a wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model; or determining a wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model; and obtaining a target home decoration material model belonging to the target wall model.
In one embodiment, the material determining module 406 is further configured to: determining a wall model in which the projection of the designated side center point of the home decoration material model is positioned as a wall model to which the home decoration material model belongs; or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, determining the wall model with the smallest included angle with the home decoration material model as the wall model to which the home decoration material model belongs; or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, and the included angles between the home decoration material model and each wall model are the same, determining the wall model with the front arrangement sequence of the wall models as the wall model to which the home decoration material model belongs; determining a wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model, wherein the step comprises the following steps: and determining the wall model closest to the home decoration material model as the wall model to which the home decoration material model belongs.
In one embodiment, the apparatus further includes a wall sequence determining module configured to: and determining the arrangement sequence of the wall models according to the relative positions of the wall models.
In one embodiment, the sorting module 408 is further configured to: judging whether an associated home decoration material model associated with the target home decoration material model exists in the virtual space; wherein the target home decoration material model and the related home decoration material model belong to the same home decoration combination; if so, determining the height value of each home decoration material model in the home decoration combination to which the target home decoration material model belongs from the ground, and determining the arrangement sequence of each home decoration material model in the home decoration combination according to the sequence from small to large of the height value; if not, determining the height value of the target household material model corresponding to the target wall model from the ground, and determining the arrangement sequence of the target household material model according to the sequence from small to large of the height value; the method further comprises the steps of: and if the height values of the target home material models corresponding to the target wall models from the ground are the same, determining the arrangement sequence of the target home material models according to the sequence from near to far of the distances between the target home material models and the wall models.
In one embodiment, the format of the home decoration design file is in CAD format.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
The device is a server, and in particular, the server comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by a processor, performs the method of any of the above embodiments.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 100 includes: processor 50, memory 51, bus 52 and communication interface 53, processor 50, communication interface 53 and memory 51 being connected by bus 52; the processor 50 is arranged to execute executable modules, such as computer programs, stored in the memory 51.
The memory 51 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is achieved via at least one communication interface 53 (which may be wired or wireless), and the internet, wide area network, local network, metropolitan area network, etc. may be used.
Bus 52 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 5, but not only one bus or type of bus.
The memory 51 is used for storing a program, and the processor 50 executes the program after receiving an execution instruction, and the method executed by the apparatus for defining a flow in any of the foregoing embodiments of the present invention may be applied to the processor 50 or implemented by the processor 50.
The processor 50 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware in the processor 50 or by instructions in the form of software. The processor 50 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 51 and the processor 50 reads the information in the memory 51 and in combination with its hardware performs the steps of the above method.
The computer program product of the readable storage medium provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment and will not be described herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. A method for determining a model order in a virtual space, the method being applied to a server, the server storing a home decoration design file, the home decoration design file including a wall model and a home decoration material model, the method comprising:
displaying a virtual space corresponding to the home decoration design file through a preset page; the virtual space consists of the wall body model, and the home decoration material model is placed in the virtual space;
When a material ordering instruction is received, determining a target wall model from wall models in the virtual space according to a preset wall selection strategy;
determining a target house decoration material model belonging to the target wall model from the house decoration material model according to the projection of the house decoration material model relative to the target wall model;
determining the arrangement sequence of the target home decoration material model based on the position of the projection corresponding to the target home decoration material model in the target wall model;
the step of determining a target house decoration material model belonging to the target wall model from the house decoration material model according to the projection of the house decoration material model relative to the target wall model comprises the following steps:
for each home decoration material model in the virtual space, determining a wall model to which the home decoration material model belongs by adopting at least one of the following modes:
determining a wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model; or determining a wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model;
Acquiring a target home decoration material model belonging to the target wall model;
the step of determining the wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model comprises the following steps:
determining a wall model in which the projection of the designated side center point of the home decoration material model is positioned as a wall model to which the home decoration material model belongs;
or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, determining the wall model with the smallest included angle with the home decoration material model as the wall model to which the home decoration material model belongs;
or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, and the included angles between the home decoration material model and each wall model are the same, determining the wall model with the front arrangement sequence of the wall models as the wall model to which the home decoration material model belongs;
the step of determining the wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model comprises the following steps:
and determining the wall model closest to the home decoration material model as the wall model to which the home decoration material model belongs.
2. The method of claim 1, wherein the step of determining the target wall model from the wall models of the virtual space presented by the preset page according to a preset wall selection policy comprises:
determining candidate wall models according to the relative position sequence among the wall models;
and if the included angle between the horizontal line corresponding to the candidate wall model and the abscissa axis in the preset coordinate system is in the preset included angle interval, determining the candidate wall model as a target wall model.
3. The method according to claim 1, wherein the method further comprises:
and determining the arrangement sequence of the wall models according to the relative positions of the wall models.
4. The method of claim 1, wherein the step of determining the ranking order of the target house ornamentation material model based on the position of the projection corresponding to the target house ornamentation material model in the target wall model comprises:
judging whether an associated home decoration material model associated with the target home decoration material model exists in the virtual space; wherein the target home decoration material model and the associated home decoration material model belong to the same home decoration combination;
If so, determining the height value of each home decoration material model in a home decoration combination to which the target home decoration material model belongs from the ground, and determining the arrangement sequence of each home decoration material model in the home decoration combination according to the sequence from small to large of the height values;
if not, determining the height value of the target household material model corresponding to the target wall model from the ground, and determining the arrangement sequence of the target household material model according to the sequence from small to large of the height value;
the method further comprises the steps of:
and if the height values of the target home material models corresponding to the target wall models from the ground are the same, determining the arrangement sequence of the target home material models according to the sequence from near to far of the distances between the target house material models and the wall models.
5. The method of claim 1, wherein the home decoration design file is formatted in CAD format.
6. A device for determining a sequence of material in a virtual space, the device being applied to a server, the server storing a home decoration design file, the home decoration design file comprising a wall model and a home decoration material model, the device comprising:
The display module is used for displaying the virtual space corresponding to the home decoration design file through a preset page; the virtual space consists of the wall body model, and the home decoration material model is placed in the virtual space;
the wall body determining module is used for determining a target wall body model from the wall body models of the virtual space according to a preset wall body selection strategy when receiving the material sorting instruction;
the material determining module is used for determining a target house decoration material model belonging to the target wall model from the house decoration material models according to the projection of the house decoration material model relative to the target wall model;
the ordering module is used for determining the ordering sequence of the target home decoration material models based on the position of the projection corresponding to the target home decoration material models in the target wall models;
the material determining module is further configured to:
for each home decoration material model in the virtual space, determining a wall model to which the home decoration material model belongs by adopting at least one of the following modes:
determining a wall model to which the home decoration material model belongs according to the projection position of the designated side center point of the home decoration material model; or determining a wall model to which the home decoration material model belongs according to the distance between the home decoration material model and the wall model;
Acquiring a target home decoration material model belonging to the target wall model;
the material determining module is further configured to:
determining a wall model in which the projection of the designated side center point of the home decoration material model is positioned as a wall model to which the home decoration material model belongs;
or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, determining the wall model with the smallest included angle with the home decoration material model as the wall model to which the home decoration material model belongs;
or if the projection of the center point of the appointed side of the home decoration material model is positioned at the junction of any two wall models, and the included angles between the home decoration material model and each wall model are the same, determining the wall model with the front arrangement sequence of the wall models as the wall model to which the home decoration material model belongs;
the material determining module is further configured to:
and determining the wall model closest to the home decoration material model as the wall model to which the home decoration material model belongs.
7. A server comprising a processor and a memory;
stored on the memory is a computer program which, when executed by the processor, performs the method of any one of claims 1 to 5.
8. A computer storage medium storing computer software instructions for use with the method of any one of claims 1 to 5.
CN202010220818.XA 2020-03-25 2020-03-25 Method, device and server for determining sequence of models in virtual space Active CN111339583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010220818.XA CN111339583B (en) 2020-03-25 2020-03-25 Method, device and server for determining sequence of models in virtual space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010220818.XA CN111339583B (en) 2020-03-25 2020-03-25 Method, device and server for determining sequence of models in virtual space

Publications (2)

Publication Number Publication Date
CN111339583A CN111339583A (en) 2020-06-26
CN111339583B true CN111339583B (en) 2023-09-12

Family

ID=71184503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010220818.XA Active CN111339583B (en) 2020-03-25 2020-03-25 Method, device and server for determining sequence of models in virtual space

Country Status (1)

Country Link
CN (1) CN111339583B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344532A (en) * 2018-10-23 2019-02-15 美宅科技(北京)有限公司 A kind of indoor design method and device applied to real estate

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344532A (en) * 2018-10-23 2019-02-15 美宅科技(北京)有限公司 A kind of indoor design method and device applied to real estate

Also Published As

Publication number Publication date
CN111339583A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN104077446B (en) The method and system of two-dimentional electrical construction document are extracted from digital three-dimemsional model
CN101339640A (en) Network platform based footwear customization system and method
CN113486436B (en) Soft installation design method, device, equipment and storage medium based on tree structure
CN108564645B (en) Rendering method of house model, terminal device and medium
CN115081042A (en) Rendering method, device and equipment based on sole characteristic data and storage medium
CN114708412A (en) Indoor setting method, device and system based on VR
CN111339583B (en) Method, device and server for determining sequence of models in virtual space
CN110880167A (en) Indoor effect graph description generation method and device and electronic equipment
CN112560158A (en) Table preview body generation method and table design system in home decoration design
JP3786410B2 (en) Fillet creation method and 3D CAD program
JP5028980B2 (en) Document editing apparatus and program
JP4992399B2 (en) Document editing apparatus and program
CN114849228A (en) Method, device and equipment for layout of control in game and storage medium
CN113274150B (en) Gum construction method and system
JP2003187263A (en) Projection control processor and computer program
CN112233226B (en) Index information determining method, device and system based on index and graphic linkage
CN114820968A (en) Three-dimensional visualization method and device, robot, electronic device and storage medium
CN112100540B (en) CANVAS-based picture cross mirror tiling method and storage medium
CN116320341A (en) Meta-universe virtual space self-adaptive projection control system, method, electronic equipment and storage medium
CN115018995B (en) Three-dimensional modeling shoe body model generation method and device drawn layer by layer
CN111652970B (en) Three-dimensional CAD model generation method, device, computer equipment and storage medium
WO2024098713A1 (en) Terminal desktop display method, terminal and computer-readable medium
CN112560157B (en) Automatic generation method and system for high-low table top group
CN115494982A (en) Method, device and medium for smoothing sliding path of electronic blackboard eraser
CN114969863A (en) Method and device for integrating and flatly paving drawing elements to shoe model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant