CN110889152A - Method and device for establishing model relation, computer equipment and storage medium - Google Patents
Method and device for establishing model relation, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110889152A CN110889152A CN201810949840.0A CN201810949840A CN110889152A CN 110889152 A CN110889152 A CN 110889152A CN 201810949840 A CN201810949840 A CN 201810949840A CN 110889152 A CN110889152 A CN 110889152A
- Authority
- CN
- China
- Prior art keywords
- model
- models
- design
- target model
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000013461 design Methods 0.000 claims abstract description 259
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 8
- 230000000007 visual effect Effects 0.000 claims description 4
- 238000012986 modification Methods 0.000 abstract description 14
- 230000004048 modification Effects 0.000 abstract description 14
- 230000036544 posture Effects 0.000 description 29
- 230000008569 process Effects 0.000 description 17
- 238000012938 design process Methods 0.000 description 11
- 238000010172 mouse model Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000009434 installation Methods 0.000 description 5
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a method, a system, a computer device and a storage medium for establishing a model relation. The method comprises the following steps: obtaining model attribute information of a target model; determining design information of the target model in a design scene according to the model attribute information of the target model; determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene; and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene. By adopting the method, the model relation among the models in the design scene can be automatically determined, so that other models in the design scene can realize linkage editing according to the modification of the target model, and the design speed and the operation efficiency are greatly improved; and design errors and design deviations caused by manual operation or insufficient experience of designers can be avoided, so that the accuracy of the design result is greatly improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for establishing a model relationship, a computer device, and a storage medium.
Background
With the continuous development of social economy, people have higher and higher requirements on building design, and reasonable engineering design cannot be designed elaborately by engineering designers. Often, designers will use some computer software to implement the design of an engineering solution.
In the traditional engineering design process, computer equipment is often needed to modify the design result, for example, moving the position of a certain model. At this time, the designer needs not only to move the model to be moved but also to manually modify the positions or sizes of other models associated with the model. For example, when the position of the wall model in the toilet model needs to be moved for a certain distance to expand the use space of the toilet, other models installed on the wall model of the toilet, including the toilet model or the wash basin model, also need to be manually moved for a certain distance to ensure the accuracy of the design result.
However, the method in the conventional art is used to modify the design result, which results in low operation efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for establishing a model relationship, which can greatly improve the efficiency of modifying a design result.
In a first aspect, an embodiment of the present invention provides a method for establishing a model relationship, where the method includes:
obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
In one embodiment, the step of determining the association relationship between the target model and the other models according to the design information of the target model and the design information of the other models in the design scenario includes:
judging whether the positions of the target model and the other models are adjacent or not according to the positioning rule of the target model, the spatial position of the target model and the spatial positions of the other models;
and if the positions of the target model and the other models are adjacent, determining the position incidence relation of the target model and the other models according to a positioning rule of the target model, a space position of the target model, the posture of the target model and an external influence rule of the target model.
In one embodiment, the step of determining the association relationship between the target model and the other models according to the design information of the target model and the design information of the other models in the design scenario further includes:
and if the positions of the target model and the other models are not adjacent, determining the dependency association relationship of the target model and the other models according to the use rule of the target model, the spatial position of the target model, the posture of the target model and the external influence rule of the target model.
In one embodiment, the object model comprises a plurality of sub-models; the step of determining the association relationship between the target model and the other models according to the design information of the target model and the design information of the other models in the design scene further includes:
respectively acquiring the design information of each sub-model in the target model;
and determining the association relationship between each sub-model and other models in the design scene according to the design information of each sub-model and the design information of other models in the design scene.
In one embodiment, the method further comprises the steps of:
and determining the association relation among the submodels according to the design information of the submodels.
In one embodiment, the method further comprises:
and carrying out visual display on the model relation among the models in the design scene.
In one embodiment, the method further comprises the steps of:
receiving input user-defined relationship information; the user-defined relationship information comprises incidence relationship updating information and incidence relationship establishing information;
and modifying the incidence relation between the target model and the other models according to the custom relation information.
In a second aspect, an embodiment of the present invention provides an apparatus for establishing a model relationship, where the apparatus includes: the device comprises an acquisition module, a first determination module, a second determination module and a first processing module;
the acquisition module is used for acquiring model attribute information of the target model;
the first determining module is used for determining the design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
the second determining module is configured to determine, according to the design information of the target model and the design information of other models in the design scene, an association relationship between the target model and the other models;
the first processing module is used for establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program.
Obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
The method and the device for establishing the model relationship, the computer equipment and the storage medium acquire the model attribute information of the target model through the computer equipment, determine the design information of the target model in the design scene according to the model attribute information of the target model, determine the incidence relationship between the target model and other models by combining the design information of other models in the design scene, and establish the model relationship between the models in the design scene according to the incidence relationship between the target model and other models in the design scene. The design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model. Therefore, when the target model in the design process is modified, the computer equipment can automatically adjust other models according to the model relation, so that the linkage modification and editing of the model based on the model relation are realized. Based on the model relation, other models in a design scene can realize linkage editing according to the modification of a target model in the design and modification processes of a designer, so that the design result is not required to be adjusted one by one through other manual modes such as a mouse or a keyboard, the designer is enabled to concentrate on designing the model required to be modified, the designer is not distracted to the complicated details such as the adaptive adjustment of other models, and the design speed and the operation efficiency are greatly improved; and design errors and design deviations caused by manual operation or insufficient experience of designers can be avoided, so that the accuracy of the design result is greatly improved.
Drawings
FIG. 1 is a diagram of an internal structure of a computer device, according to an embodiment;
FIG. 2 is a flowchart illustrating a method for establishing a model relationship according to an embodiment;
fig. 3 is a schematic flowchart of a method for establishing a model relationship according to another embodiment;
FIG. 4 is a flowchart illustrating a method for building a model relationship according to yet another embodiment;
FIG. 5 is a flowchart illustrating a method for building a model relationship according to yet another embodiment;
FIG. 6 is a flowchart illustrating a method for building a model relationship according to yet another embodiment;
FIG. 7 is a diagram that provides a visual representation of model relationships, according to one embodiment;
fig. 8 is a schematic structural diagram of an apparatus for establishing a model relationship according to an embodiment;
fig. 9 is a schematic structural diagram of a model relationship establishing apparatus according to another embodiment;
FIG. 10 is a schematic structural diagram of an apparatus for building a model relationship according to yet another embodiment;
fig. 11 is a schematic structural diagram of a model relationship establishing apparatus according to yet another embodiment;
fig. 12 is a schematic structural diagram of a model relationship establishing apparatus according to yet another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for establishing the model relationship provided by the embodiment of the invention can be applied to the computer equipment shown in fig. 1, and the computer equipment comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the design information of the model in the present embodiment, and the description of the design information of the model may refer to the contents of the method embodiments described below. The network interface of the computer device is used for communicating with an external terminal through a network connection. Optionally, the computer device may be a server, may be a PC, a personal digital assistant, other terminal devices such as a PAD, a mobile phone, and the like, a cloud, or a remote server, and the specific form of the computer device is not limited in this embodiment. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Of course, the input device and the display screen may not belong to a part of the computer device, and may be external devices of the computer device.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method for establishing a model relationship according to an embodiment. The embodiment relates to a specific process of establishing a model relationship by computer equipment according to information of models in a design scene, wherein the model relationship is used for representing each model in the design scene and an incidence relationship of each model. As shown in fig. 2, the method may include:
s101, obtaining model attribute information of the target model.
Specifically, in the design process, each model needs to be placed at a position in the design scene that matches each model, and the model that needs to be placed is taken as a target model. For example, the design scenario may be a toilet scenario, and a wall model, a wash basin model, a toilet model, a shower model, and the like may be provided in the design scenario, and in this case, the target model may be a wash basin model that needs to be designed in the design process. Of course, in other design scenarios, the target model may also be a conference table model, or may also be a component model composed of a plurality of sub-models.
The computer equipment can read the model attribute information of the target model, and the model attribute information can represent the physical characteristics corresponding to the target model. Wherein the model attribute information of the target model may include: the geometric shape, the outline, the use mode, the positioning rule, the external influence rule, the internal combination rule, the budget rule, the material information, the construction process, the product quality requirement, the weight, the priority, the importance, the design style, the evaluation rule and the like of the target model.
Optionally, the obtaining of the model attribute information of the target model may be triggered by an operation of clicking through a mouse by a designer, or by an operation of inputting an identifier of the model through a keyboard by the designer, or by an operation of completing, according to an automatic positioning rule, an automatic positioning of the model by the model during the design process, which is not limited in this embodiment.
S102, determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model.
Specifically, the computer device determines the spatial position of the model, the posture of the model and the geometric size of the model of the target model in a design scene according to the model attribute information of the target model, and can determine the deformation rule of the model, the positioning rule of the model, the usage rule of the model and the external influence rule of the model corresponding to the target model by searching the identifier of the target model in the database, and use the information as the design information of the target model.
Wherein the spatial position of the model is used for representing the absolute position and the relative position of the model in the design scene; the attitude of the model is used for representing the position and the orientation of the model; the deformation rule of the model is used for representing the rule that the model can change in shape or size in different design scenes; the positioning rule of the model is used for representing the position requirement rule of the model in the placing process; the use rule of the model is used for representing the rule which is satisfied by the model according to the use requirement; the external influence rules of the model are used for representing the influence of the model on other models or design scenes except the model in the design process, including influencing the sizes of the other models, influencing the postures of the other models and the like.
S103, determining the incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene.
Specifically, the computer device may combine the design information of other models in the design scene, including at least one of the geometric dimensions of other respective models, the spatial positions of other respective models, the poses of other respective models, the deformation rules of other respective models, the positioning rules of other respective models, the usage rules of other respective models, and the external influence rules of other respective models, according to the design information of the target model, including at least one of the geometric dimensions of the target model, the spatial positions of the target model, the deformation rules of the target model, the usage rules of the target model, and the external influence rules of the target model, therefore, the target model and other models in the design scene are determined to have the association relationship, and the association mode of the association relationship is determined.
And S104, establishing a model relation among the models in the design scene according to the incidence relation between the target model and other models in the design scene.
Specifically, the computer device can establish a model relationship between the target model and the other models according to an association relationship between the target model and the other models in the design scene, including a one-way association relationship and a two-way association relationship. The model relation can represent whether the models have an incidence relation or not, and whether the incidence relation between the models is a one-way incidence relation or a two-way incidence relation. When the models in the design scene are respectively used as target models, the computer device can establish model relationships among the models in the design scene.
Optionally, the process of establishing the model relationship between the models in the design scenario may be a process of binding the target model with other models in the design scenario according to an association relationship between the target model and other models in the design scenario. For example, the computer device may store the association relationship between the target model and each other model in the design scenario in a mapping table in a one-to-one correspondence manner. Further, the computer device may also bind the association relationship between the target model and each of the other models in the design scene in a manner of lines and the like.
The method for establishing the model relationship provided by this embodiment can obtain the model attribute information of the target model through the computer device, determine the design information of the target model in the design scene according to the model attribute information of the target model, determine the association relationship between the target model and other models by combining the design information of other models in the design scene, and then establish the model relationship between the models in the design scene according to the association relationship between the target model and other models in the design scene. The design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model. Therefore, when the target model in the design process is modified, the computer equipment can automatically adjust other models according to the model relation, so that the linkage modification and editing of the model based on the model relation are realized. Based on the model relation, other models in a design scene can realize linkage editing according to the modification of a target model in the design and modification processes of a designer, so that the design result is not required to be adjusted one by one through other manual modes such as a mouse or a keyboard, the designer is enabled to concentrate on designing the model required to be modified, the designer is not distracted to the complicated details such as the adaptive adjustment of other models, and the design speed and the operation efficiency are greatly improved; and design errors and design deviations caused by manual operation or insufficient experience of designers can be avoided, so that the accuracy of the design result is greatly improved.
Optionally, the association relationship may include a one-way association relationship and a two-way association relationship. The one-way incidence relation means that the first model of the two models with incidence relation depends on the second model, and the second model does not depend on the first model. The bidirectional association relation means that two models with association relation have interdependence relation. Generally, a one-way association relationship may also be referred to as a parent-child association relationship, and a two-way association relationship may also be referred to as a sibling association relationship.
For example, the computer device may determine that the mounting surface of the wash station model is associated with the vertical wall against which the model rests based on the position of the wash station model against the vertical wall in the bathroom scene, and determine that the wash station model needs to follow the vertical wall to move adaptively as the vertical wall moves during the design process, and that the designer may need to change the vertical wall on which the model rests as the wash station model moves, so that the vertical wall against which the model rests does not move as the wash station model moves. Thus, there is a one-way relationship between the wash station model and the vertical wall. For another example, the computer device may be placed on a desktop according to a mouse of the computer, determine that the mouse model has an association relationship with the desk model placed thereon, and determine that the mouse model needs to move adaptively along with the desktop when the desktop height of the desk model changes in the design process, and when the mouse model moves, the desktop height of the desk model does not need to change along with the mouse model, so that the mouse model and the desk model have a one-way association relationship.
For example, the computer device may establish an association relationship between a mouse model and a keyboard model according to a usage rule that a mouse and a keyboard of a computer are generally required to be placed in a certain range of areas for use, and when the mouse model moves, the keyboard model moves along with the mouse model; and when the keyboard model moves, the mouse model moves along with the movement of the keyboard model, so that the association relationship between the mouse model and the keyboard model is a bidirectional association relationship.
In an embodiment, the step of determining the association relationship between the target model and the other models in the design scene according to the design information of the target model and the design information of the other models in the design scene in S103 may be implemented by a method shown in fig. 3, specifically:
s201, judging whether the positions of the target model and other models are adjacent or not according to the positioning rule of the target model, the space position of the target model and the space positions of other models.
It should be noted that the position adjacency of the two models may include that the two models are physically connected, that is, the distance is 0, or may include that the two models have a fixed distance. For example, the wall lamp model is arranged on the wall model, and the distance between the wall lamp model and the wall model is 0, so that the wall lamp model and the wall model are adjacent. For another example, when the bookcase model is placed against the wall model, the fixed distance between the bookcase model and the wall model is 3 centimeters, and then the bookcase model and the wall model are adjacent to each other. If there is no physical connection between the two models, and there is no fixed distance set, the two models are not adjacent.
Specifically, the computer device may determine whether the positions of the target model and the other models are adjacent to each other according to the spatial position of the target model and the spatial positions of the other models in the design scene and by combining the positioning rule of the target. For example, the positioning rules for the wash station model include a floor-to-wall setting, i.e., the wash station model is located 0 from the floor and the mounting surface is located 0 from the mounting wall, then the computer device determines that the wash station model is adjacent to the floor model and the mounting wall model based on the spatial location of the wash station model and the location of the other wall models, and determines that the wash station model is not adjacent to the toilet model and other non-wall models in the vicinity thereof.
S202A, if the target model is adjacent to the other models, determining the position incidence relation between the target model and the other models according to the positioning rule of the target model, the space position of the target model, the posture of the target model and the external influence rule of the target model.
Specifically, if the target model is adjacent to the other models in position, the computer device may determine the position association relationship between the target model and the other models according to the positioning rule of the target model, the spatial position of the target model, the posture of the target model, and the external influence rule of the target model. For example, the wash basin model is adjacent to the floor model and the installation wall model, and the positioning rule of the wash basin model comprises that the floor is arranged close to the wall, namely the distance between the wash basin model and the floor is 0, and the distance between the installation surface of the wash basin model and the installation wall is 0; the posture of the wash basin model is that the supporting legs are downward, the side of the water outlet hole is close to the mounting wall, and the mounting surface of the wash basin model is parallel to the horizontal plane of the mounting wall model; the external influence rule of the wash basin model is that a water outlet model and a water outlet model are required within a preset range of the wash basin model. The computer device determines the position association relationship between the wash basin model and other models according to the spatial position of the wash basin model, the posture of the wash basin model and the external influence rule of the wash basin model, and the method includes the following steps: the mounting surface of the wash basin model is in an incidence relation with the mounting wall at a distance of 0, the support legs of the wash basin model are in an incidence relation with the ground model at a distance of 0, the wash basin model is in an incidence relation with the water outlet model and the water outlet model at a preset distance, and no incidence relation exists among the wash basin model, the ceiling model and other mounting wall models.
S202B, if the positions of the target model and other models are not adjacent, determining the dependency relationship between the target model and other models according to the usage rule of the target model, the space position of the target model, the posture of the target model and the external influence rule of the target model.
Specifically, if the target model is not adjacent to the other models in position, the computer device determines the dependency association relationship between the target model and the other models according to the usage rule of the target model, the spatial position of the target model, the posture of the target model and the external influence rule of the target model. The dependency incidence relation refers to an incidence relation which is established between the models according to functions and meets the use requirements.
For example, the usage rule of the table model and the chair model is that both need to be used within a preset range, and the direction of the sitting person of the chair model is opposite to the direction of the drawer of the table model. The external influence rule of the table model is that a power interface model of the table lamp is required within a preset range of the table model. Therefore, the computer device can determine the dependency relationship between the chair model and the table model and the dependency relationship between the table model and the power interface model according to the spatial position of the table model and the orientation of the drawer of the table model (i.e. the posture of the table model), wherein the dependency relationship is that the positions of the chair model and the table model need to be within a preset range, the orientation of the drawer of the table model is opposite to the sitting direction of the chair model, and the table model needs to be arranged near the power interface model. In application, the dependency relationship may be that when the chair model moves, the table model moves adaptively along with the distance that the chair model moves, and when the chair model changes the orientation, the orientation of the table model changes correspondingly along with the direction of the person sitting on the chair model, and the moving position of the table model is always close to the position of the power interface model.
In the method for establishing a model relationship provided by this embodiment, the computer device can determine whether the positions of the target model and the other models are adjacent according to the positioning rule of the target model, the spatial position of the target model, and the spatial positions of the other models, and when the positions of the target model and the other models are adjacent, determine the position association relationship between the target model and the other models according to the positioning rule of the target model, the spatial position of the target model, the posture of the target model, and the external influence rule of the target model; and when the positions of the target model and other models are not adjacent, determining the dependency association relationship of the target model and other models according to the use rule of the target model, the spatial position of the target model, the posture of the target model and the external influence rule of the target model. Therefore, the position incidence relation and the dependency incidence relation between the models can be automatically established between the models according to the positioning rule and the use rule of the models and by combining the space position of the models, the posture of the models and the external influence rule of the models, and the model relation between the models in a design scene is further automatically determined. The model in the design scene can be based on the model relationship, so that in the design process, when the target model is modified in the design process, the computer equipment can automatically adjust other models according to the model relationship, and the model based on the model relationship is edited in a linkage manner. Based on the model relation, in the design and modification processes of designers, other models in a design scene can realize linkage modification and editing according to modification of a target model, low design efficiency and possible design deviation caused by the fact that the designers adjust design results one by one through other manual modes such as a mouse or a keyboard are avoided, the design speed and the operation efficiency are greatly improved, and the design accuracy is greatly improved.
In an embodiment, the target model may include a plurality of sub models, and the step of determining the association relationship between the target model and other models according to the design information of the target model and the design information of other models in the design scene may be implemented by the method shown in fig. 4, which specifically includes:
s301, respectively obtaining the design information of each sub-model in the target model.
Specifically, when the target model is a combined model formed by a plurality of sub models, the computer device may further read design information of each sub model inside the target model. For example, the sub-models inside the toilet model may include a toilet body sub-model and a paper cassette model, and thus the computer device may read design information of the toilet body sub-model and the paper cassette model.
S302, determining the incidence relation between each sub-model and other models in the design scene according to the design information of each sub-model and the design information of other models in the design scene.
Specifically, the computer device may determine an association relationship between each submodel and other models in the design scenario according to the design information of each submodel and the design information of other models in the design scenario. Further, the associations between each sub-model and other models in the design scenario determined in step S302 may include a location association and a dependency association. For example, the computer device may determine, according to the design information of the toilet body sub-model, that the distance of the positional association between the toilet body model and the ground is 0, the distance of the positional association between the toilet body model and the installation wall model is 2 centimeters, and the distance of the positional association between the paper box model and the installation wall model is 0.
According to the method for establishing the model relationship, the computer device can respectively obtain the design information of each sub-model in the target model, and according to the design information of each sub-model and the design information of other models in the design scene, the incidence relationship between each sub-model and other models in the design scene is determined, so that the model relationship can be established between each sub-model of the target model and other models except the target model, and the model relationship is more accurate. Based on the model relation, the computer equipment can realize linkage editing between the submodel and other models in the target model, so that the modification of the design result is more detailed and accurate, the accuracy of the design result is further improved, and the design quality is improved.
In one embodiment, on the basis of the embodiment shown in fig. 4, the method may further include the following steps:
s401, determining the association relation among the submodels according to the design information of the submodels.
Specifically, the computer device may further determine an association relationship between the submodels according to the design information of each submodel. For example, the wash basin model comprises a wash basin body submodel and a dressing mirror model, so that the computer device can determine the association relationship between the wash basin body submodel and the dressing mirror model according to the design information of the wash basin body submodel, wherein the lower boundary of the dressing submodel is positioned in the distance range of 20-40 centimeters above the wash basin body submodel and is vertically arranged above the wash basin body submodel.
In this embodiment, the computer device establishes a model relationship between the submodels by determining an association relationship between the submodels, and based on the model relationship between the submodels, the computer device can realize linkage editing of other submodels based on the model relationship between the submodels when the submodels of the target model are modified, so that the model relationship is more accurate. Based on the model relation among the self-models, the computer equipment can realize linkage editing among all sub-models in the target model, so that the modification of the design result is more detailed and accurate, the accuracy of the design result is further improved, and the design quality is improved.
In an embodiment, on the basis of the embodiments shown in fig. 2 to 4, the method may further include the following steps:
s501, carrying out visual display on model relations among models in a design scene.
Specifically, the computer device may visually display the model relationship among the models. For example, the associated surfaces of two models with model relationship are connected by a connecting line in a shape like a 'Z', 'V' or 'U' to represent that the two surfaces of the two models have the associated relationship. Referring to the example of fig. 7, as shown in fig. 7, a connection line 1 represents that a preset distance is required to be spaced between the handrail of the wash basin and the other models, connection lines 2 and 3 represent that the two sides of the wash basin model and the wall models on the two sides have an association relationship, connection line 4 represents that a vanity mirror model in the wash basin model and the wall models have an association relationship, and connection line 5 represents that a drainage port model in the wash basin model and a drainage port model on the lower floor have an association relationship. Optionally, the method for visualizing the model relationship may further include displaying the associated surfaces of the two models in the same color, which is not limited in this embodiment as long as the model relationship can be displayed.
In the embodiment, model relations among the models in the design scene are visually displayed, so that a designer can more visually master the model relations among the models, the design and modification processes are easier to master, the learning cost of the designer is greatly reduced, design errors are reduced, and the design quality is improved.
In an embodiment, as shown in fig. 5, on the basis of the embodiments shown in fig. 2 to 4, the following steps may be further included:
s601, receiving input custom relationship information; the custom relationship information includes incidence relationship update information and incidence relationship creation information.
Specifically, the computer device can receive user-defined relationship information input by a user, where the user-defined relationship information may be information defined by the user according to actual design needs, and the user-defined relationship information includes association relationship update information and association relationship creation information. The updating information of the association relationship may include modifying the association relationship of the cause, for example, modifying the association relationship with a distance of 0 to a distance of 2 cm; the association relationship creating information may include setting an association relationship between two models that originally have no association relationship, for example, setting an association surface distance between the two models to be 5 cm.
And S602, modifying the association relationship between the target model and other models according to the custom relationship information.
Specifically, the computer device can modify the association relationship between the target model and other models according to the user-defined relationship information, thereby updating the model relationship.
In this embodiment, the computer device can receive input custom relationship information; the user-defined relationship information comprises incidence relationship updating information and incidence relationship establishing information, and incidence relationships between the target model and other models are modified according to the user-defined relationship information, so that the model relationships are updated, the model relationships can be automatically modified according to the design habits and the design requirements of designers, the design flexibility is greatly improved, and the design efficiency is further improved.
In an embodiment, as shown in fig. 6, the method for establishing the model relationship specifically includes the following steps:
s701, the computer equipment obtains model attribute information of the target model.
S702, determining design information of the target model in a design scene by the computer equipment according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model.
And S703, judging whether the positions of the target model and the other models are adjacent by the computer equipment according to the positioning rule of the target model, the space position of the target model and the space positions of the other models. Thereafter, S704A or S704B is performed.
S704A, if the target model is adjacent to the other models, the computer equipment determines the position incidence relation between the target model and the other models according to the positioning rule of the target model, the space position of the target model, the posture of the target model and the external influence rule of the target model. After that, S705 is performed.
S704B, if the target model is not adjacent to the other models in position, the computer device determines the dependency relationship between the target model and the other models according to the usage rule of the target model, the spatial position of the target model, the posture of the target model and the external influence rule of the target model.
S705, the computer device establishes model relations among the models in the design scene according to the incidence relations between the target model and other models in the design scene.
S706, the computer device respectively obtains the design information of each sub-model in the target model.
And S707, the computer device determines the association relationship between each sub-model and other models in the design scene according to the design information of each sub-model and the design information of other models in the design scene.
And S708, determining the association relation among the submodels by the computer equipment according to the design information of the submodels.
S709, the computer equipment receives input custom relationship information; the custom relationship information includes incidence relationship update information and incidence relationship creation information.
And S710, the computer equipment modifies the incidence relation between the target model and other models according to the custom relation information.
And S711, visually displaying the model relation among the models in the design scene by the computer equipment.
The execution process of S701 to S711 may specifically refer to the description of the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In an embodiment, an apparatus for establishing a model relationship is further provided in an embodiment of the present application, as shown in fig. 8, the apparatus includes: an acquisition module 100, a first determination module 200, a second determination module 300, and a first processing module 400;
specifically, the obtaining module 100 is configured to obtain model attribute information of the target model.
The first determining module 200 is configured to determine design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model.
The second determining module 300 is configured to determine an association relationship between the target model and other models according to the design information of the target model and the design information of other models in the design scenario.
The first processing module 400 is configured to establish a model relationship between models in a design scenario according to an association relationship between a target model and other models in the design scenario.
In one embodiment, as shown in fig. 9, the second determining module 300 may include a first determining unit 310 and a second determining unit 320.
Specifically, the first determining unit 310 is configured to determine whether the target model is adjacent to the other models according to the positioning rule of the target model, the spatial position of the target model, and the spatial positions of the other models;
the second determining unit 320 is configured to determine, when the target model is adjacent to the positions of other models, a position association relationship between the target model and other models according to a positioning rule of the target model, a spatial position of the target model, a posture of the target model, and an external influence rule of the target model.
In one embodiment, the second determining unit 320 may be further configured to determine, when the target model is not adjacent to the other models in position, a dependency relationship between the target model and the other models according to the usage rule of the target model, the spatial position of the target model, the posture of the target model, and the external influence rule of the target model.
In one embodiment, the object model further includes a plurality of sub models, as shown in fig. 10, the second determining module 300 may also include a first obtaining unit 330 and a third determining unit 340.
Specifically, the first obtaining unit 330 is configured to obtain design information of each sub-model inside the target model.
The third determining unit 340 is configured to determine an association relationship between each sub-model and other models in the design scene according to the design information of each sub-model and the design information of other models in the design scene.
In one embodiment, the third determining unit 340 is configured to determine the association relationship between the sub models according to the design information of the sub models.
In an embodiment, the apparatus for establishing the model relationship may further include a display module 500, as shown in fig. 11, where fig. 11 is based on the embodiment shown in fig. 9.
Specifically, the display module 500 is configured to visually display a model relationship between models in a design scene.
In an embodiment, as shown in fig. 12, the apparatus for establishing the model relationship may further include a receiving module 600 and a second processing module 700, where fig. 12 is illustrated on the basis of the embodiment shown in fig. 10.
Specifically, the receiving module 600 is configured to receive input custom relationship information; the custom relationship information includes incidence relationship update information and incidence relationship creation information.
The second processing module 700 is configured to modify the association relationship between the target model and the other models according to the custom relationship information.
The device for establishing a model relationship provided in the above embodiment may implement the above method embodiment, and its implementation principle and technical effect are similar, which are not described herein again.
In an embodiment, the present application further provides a computer device, which may serve as the server, and includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the method of any of the foregoing embodiments when executing the computer program. Specifically, the processor implements the following steps when executing the computer program:
obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
It should be clear that the execution process of the processor when executing the computer program is consistent with the execution process of each step in the method, and specific reference may be made to the above description, and details are not described here.
In one embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps in the method of any of the above embodiments. In particular, the computer program when executed by a processor realizes the steps of:
obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
It should be clear that the execution process of the processor when executing the computer program is consistent with the execution process of each step in the method, and specific reference may be made to the above description, and details are not described here.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for establishing a model relationship, the method comprising:
obtaining model attribute information of a target model;
determining design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
determining an incidence relation between the target model and other models according to the design information of the target model and the design information of other models in the design scene;
and establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
2. The method of claim 1, wherein the step of determining the association between the target model and the other models in the design scenario according to the design information of the target model and the design information of the other models comprises:
judging whether the positions of the target model and the other models are adjacent or not according to the positioning rule of the target model, the spatial position of the target model and the spatial positions of the other models;
and if the positions of the target model and the other models are adjacent, determining the position incidence relation of the target model and the other models according to a positioning rule of the target model, a space position of the target model, the posture of the target model and an external influence rule of the target model.
3. The method of claim 2, wherein the step of determining the association between the target model and the other models according to the design information of the target model and the design information of the other models in the design scenario further comprises:
and if the positions of the target model and the other models are not adjacent, determining the dependency association relationship of the target model and the other models according to the use rule of the target model, the spatial position of the target model, the posture of the target model and the external influence rule of the target model.
4. A method according to any of claims 1-3, wherein the object model comprises a plurality of sub-models; the step of determining the association relationship between the target model and the other models according to the design information of the target model and the design information of the other models in the design scene further includes:
respectively acquiring the design information of each sub-model in the target model;
and determining the association relationship between each sub-model and other models in the design scene according to the design information of each sub-model and the design information of other models in the design scene.
5. The method according to claim 4, characterized in that the method further comprises the steps of:
and determining the association relation among the submodels according to the design information of the submodels.
6. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
and carrying out visual display on the model relation among the models in the design scene.
7. The method according to claim 1, characterized in that the method further comprises the steps of:
receiving input user-defined relationship information; the user-defined relationship information comprises incidence relationship updating information and incidence relationship establishing information;
and modifying the incidence relation between the target model and the other models according to the custom relation information.
8. An apparatus for building a model relationship, the apparatus comprising: the device comprises an acquisition module, a first determination module, a second determination module and a first processing module;
the acquisition module is used for acquiring model attribute information of the target model;
the first determining module is used for determining the design information of the target model in a design scene according to the model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the posture of the model, the deformation rule of the model, the positioning rule of the model, the use rule of the model and the external influence rule of the model;
the second determining module is configured to determine, according to the design information of the target model and the design information of other models in the design scene, an association relationship between the target model and the other models;
the first processing module is used for establishing a model relation between the models in the design scene according to the incidence relation between the target model and other models in the design scene.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810949840.0A CN110889152B (en) | 2018-08-20 | 2018-08-20 | Method, device, computer equipment and storage medium for establishing model relation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810949840.0A CN110889152B (en) | 2018-08-20 | 2018-08-20 | Method, device, computer equipment and storage medium for establishing model relation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110889152A true CN110889152A (en) | 2020-03-17 |
CN110889152B CN110889152B (en) | 2023-09-01 |
Family
ID=69744135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810949840.0A Active CN110889152B (en) | 2018-08-20 | 2018-08-20 | Method, device, computer equipment and storage medium for establishing model relation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110889152B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427971A (en) * | 2020-03-25 | 2020-07-17 | 中国工商银行股份有限公司 | Business modeling method, device, system and medium for computer system |
CN111985011A (en) * | 2020-06-22 | 2020-11-24 | 杭州群核信息技术有限公司 | Customized combined cabinet grouping design method based on inter-board model information |
CN112528437A (en) * | 2020-12-21 | 2021-03-19 | 北京源著智能科技有限公司 | Construction method and device for modular furniture |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110018A (en) * | 2006-07-21 | 2008-01-23 | 石自力 | Design system for computer application system |
CN102663830A (en) * | 2012-04-28 | 2012-09-12 | 北京尔宜居科技有限责任公司 | Data processing method of interior decoration model |
CN106528904A (en) * | 2016-07-09 | 2017-03-22 | 陈志静 | Residential house chart building structure intelligent recognition and functional area automatic planning and designing method |
CN107390875A (en) * | 2017-07-28 | 2017-11-24 | 腾讯科技(上海)有限公司 | Information processing method, device, terminal device and computer-readable recording medium |
US20180150068A1 (en) * | 2016-11-30 | 2018-05-31 | Siemens Aktiengesellschaft | Model processing method and apparatus, and machine-readable medium |
-
2018
- 2018-08-20 CN CN201810949840.0A patent/CN110889152B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110018A (en) * | 2006-07-21 | 2008-01-23 | 石自力 | Design system for computer application system |
CN102663830A (en) * | 2012-04-28 | 2012-09-12 | 北京尔宜居科技有限责任公司 | Data processing method of interior decoration model |
CN106528904A (en) * | 2016-07-09 | 2017-03-22 | 陈志静 | Residential house chart building structure intelligent recognition and functional area automatic planning and designing method |
US20180150068A1 (en) * | 2016-11-30 | 2018-05-31 | Siemens Aktiengesellschaft | Model processing method and apparatus, and machine-readable medium |
CN107390875A (en) * | 2017-07-28 | 2017-11-24 | 腾讯科技(上海)有限公司 | Information processing method, device, terminal device and computer-readable recording medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427971A (en) * | 2020-03-25 | 2020-07-17 | 中国工商银行股份有限公司 | Business modeling method, device, system and medium for computer system |
CN111427971B (en) * | 2020-03-25 | 2024-04-05 | 中国工商银行股份有限公司 | Business modeling method, device, system and medium for computer system |
CN111985011A (en) * | 2020-06-22 | 2020-11-24 | 杭州群核信息技术有限公司 | Customized combined cabinet grouping design method based on inter-board model information |
CN112528437A (en) * | 2020-12-21 | 2021-03-19 | 北京源著智能科技有限公司 | Construction method and device for modular furniture |
CN112528437B (en) * | 2020-12-21 | 2024-03-12 | 北京源著智能科技有限公司 | Method and device for constructing modular furniture |
Also Published As
Publication number | Publication date |
---|---|
CN110889152B (en) | 2023-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110889153A (en) | Model adjusting method and device, computer equipment and storage medium | |
US20230351694A1 (en) | Processing of 2d images to generate 3d digital representations from which accurate building element measurement information can be extracted | |
CN110889152B (en) | Method, device, computer equipment and storage medium for establishing model relation | |
CN112883476B (en) | Layout method and device of building space and electronic equipment | |
US8843352B2 (en) | System and methods facilitating interfacing with a structure design and development process | |
Liu et al. | Constraint-aware interior layout exploration for pre-cast concrete-based buildings | |
CN103247050A (en) | Progressive image partitioning method | |
US11841924B2 (en) | Drawing matching tool | |
CN110634100A (en) | Household type graph generation method and device, electronic equipment and storage medium | |
CN108733873A (en) | Technique profile design drawing generating method, system, device and readable storage medium storing program for executing | |
JP6395092B2 (en) | Light environment design support device, light environment design support system, program | |
Schneider et al. | Smooth bijective maps between arbitrary planar polygons | |
US10055514B2 (en) | Top-down CAD design | |
EP4042314A1 (en) | Generating two-dimensional views with gridline information | |
JP7240846B2 (en) | support equipment | |
US11636235B2 (en) | Systems and methods of predicting architectural materials within a space | |
CN113297652A (en) | Construction drawing generation method, device and equipment | |
CN110555914B (en) | Model information processing method, device, computer equipment and readable storage medium | |
CN110648400B (en) | Space quantization method of model, mapping relation establishment method, device and equipment | |
CN111046467B (en) | House type parametric modeling method and related equipment | |
CN110750816A (en) | Method and device for building model, computer equipment and readable storage medium | |
CN110727973B (en) | Model pose determination method and device, computer equipment and storage medium | |
CN112464327B (en) | Door and window model arrangement method and device, computer equipment and storage medium | |
CN110826116A (en) | Model processing method and device, computer equipment and readable storage medium | |
CN110751715B (en) | Model processing method, device, computer equipment and readable storage medium |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240110 Address after: 210000, Room 015, Building 2, Shuiyuanju, Qinhuai District, Nanjing City, Jiangsu Province Patentee after: Nanjing Runshijing Environmental Engineering Co.,Ltd. Address before: 710003 Room 301, Central Zone, National E-Commerce Demonstration Base, No. 528, Tianguba Road, Software New Town, High-tech Zone, Xi'an City, Shaanxi Province Patentee before: XI'AN SEA2 NETWORK TECHNOLOGY CO.,LTD. |
|
TR01 | Transfer of patent right |