CN111339583A - Method and device for determining model sequence in virtual space and server - Google Patents

Method and device for determining model sequence in virtual space and server Download PDF

Info

Publication number
CN111339583A
CN111339583A CN202010220818.XA CN202010220818A CN111339583A CN 111339583 A CN111339583 A CN 111339583A CN 202010220818 A CN202010220818 A CN 202010220818A CN 111339583 A CN111339583 A CN 111339583A
Authority
CN
China
Prior art keywords
model
home decoration
wall
decoration material
target
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.)
Granted
Application number
CN202010220818.XA
Other languages
Chinese (zh)
Other versions
CN111339583B (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

Images

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 is composed of wall models, and home decoration material models are placed in the virtual space; when a material sorting instruction is received, determining a target wall model from wall models of a virtual space according to a preset wall selection strategy; determining a target home decoration material model belonging to the target wall model from the home decoration material model according to the projection of the home 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 body model. The method can effectively improve the rationality of the sequence of the home decoration materials.

Description

Method and device for determining model sequence in virtual space and server
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, one of the aspects now engages professional home decoration designers to design houses for themselves, so that the houses are more beautiful and comfortable, and after the professional home decoration designers complete the home decoration design in software, the numbers of all home decoration material models in the home decoration design files are generally required to be output by the software, so that the home decoration designers can conveniently browse all the home decoration material models in the home decoration design files and subsequently adjust the home decoration material models, and the like.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, and a server for determining a model sequence in a virtual space, which can effectively improve the rationality of a 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 a home decoration design file is stored in the server, 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 is composed of the wall model, and the home decoration material model is placed in the virtual space; when a material sorting instruction is received, determining a target wall model from the wall models of the virtual space according to a preset wall selection strategy; determining a target home decoration material model belonging to the target wall model from the home decoration material model according to the projection of the home 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 body model.
In one embodiment, the step of determining a target wall model from the wall models of the virtual space displayed on the preset page according to a 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 a preset included angle interval, determining the candidate wall model as a target wall model.
In one embodiment, the step of determining 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 includes: aiming at 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 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; and acquiring 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 the wall model where the projection of the specified side center point of the home decoration material model is located 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 body models, determining the wall body model with the smallest included angle with the home decoration material model as the wall body 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 body models and the included angles between the home decoration material model and each wall body model are the same, determining the wall body model with the forward arrangement sequence of the wall body models as the wall body 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 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 includes: judging whether an associated home decoration material model associated with the target home decoration material model exists in the virtual space; the target home decoration material model and the associated home decoration material model belong to the same home decoration combination; if yes, determining the height value of each home decoration material model in the home decoration assembly 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 assembly according to the sequence of the height values from small to large; if not, determining the height value of a target household material model corresponding to the target wall body model from the ground, and determining the arrangement sequence of the target household material models according to the sequence of the height values from small to large; the method further comprises the following steps: 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 between the target home material models and the wall models.
In one embodiment, the home decoration design file is in a CAD format.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a material sequence in a virtual space, where the apparatus 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 apparatus includes: the target wall body determining module is used for determining a target wall body model from the wall body models when a material sequencing instruction is received;
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, an embodiment of the present invention further provides a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the method of any one of the aspects as provided in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium for storing computer software instructions for use in any one 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 order of the models in the virtual space are applied to the server stored with a home decoration design file, wherein 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, the method displays the virtual space corresponding to the home decoration design file through a preset page, determines a target wall model from the wall models of the virtual space according to a preset wall selection strategy when a material sorting instruction is received, determines 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, and locates the projection corresponding to the target home decoration material model at the position of the target wall model based on the target home decoration material model, and determining the arrangement sequence of the target home decoration material models. The method projects the home decoration material model 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 the sequence of each home decoration material model is determined according to the position, located in the target wall body model, of the projection unit corresponding to 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 aforementioned and other objects, features and advantages of the present invention 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 used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a method for determining a model sequence in a virtual space according to an embodiment of the present invention;
fig. 2 is a schematic projection diagram of a home decoration material model according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of 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 an apparatus 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
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the existing method for exporting the numbering of the CAD (Computer Aided Design) cabinet does not conform to the general numbering rule, so that the readability of the exported numbering of the CAD cabinet is poor, and the actual requirement of home decoration Design cannot be met. The method, the device and the server for determining the model sequence in the virtual space are implemented and provided, and therefore the reasonability of the sequence of the home decoration materials can be effectively improved.
To facilitate understanding of the embodiment, first, a method for determining a model order in a virtual space disclosed in the embodiment of the present invention is described in detail, where the method is applied to a server, the server stores a home decoration design file, the home decoration design file includes 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, the home decoration design file can represent selection and placement of each wall model and each home decoration material model, and by presenting the home decoration design file to a user, the user can obtain a result of home decoration design, in an embodiment, the format of the home decoration design file may be a CAD format, see fig. 1 for a flowchart of a method for determining a model order in a virtual space, the method mainly comprises the following steps:
and S102, displaying a virtual space corresponding to the home decoration design file through a preset page. The virtual space is composed of wall models, and the home decoration material models are placed in the virtual space.
And step S104, when a material sorting instruction is received, determining a target wall model from the wall models of 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 the wall body models in the home decoration design file. In an embodiment, the wall selection policy may be to sort each wall model in the home decoration design file according to a left-to-right sequence (or from right to left), determine that the leftmost wall (or the rightmost wall) is a target wall model if an included angle between the leftmost wall model (or the rightmost wall) and a preset coordinate system is in a preset included angle region, sort the home decoration material models corresponding to the target wall model, and when the sorting of the home decoration material models corresponding to the target wall model is completed, continue to determine the target wall model from the remaining wall models according to the wall selection policy until the sorting of the home decoration material models corresponding to all the wall models in the home decoration design file is completed.
And S106, determining 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.
Before the home decoration material models are sorted based on the target wall model, the home decoration material model corresponding to the target wall model is determined. In an embodiment, a determination rule of a correspondence relationship between the home decoration material model and the wall model may be preset, and the home decoration material model corresponding to the target wall model is determined according to the determination rule, for example, the determination rule is set to perform projection from a central point on the back of the home decoration material model, and the wall model where the projection is located is determined as the wall model corresponding to the home decoration material model.
And 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 body models.
In an embodiment, the home decoration material models may be sorted according to a sequence of the projection units from bottom to top, and then a sequence of the home decoration material models corresponding to the target wall model may be obtained. In another embodiment, whether the projection unit has an associated projection unit may be determined, if yes, the projection unit and the associated projection unit are used as a home decoration assembly, the projection units corresponding to the home decoration material models in the home decoration assembly are sorted, and then the home decoration assembly is sorted as a whole.
According to the method for determining the sequence of the models in the virtual space, provided by the embodiment of the invention, the home decoration material model is projected to the target wall, so that the projection unit of the home decoration material model corresponding to the target wall model is determined, and the sequence of each home decoration material model is determined according to the position, at which the projection unit corresponding to the target wall model is located, of the target wall model.
To facilitate understanding of the step S104, an embodiment of the present invention provides an implementation manner for determining a target wall model from wall models in a virtual space according to a preset wall selection policy, and may determine candidate wall models 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, determine the candidate wall model as the target wall model. Assuming that the preset included angle interval is 30 degrees, assuming that a wall model A1, a wall model A2 and a wall model A3 exist, if the wall models are ranked from left to right, determining that the wall model sequence is A2, A3 and A1, determining that the candidate wall model is a wall model A2, and if the included angle between the wall model A2 and the abscissa axis in the preset coordinate system is 20 degrees and is smaller than the preset included angle interval, determining that the wall model A2 is the target wall model.
Further, in the embodiment of the present invention, an arrangement order of the wall models may also be determined according to the relative positions of the wall models, for example, the order of the wall models is a2, A3, and a1, and angles between the wall model a1, the wall model a2, and the wall model A3 and an abscissa axis in a preset coordinate system are all less than 30 degrees, so that the arrangement order of the wall models is [ a2, A3, a1 ].
To facilitate understanding of the step S106, an embodiment of the present invention provides a specific implementation manner of determining a projection unit corresponding to a target wall model according to projections of each home decoration material model in a virtual space corresponding to the target wall model, where the following steps 1 to 2 are included to determine whether the home decoration material model corresponds to the target wall model:
step 1, aiming at each home decoration material model in the virtual space, determining a wall body model to which the home decoration material model belongs by adopting at least one of the following modes.
The first method is as follows: and determining the wall model to which the home decoration material model belongs according to the projection position of the specified 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 steps (1) to (3):
(1) and determining the wall model where the projection of the specified side center point of the home decoration material model is positioned as the wall model to which the home decoration material model belongs. Wherein, the designated side center point can be the center point of the back of the home decoration material model. For convenience of understanding, the embodiment of the present invention provides a projection schematic diagram of a home decoration material model, as shown in fig. 2, a projection of a central point of a back of the home decoration material model is located on a wall model a2, so that it can be determined that the home decoration material model belongs to a wall model a 2.
(2) And 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 body models, determining the wall body model with the smallest included angle with the home decoration material model as the wall body model to which the home decoration material model belongs. For example, the projection of the center point of the back of the home decoration material model is located at the junction of the wall model a1 and the wall a2, an included angle a1 between the home decoration material model and the wall model a1 and an included angle a2 between the home decoration material model and the wall 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 model a 2.
(3) And 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 body models and the included angles between the home decoration material model and each wall body model are the same, determining the wall body model with the forward arrangement sequence of the wall body models as the wall body model to which the home decoration material model belongs. For example, the arrangement sequence of the wall models is determined to be [ a2, A3, a1] according to the above method, if the projection of the center point of the back of the home decoration material model is located at the intersection of the wall model a1 and the wall a2, and the included angle a1 is equal to the included angle a2, since the arrangement sequence of the wall models is [ a2, A3, a1], that is, the wall model a1 is further forward, the morals of the wall to which the home decoration material model belongs is the wall model a 2.
The second method comprises the following steps: 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 home decoration material model may be determined as the wall model to which the home decoration material model belongs. Specifically, the distance between the home decoration material model and each wall model can be calculated, if the distance from the home decoration material model to the wall model a1 is l1, the distance from the wall model a2 is l2, and the distance from the wall model A3 is l3, and if the distance l2 is the minimum, it can be determined that the home decoration material model belongs to the wall model a 2.
And 2, acquiring a target home decoration material model belonging to the target wall model. The wall model to which all the home decoration material models in the home decoration design file belong is determined by the method, and if the target wall model is the wall model A2, all the home decoration material models belonging to the wall model 2 can be directly obtained and determined as the target home decoration material model.
To facilitate understanding of the step S108, an embodiment of the present invention further provides a specific implementation manner for determining an arrangement order of the target home decoration material models based on a position of the projection corresponding to the target home decoration material model in the target wall model, which is shown in the following steps a to d:
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 step b; if not, executing step c. The target home decoration material model and the associated home decoration material model belong to the same home decoration combination. For example, in the process of designing the home decoration, a plurality of cabinets may be set as a home decoration combination, or the tea table and the sofa may be set as a home decoration combination, and each home decoration material model in the home decoration combination has an association relationship with the rest 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 assembly, the home decoration material models included in the home decoration assembly can be sorted first, for example, the home decoration material models with the ground clearance of less than 700mm are sorted first, then the home decoration material models with the ground clearance of more than or equal to 700mm and less than or equal to 1000mm are sorted, finally the home decoration material models with the ground clearance of more than 1000mm are sorted, and all the home decoration material models in the home decoration assembly are sorted according to the range. And after finishing the sequencing of the home decoration combination, sequencing 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 body model from the ground, and determining the arrangement sequence of the target household material models according to the sequence of the height values from small to large. For example, for a target home decoration material model without a related home decoration material model, the home decoration material models with the ground clearance of less than 700mm can be sorted according to the rule of firstly sorting the home decoration material models with the ground clearance of less than 700mm, then sorting the home decoration material models with the ground clearance of more than 700mm and less than or equal to X and less than or equal to 1000mm, and finally sorting the home decoration material models with the ground clearance of 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 between the target home material models and the wall models. If the height of the target home decoration material B1 from the ground is the same as the height of the target home decoration material B2 from the ground, and if the target home decoration material B1 is closer to the target wall model, the sequence of the target home decoration materials can be obtained as [ B1, B2 ].
Based on the method for determining the order of the models in the virtual space provided by the above embodiment, the embodiment of the present invention further provides another method for determining the order of the models in the virtual space, which, in consideration of practical application, the cabinet body is used as an important link in the design of home decoration, because the number of the cabinet bodies is large and the styles are various, the quality of the layout design is directly related to the overall effect of the home decoration design, in addition, due to the fact that a plurality of associations and limitations exist among the cabinet bodies, a plurality of factors need to be considered, once deviation occurs on the sequencing numbers, the layout design of the cabinet bodies is caused to be problematic, in order to improve the problem, the embodiment of the invention takes the home decoration material model as the cabinet body model for illustration, therefore, the method for determining the sequence of the model in the virtual space provided by the embodiment of the invention can be used for better determining the sequence of the home decoration material models such as the cabinet body and the like, so that the sequence of the cabinet body is more reasonable. Referring to fig. 3, a flow diagram of another method for determining a model order in a virtual space is shown, where the method includes a determination method of a wall to which a unit belongs, a sort rule of a wall unit, and a sort rule of a combination, and the method mainly includes the following steps:
in step S302, a first wall (i.e., the target wall model) is determined from the walls in the home decoration design file.
Step S304, determining whether there is a customization unit (i.e., the aforementioned home decoration material model) 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 the whole cabinet body or the whole door and the like. Taking the case that the customization unit is a cabinet, when determining the wall to which the customization unit belongs, the following rules can be followed: 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 the wall surfaces are mapped according to the central point of the cabinet body to sort even if the angle of the cabinet body is more inclined to the other wall; when two walls are arranged in the projection direction of the cabinet body, the closest wall is taken as the standard; when the central projection 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 body the cabinet body belongs to.
Further, can also judge the wall body that the cabinet body belongs to according to the contained angle between the cabinet body and the wall body, it 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 angles between the cabinet body and the two wall bodies are equal, the cabinet body belongs to the wall body with the wall body sequencing close to the front. The plane projected by the central point of the back of the wall body is the front of the wall body, and the units belonging to the same wall body exist in the CAD of the wall body on the same side when the CAD is derived.
Step S306, determining a first customization unit projected on the first wall body.
Step S308, judging whether the first customization unit belongs to the home decoration combination. If yes, go to step S310; if not, step S312 is performed.
And S310, sorting other customization units in the home decoration combination of the customization units according to a combination sorting rule according to the projection of the first customization unit on the first wall body. Wherein the combined ordering rule may include: sorting from the combined ground cabinets, then sorting the middle cabinets in the combination, and finally sorting the hanging cabinets in the combination; and after the combination and sorting are finished, continuing to sort backwards according to the wall. The cabinet sequencing priority in the combination is higher than that of other cabinets, but the whole cabinet sequencing is obeyed. In addition, the sorting function described above is effective when a plan is derived CAD, and any plan is sorted with the cabinet at the last moment when CAD is derived.
Step S312, sorting the first customization units according to their projections on the first wall. Wherein the sequence number of the first customization unit must be consecutively numbered following the sequence number of the last customization unit. During specific implementation, the cabinets can be sorted according to the height of the cabinets from the ground, when the projections of the cabinets on the same wall surface are overlapped, the cabinets close to the wall are selected to be sorted preferentially, and one of the two completely overlapped cabinets is selected to be sorted preferentially; the units with the customized unit attribute of the capping plate are sorted (by taking a wall as a unit) after the other customized units are sorted; when other customization units are sequenced (including a top sealing plate), the unit attribute is that CAD is to be output independently of the island, and the serial number of the island is sequenced after other cabinets are sequenced; the serial number of the island platforms is equal to the sequencing rule of the combined cabinet body.
Specifically, when the cabinets are sorted according to the ground clearance height of the cabinets, the customization units can be sorted firstly, the ground clearance height is less than 700mm, then the ground clearance height is not less than 700mm and not more than X and not more than 1000mm, and finally the ground clearance height is more than 1000 mm; when the projection left sides of the units on the wall surface are aligned, the units are sorted first and have small ground height, and then are sorted and have large ground height; when the left projection sides of the units on the wall surface are aligned and have consistent heights, the units are sorted firstly and are close to the wall, and then are sorted and are far away from the wall.
Step S314, determine whether there is a next numbered wall. If yes, go to step S304; if not, the process is ended. In the concrete implementation, all units projected on one wall can be sorted and then sorted to the unit of the next wall, and all floor cabinets on one wall can be sorted and then hung in the last row of the middle cabinet.
To sum up, the method for determining the material sequence in the virtual space provided by the embodiment meets the actual requirements, follows the general numbering rules, has stronger practicability, enables the cabinet body layout in the home decoration design to be more reasonable, and has an important role in the generation of the cabinet body sequencing method by the CAD auxiliary function in the home decoration design software.
As to the method for determining a material sequence in a virtual space provided in the foregoing embodiment, an embodiment of the present invention provides a device for determining a material sequence in a virtual space, where the device is applied to a server, the server stores a home decoration design file, the home decoration design file includes a wall model and a home decoration material model, and referring to a schematic structural diagram of the device for determining a material sequence in a virtual space shown in fig. 4, the device includes the following modules:
a display module 402, configured to display a virtual space corresponding to the home decoration design file through a preset page; the virtual space is composed of wall models, and home decoration material models are placed in the virtual space;
a wall determining module 404, configured to determine, when a material sorting instruction is received, a target wall model from wall models in a virtual space according to a preset wall selection policy;
the material determining module 406 is used for determining a target home decoration material model belonging to the target wall model from the home decoration material model according to the projection of the home decoration material model relative to the target wall model;
and the sorting module 408 is configured to determine an arrangement order of the target home decoration material models based on positions of projections corresponding to the target home decoration material models in the target wall model.
The determining device for the material sequence in the virtual space, provided by the embodiment of the invention, projects the home decoration material model to the target wall, so as to determine the projection unit of the home decoration material model corresponding to the target wall model, and further determines the sequence of each home decoration material model according to the position of the projection unit corresponding to the target wall model on the target wall 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 a preset included angle interval, determining the candidate wall model as the target wall model.
In one embodiment, the material determining module 406 is further configured to: aiming at 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 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; and acquiring 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 the wall model where the projection of the specified side center point of the home decoration material model is located 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 body models, determining the wall body model with the smallest included angle with the home decoration material model as the wall body 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 body models and the included angles between the home decoration material model and each wall body model are the same, determining the wall body model with the front wall body model in the arrangement sequence as the wall body model to which the home decoration material model belongs; 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, wherein the step comprises the following steps of: 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 comprises a wall sequencing 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; the target home decoration material model and the associated home decoration material model belong to the same home decoration combination; if yes, 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; if not, determining the height value of the target household material model corresponding to the target wall body model from the ground, and determining the arrangement sequence of the target household material models according to the sequence of the height values from small to large; the method further comprises the following steps: 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 between the target home material models and the wall models.
In one embodiment, the format of the home decoration design file is in a CAD format.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The device is a server, and particularly, the server comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the 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: the processor 50, the memory 51, the bus 52 and the communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected through the 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) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 52 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one 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 defined by the flow process disclosed 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 circuits of hardware or instructions in the form of software in the processor 50. The Processor 50 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed 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 directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, and 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, which is not described herein again.
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 such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for determining model sequence in virtual space is applied to a server, the server stores a home decoration design file, the home decoration design file comprises a wall model and a home decoration material model, and the method comprises the following steps:
displaying a virtual space corresponding to the home decoration design file through a preset page; the virtual space is composed of the wall model, and the home decoration material model is placed in the virtual space;
when a material sorting instruction is received, determining a target wall model from the wall models of the virtual space according to a preset wall selection strategy;
determining a target home decoration material model belonging to the target wall model from the home decoration material model according to the projection of the home 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 body model.
2. The method according to claim 1, wherein the step of determining a target wall model from the wall models of the virtual space displayed on 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 a preset included angle interval, determining the candidate wall model as a target wall model.
3. The method of claim 1, wherein the step of determining a target wall model from the home material models based on the projection of the home material models relative to the target wall model comprises:
aiming at 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 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;
and acquiring a target home decoration material model belonging to the target wall model.
4. The method of claim 3, wherein 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:
determining the wall model where the projection of the specified side center point of the home decoration material model is located 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 body models, determining the wall body model with the smallest included angle with the home decoration material model as the wall body 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 body models and the included angles between the home decoration material model and each wall body model are the same, determining the wall body model with the forward arrangement sequence of the wall body models as the wall body 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.
5. The method of claim 1, further comprising:
and determining the arrangement sequence of the wall models according to the relative positions of the wall models.
6. The method of claim 1, wherein the step of determining the arrangement order of the target home decoration material models based on the position of the projection corresponding to the target home decoration material models on 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; the target home decoration material model and the associated home decoration material model belong to the same home decoration combination;
if yes, determining the height value of each home decoration material model in the home decoration assembly 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 assembly according to the sequence of the height values from small to large;
if not, determining the height value of a target household material model corresponding to the target wall body model from the ground, and determining the arrangement sequence of the target household material models according to the sequence of the height values from small to large;
the method further comprises the following steps:
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 between the target home material models and the wall models.
7. The method of claim 1, wherein the home design file is formatted in a CAD format.
8. An apparatus for determining a material sequence in a virtual space, the apparatus 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 apparatus 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 is composed of the wall 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 selecting strategy when a material sorting instruction is received;
the material determining module is used for determining a target home decoration material model belonging to the target wall model from the home decoration material model according to the projection of the home decoration material model relative to the target wall model;
and the sequencing module is used for 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 body model.
9. A server, comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 7.
10. A computer storage medium storing computer software instructions for use in the method of any one of claims 1 to 7.
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 true CN111339583A (en) 2020-06-26
CN111339583B 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
CN111339583B (en) 2023-09-12

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
CN113486436B (en) Soft installation design method, device, equipment and storage medium based on tree structure
US20230298237A1 (en) Data processing method, apparatus, and device and storage medium
WO2014194656A1 (en) Method and device for data screening
WO2022262856A1 (en) Model loading method and apparatus for head-mounted display device, and head-mounted display device
CN112328880A (en) Geographical region clustering method and device, storage medium and electronic equipment
CN110880167A (en) Indoor effect graph description generation method and device and electronic equipment
CN111339583A (en) Method and device for determining model sequence in virtual space and server
CN116958454B (en) Construction contour construction method and device based on graph network
CN108171794A (en) Plan view projecting method, device, equipment and medium based on threedimensional model
JP3786410B2 (en) Fillet creation method and 3D CAD program
CN104461539A (en) Automatic color matching method for icon base
CN112131841A (en) Document quality evaluation method and system
CN108564637B (en) Geometric model arrangement method and device
CN114849228A (en) Method, device and equipment for layout of control in game and storage medium
CN112884836B (en) Method and device for cutting edge of appliance and electronic equipment
CN109840945B (en) Finite element preprocessing method and device
CN114840779A (en) Object display method and display device
CN112100540B (en) CANVAS-based picture cross mirror tiling method and storage medium
CN110613935A (en) Game data processing method and device and electronic equipment
CN112581030A (en) Bridge BIM model component level progress display method and device and storage medium
CN117058347A (en) Blueprint generation method and device of model and electronic equipment
UA146280U (en) METHOD OF DATA PROCESSING RELATED TO THE COMBINATION OF THREE-DIMENSIONAL MODELS
CN112560157A (en) Automatic generation method and system for high-low table top group
JP2002328958A (en) Mesh generation method, program, recording medium, and mesh generation system

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