CN110889152B - Method, device, computer equipment and storage medium for establishing model relation - Google Patents

Method, device, computer equipment and storage medium for establishing model relation Download PDF

Info

Publication number
CN110889152B
CN110889152B CN201810949840.0A CN201810949840A CN110889152B CN 110889152 B CN110889152 B CN 110889152B CN 201810949840 A CN201810949840 A CN 201810949840A CN 110889152 B CN110889152 B CN 110889152B
Authority
CN
China
Prior art keywords
model
models
target model
design
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.)
Active
Application number
CN201810949840.0A
Other languages
Chinese (zh)
Other versions
CN110889152A (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.)
Nanjing Runshijing Environmental Engineering Co ltd
Original Assignee
Xi'an Sea2 Network 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 Xi'an Sea2 Network Technology Co ltd filed Critical Xi'an Sea2 Network Technology Co ltd
Priority to CN201810949840.0A priority Critical patent/CN110889152B/en
Publication of CN110889152A publication Critical patent/CN110889152A/en
Application granted granted Critical
Publication of CN110889152B publication Critical patent/CN110889152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 relationship. The method comprises the following steps: obtaining model attribute information of a target model; determining design information of the target model in the design scene according to the model attribute information of the target model; according to the design information of the target model and the design information of other models in the design scene, determining the association relation between the target model and the other models; and establishing model relations among all the models in the design scene according to the association relations between the target model and other models in the design scene. The method can automatically determine the model relation among the models in the design scene, 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 experience deficiency of a designer can be avoided, so that the accuracy of a design result is greatly improved.

Description

Method, device, computer equipment and storage medium for establishing model relation
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for establishing a model relationship, a computer device, and a storage medium.
Background
Along with the continuous development of social economy, the requirements of people on building design are higher and higher, and reasonable engineering design is not separated from the careful design of engineering designers. Often, designers will use some computer software to implement the design of an engineering solution.
In conventional engineering design processes, it is often necessary to use computer equipment to modify the design results, such as to shift the position of a model. At this time, the designer is required not only to move the model to be moved but also to manually modify the position or size of other models associated with the model. For example, when the position of the wall model in the toilet model needs to be moved a certain distance to enlarge the usage space of the toilet, other models installed on the wall model of the toilet, including the toilet model or the toilet table model, also need to be moved a certain distance one by one manually to ensure the accuracy of the design result.
However, the design result is modified by the method in the conventional technology, and the operation efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, and storage medium for creating a model relationship that can greatly improve the modification efficiency of design results.
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 gesture 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 the association relation between the target model and other models according to the design information of the target model and the design information of the other models in the design scene;
and establishing a model relation among all the models in the design scene according to the association 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 in the design scene according to the design information of the target model and the design information of the other models 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 positions of the target model and the spatial positions of the other models;
and if the target model is adjacent to the positions of the other models, determining the position association relation 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 gesture of the target model and the 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 in the design scene according to the design information of the target model and the design information of the other models further includes:
if the positions of the target model and the other models are not adjacent, determining the dependency association relation between the target model and the other models according to the use rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model.
In one embodiment, the target model includes a plurality of sub-models; 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 the other models in the design scene further includes:
Respectively acquiring design information of each sub-model in the target model;
and determining the association 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.
In one embodiment, the method further comprises the steps of:
and determining the association relation among the sub-models according to the design information of the sub-models.
In one embodiment, the method further comprises:
and visually displaying the model relation among the models in the design scene.
In one embodiment, the method further comprises the steps of:
receiving input self-defining relation information; the custom relation information comprises association relation update information and association relation creation information;
and modifying the association 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 design information of the target model in a design scene according to model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the gesture 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 an association relationship between the target model and 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;
the first processing module is configured to establish a model relationship between each model in the design scene according to an association relationship 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 storing a computer program and a processor implementing the following steps when the processor executes 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 gesture 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 the association relation between the target model and other models according to the design information of the target model and the design information of the other models in the design scene;
and establishing a model relation among all the models in the design scene according to the association relation between the target model and other models in the design scene.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs 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 gesture 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 the association relation between the target model and other models according to the design information of the target model and the design information of the other models in the design scene;
and establishing a model relation among all the models in the design scene according to the association relation between the target model and other models in the design scene.
The method, the device, the computer equipment and the storage medium for establishing the model relationship 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, and determine the association relationship between the target model and other models by combining the design information of other models in the design scene, and further establish the model relationship between each model 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 gesture 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 enable other models to be automatically and correspondingly adjusted according to the model relation, so that linkage modification editing of the model based on the model relation is realized. Based on the model relation, in the design and modification process, the designer can realize linkage editing according to the modification of the target model, so that the design results do not need to be adjusted one by one through other manual modes such as a mouse or a keyboard, and the designer is enabled to concentrate on designing the model which is required to be modified, but not dispersing efforts on complicated details such as adaptability adjustment of other models, and therefore the design speed and the operation efficiency are greatly improved; and design errors and design deviations caused by manual operation or experience deficiency of a designer can be avoided, so that the accuracy of a design result is greatly improved.
Drawings
FIG. 1 is an internal block diagram of a computer device provided by one embodiment;
FIG. 2 is a flow chart of a method for establishing model relationships according to one embodiment;
FIG. 3 is a flowchart of a method for creating a model relationship according to another embodiment;
FIG. 4 is a flowchart of a method for creating a model relationship according to another embodiment;
FIG. 5 is a flowchart of a method for creating a model relationship according to another embodiment;
FIG. 6 is a flowchart of a method for creating a model relationship according to another embodiment;
FIG. 7 is a schematic diagram of a visual presentation of model relationships provided by one embodiment;
FIG. 8 is a schematic structural diagram of a modeling apparatus for modeling relationships according to an embodiment;
FIG. 9 is a schematic structural diagram of a modeling apparatus for modeling relationships according to another embodiment;
FIG. 10 is a schematic structural diagram of a modeling apparatus for modeling relationships according to another embodiment;
FIG. 11 is a schematic structural view of a modeling apparatus for modeling relationships according to another embodiment;
fig. 12 is a schematic structural diagram of a device for establishing a model relationship according to another embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the 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, wherein 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store design information of the model in the present embodiment, and description of the design information of the model can be referred to the following method embodiments. 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, a PC, a personal digital assistant, other terminal devices, such as a PAD, a mobile phone, etc., or a cloud or remote server, which is not limited to a specific form of the computer device 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, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Of course, the input device and the display screen may not be part of the computer device, and may be an external device of the computer device.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
FIG. 2 is a flow chart of a method for establishing model relationships provided by one embodiment. The embodiment relates to a specific process of establishing a model relation by computer equipment according to information of models in a design scene, wherein the model relation is used for representing each model in the design scene and association relation of each model. As shown in fig. 2, the method may include:
S101, obtaining model attribute information of a target model.
Specifically, in the design process, each model needs to be placed at a position matched with each model in the design scene, and the model needing to be placed is taken as a target model. For example, the design scene may be a bathroom scene, and a wall model, a washstand model, a toilet model, a shower model, etc. may be provided in the design scene, where the target model may be a washstand model that needs to be designed in the design process. Of course, in other design scenarios, the target model may be a conference table model, or may be a component model composed of multiple 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. The model attribute information of the target model may include: the geometric shape, outline, use mode, positioning rule, external influence rule, internal combination rule, budget rule, material information, construction process, product quality requirement, weight, priority, importance, design style and evaluation rule of the target model.
Optionally, the obtaining the model attribute information of the target model may be triggered by clicking the designer through a mouse, or may be triggered by inputting the identifier of the model through a keyboard by the designer, or may be triggered by completing the operation of automatically positioning the model according to an automatic positioning rule in the design process, which is not limited in this embodiment.
S102, determining design information of a target model in a design scene according to model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the gesture 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, according to the model attribute information of the target model, the computer equipment determines the spatial position of the model, the gesture of the model and the geometric dimension of the model of the target model in the design scene, and can determine 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 corresponding to the target model by searching the identification of the target model in the database, and takes the information as the design information of the target model.
Wherein the spatial position of the model is used to characterize the absolute and relative positions of the model in the design scene; the pose of the model is used to characterize the orientation and direction 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 rules of the model are used for representing rules which the model meets according to use requirements; the external influence rules of the model are used for representing the influence of the model on other models or design scenes outside the model in the design process, including the influence on the sizes of the other models, the influence on the postures of the other models and the like.
S103, according to the design information of the target model and the design information of other models in the design scene, determining the association relation between the target model and the other models.
Specifically, the computer device may determine, according to design information of the target model, at least one of a geometric dimension of the target model, a spatial position of the target model, a posture of the target model, a deformation rule of the target model, a positioning rule of the target model, a usage rule of the target model, and an external influence rule of the target model, and in combination with design information of other models in the design scene, at least one of a geometric dimension of the other models, a spatial position of the other models, a posture of the other models, a deformation rule of the other models, a positioning rule of the other models, a usage rule of the other models, and an external influence rule of the other models, and determine which models of the target model and the other models in the design scene have an association relationship, and determine an association manner of the association relationship.
S104, establishing model relations among all models in the design scene according to the association relations 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 other models in the design scene according to the association relationship between the target model and other models, including a one-way association relationship and a two-way association relationship. The model relation can represent whether the models have an association relation or not, and whether the association relation between the models is a one-way association relation or a two-way association relation. When each model in the design scene is respectively used as a target model, the computer equipment can establish model relations among the models in the design scene.
Alternatively, the process of establishing the model relationship between each model in the design scene may be a process of binding the target model with other models in the design scene according to the association relationship between the target model and the other models in the design scene. For example, the computer device may store the association relationship between the target model and other models in the design scene in a one-to-one correspondence manner in a mapping table. Furthermore, the computer equipment can bind the association relation between the target model and other models in the design scene in a line mode and the like.
According to the method for establishing the model relationship, provided by the embodiment, the model attribute information of the target model can be acquired through the computer equipment, the design information of the target model in the design scene is determined according to the model attribute information of the target model, the association relationship between the target model and other models is determined by combining the design information of other models in the design scene, and then the model relationship between each model in the design scene is established 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 gesture 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 enable other models to be automatically and correspondingly adjusted according to the model relation, so that linkage modification editing of the model based on the model relation is realized. Based on the model relation, in the design and modification process, the designer can realize linkage editing according to the modification of the target model, so that the design results do not need to be adjusted one by one through other manual modes such as a mouse or a keyboard, and the designer is enabled to concentrate on designing the model which is required to be modified, but not dispersing efforts on complicated details such as adaptability adjustment of other models, and therefore the design speed and the operation efficiency are greatly improved; and design errors and design deviations caused by manual operation or experience deficiency of a designer can be avoided, so that the accuracy of a design result is greatly improved.
Alternatively, the association relationship may include a unidirectional association relationship and a bidirectional association relationship. The unidirectional association relationship refers to that a first model of two models with association relationship depends on a second model, and the second model does not depend on the first model. The bidirectional association relationship means that two models with association relationship have mutual dependency relationship. In general, the unidirectional association may also be referred to as a parent-child association, and the bidirectional association may also be referred to as a sibling association.
For example, the computer device may determine that the mounting surface of the toilet model has an association with the vertical wall against which it is placed based on the position of the toilet model against the vertical wall in the toilet scene, and determine that the toilet model needs to follow the movement of the vertical wall adaptively during the design process when the vertical wall moves, and that the designer needs to change the vertical wall on which it is mounted when the toilet model moves, so that the vertical wall against which it is not moved following the movement of the toilet model. Therefore, the model of the hand washing platform and the vertical wall are in one-way association relation. For another example, the computer device may be placed on the desktop according to the mouse requirement of the computer, and it is determined that the mouse model has an association relationship with the desk model placed on the computer device, and it is determined that when the desktop height of the desk model changes in the design process, the mouse model is required to move along with the desktop in an adaptive manner, 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 unidirectional association relationship.
For example, the computer device may establish an association between the mouse model and the keyboard model according to a usage rule that the mouse and the keyboard of the computer are usually required to be placed in a certain area for use, and when the mouse model moves, the keyboard model moves along with the mouse model; when the keyboard model moves, the mouse model moves along with the movement of the keyboard model, so that the association relationship between the keyboard model and the mouse model is a bidirectional association relationship.
In one embodiment, the step of determining the association 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 spatial positions of the target model and the spatial positions of the other models.
It should be noted that the position adjacency of two models may include that the two models are physically connected, i.e. the distance is 0, or that the two models have a fixed distance. For example, if the wall model is set on the wall model and the distance between the wall model and the wall model is 0, the wall model and the wall model are adjacent. For another example, when the bookcase model is placed close to 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. If there is no physical connection between the two models, nor is there a fixed distance set, the two models are not contiguous.
Specifically, the computer device may determine whether the target model is adjacent to the other models according to the spatial positions of the target model and the spatial positions of the other models in the design scene, and in combination with the positioning rule of the target. For example, the positioning rules of the sink model include a floor-to-wall setting, i.e., the sink model is 0 from the floor and the mounting surface is 0 from the mounting wall, then the computer device determines that the sink model is adjacent to its floor model and the mounting wall model based on the spatial location of the sink model and the location of the other wall models, and determines that the sink model is not adjacent to the toilet model and the location of the other non-mounting wall models in its vicinity.
S202A, if the target model is adjacent to the positions of other models, determining the position association relation 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 gesture of the target model and the external influence rule of the target model.
Specifically, if the target model is adjacent to the positions of other models, the computer device may determine the positional 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 platform model is adjacent to the floor model and the mounting wall model, and the positioning rule of the wash platform model comprises setting the floor by the wall, namely, the distance between the wash platform model and the floor is 0, and the distance between the mounting surface and the mounting wall is 0; the hand washing platform model is in a posture that the supporting legs face downwards, the water outlet side is close to the mounting wall, and the mounting surface of the hand washing platform model is parallel to the horizontal plane of the mounting wall model; the external influence rule of the wash platform model is that a water outlet model and a water outlet model are needed in the preset range of the wash platform model. The computer device determines the position association relationship between the wash platform model and other models according to the spatial position of the wash platform model, the gesture of the wash platform model and the external influence rule of the wash platform model, and the method comprises the following steps: the mounting surface of the wash platform model has an association relationship with the mounting wall, the supporting legs of the wash platform model have an association relationship with the ground model, the wash platform model has an association relationship with the water outlet model and the sewer outlet model, and the wash platform model has no association relationship with the suspended ceiling model and other mounting wall models.
S202B, if the positions of the target model and other models are not adjacent, determining the dependency association relation between the target model and the other models according to the use rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model.
Specifically, if the positions of the target model and other models are not adjacent, the computer equipment determines the dependency association relationship between the target model and the other models according to the use rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model. The dependency relationship refers to a relationship which is established between the models according to functions and meets the use requirement.
For example, the rule of use of the table model and the chair model is that both need to be used within a preset range, and the direction of the seated person of the chair model is opposite to the direction of the drawer of the table model. The external influence rule of the desk model is that a power interface model of a desk lamp is needed in a preset range of the desk model. Therefore, the computer device can determine that the chair model and the table model have a dependency relationship with 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), the dependency relationship is that the position of the chair model and the table model needs 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 disposed in the vicinity of the power interface model. In the application, the dependency relationship can be that when the chair model moves, the table model moves along with the distance adaptability of the movement of the chair model, when the placement orientation of the chair model is changed, the orientation of the table model correspondingly changes along with the sitting direction of the chair model, and the movement position of the table model is always close to the position of the power interface model.
According to the method for establishing the model relationship, the computer equipment can judge whether the positions of the target model and 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, the position association relationship between the target model and the other models is determined according to the positioning rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model; when the positions of the target model and other models are not adjacent, determining the dependency association relation between the target model and the other models according to the use rule of the target model, the space position of the target model, the gesture of the target model and the external influence rule of the target model. Therefore, the position association relationship and the dependency association relationship between the models can be automatically established according to the positioning rule and the use rule of the models and by combining the spatial position of the models, the gesture of the models and the external influence rule of the models, so that the model relationship between the models in the design scene is further automatically determined. The model in the design scene can be based on the model relation, so that when the target model is modified in the design process, the computer equipment can enable other models to be adjusted correspondingly automatically according to the model relation, and linkage editing of the model based on the model relation is realized. Based on the model relation, in the design and modification process, other models in a design scene can realize linkage modification editing according to modification of a target model, so that low design efficiency and possible design deviation caused by the fact that the design results are adjusted one by a designer 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 one embodiment, the target model may include a plurality of sub-models, and 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 may be implemented by a method shown in fig. 4, and specifically includes:
s301, respectively acquiring design information of each sub-model in the target model.
Specifically, when the above-mentioned object model is a combined model composed of a plurality of sub-models, the computer device may further read design information of each sub-model inside the object model. For example, the submodel inside the toilet bowl model may include a toilet bowl body submodel and a paper box submodel, so that the computer device may read design information of the toilet bowl body submodel and the paper box submodel.
S302, determining association relations 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, according to the design information of each sub-model and the design information of other models in the design scene, an association relationship between each sub-model and the other models in the design scene. Further, the association relationship between each sub-model determined in this step S302 and other models in the design scene may include a positional association relationship and a dependency association relationship. For example, the computer device may determine that the positional association between the toilet body model and the ground is 0 according to the design information of the toilet body sub-model, the positional association between the toilet body model and the installation wall model is 2 cm, and the positional association between the paper box sub-model and the installation wall model is 0.
According to the method for establishing the model relationship, the computer equipment can acquire 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 association relationship between each sub-model and the other models in the design scene is determined, so that the model relationship between each sub-model of the target model and the other models outside the target model can be established, and the model relationship is more accurate. Based on the model relation, the computer equipment can realize linkage editing between the sub model and other models in the target model, so that the modification of the design result is finer and more 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 all the sub-models according to the design information of all the sub-models.
Specifically, the computer device may further determine an association relationship between the sub-models according to the design information of the sub-models. For example, the wash platform model comprises a wash platform body sub-model and a cosmetic mirror model, so that the computer equipment can determine that the association relationship between the wash platform body sub-model and the cosmetic mirror model is that the lower boundary of the cosmetic mirror model is located in the distance range of 20-40 cm above the wash platform sub-model according to the design information of the wash platform body sub-model and the cosmetic mirror model, and the lower boundary of the cosmetic mirror model is vertically arranged above the wash platform sub-model.
In this embodiment, the computer device establishes the model relationship between the sub-models by determining the association relationship between the sub-models, and based on the model relationship between the sub-models, the computer device can implement linkage editing of other sub-models based on the model relationship between the sub-models when the sub-model of the target model is 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 finer and more accurate, the accuracy of the design result is further improved, and the design quality is improved.
In one embodiment, the method may further include the following steps, based on the embodiments shown in fig. 2 to fig. 4, of the foregoing:
s501, visually displaying the model relation among the models in the design scene.
Specifically, the computer device may visually demonstrate the model relationships between the models. For example, the associated surfaces of two models having a model relationship are connected by a connecting line of a "zigzag," a "V" or a "U" shape to indicate that the two surfaces of the two models have an association relationship. Referring to the example of fig. 7, as shown in fig. 7, the connection line 1 represents a preset distance between the armrest of the toilet table and other models, the connection lines 2 and 3 represent an association relationship between two sides of the toilet table model and two wall models, the connection line 4 represents an association relationship between a cosmetic mirror model in the toilet table model and the wall model, and the connection line 5 represents an association relationship between a drain port model in the toilet table model and a drain port model on the ground. Optionally, the method for visualizing the model relationship may further include displaying the associated surfaces of the two models with the same color, which is not limited in this embodiment, so long as the model relationship can be displayed.
In this embodiment, the model relationships between the models in the design scene are visually displayed, so that a designer can grasp the model relationships between the models more intuitively, the design and modification process is easier to grasp, the learning cost of the designer is greatly reduced, and design errors are reduced, so that the design quality is improved.
In one embodiment, as shown in fig. 5, the embodiment shown in fig. 2-4 may further include the following steps:
s601, receiving input self-defining relation information; the custom relationship information includes association relationship update information and association relationship creation information.
Specifically, the computer device can receive user-defined relationship information input by a user, where the user-defined relationship information can 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 association relation update information may include modifying the association relation of the reason, for example, modifying the association relation with a distance of 0 to a distance of 2 cm; the association relation creation information may include setting an association relation between two models that originally have no association relation, for example, setting an association face distance of both the original models to 5 cm.
S602, modifying the association relation between the target model and other models according to the self-defined relation information.
Specifically, the computer device can modify the association relationship between the target model and other models according to the custom relationship information, so as to update the model relationship.
In this embodiment, the computer device is capable of receiving input custom relationship information; the self-defined relation information comprises association relation updating information and association relation creation information, and the association relation between the target model and other models is modified according to the self-defined relation information, so that the model relation is updated, and the model relation can be automatically modified according to the design habit and the design requirement of a designer, so that the flexibility of design is greatly improved, and the design efficiency is further improved.
In one embodiment, as shown in fig. 6, the method for establishing the model relationship specifically includes the following steps:
s701, the computer equipment acquires model attribute information of the target model.
S702, the computer equipment determines design information of the target model in a design scene according to model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the gesture 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.
S703, the computer equipment judges whether the positions of the target model and other models are adjacent according to the positioning rule of the target model, the spatial positions of the target model and the spatial positions of the other models. After that, S704A or S704B is performed.
S704A, if the target model is adjacent to the positions of other models, the computer equipment determines the position association relation 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 gesture of the target model and the external influence rule of the target model. After that, S705 is performed.
S704B, if the positions of the target model and other models are not adjacent, the computer equipment determines the dependency association relationship between the target model and the other models according to the use rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model.
S705, the computer equipment establishes model relations among all models in the design scene according to the association relations between the target model and other models in the design scene.
S706, the computer equipment respectively acquires the design information of each sub-model in the target model.
And S707, the computer equipment determines the association 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.
And S708, the computer equipment determines the association relation among the sub-models according to the design information of the sub-models.
S709, the computer equipment receives input self-defining relation information; the custom relationship information includes association relationship update information and association relationship creation information.
S710, the computer equipment modifies the association relation between the target model and other models according to the self-defined relation information.
And S711, visually displaying the model relation among the models in the design scene by the computer equipment.
The above execution process of S701 to S711 may be specifically referred to the description of the above embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
It should be understood that, although the steps in the flowcharts of fig. 2-6 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In an embodiment, the embodiment of the present application further provides an apparatus for establishing a model relationship, as shown in fig. 8, where the apparatus includes: the acquisition module 100, the first determination module 200, the second determination module 300 and the 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 the design scene according to model attribute information of the target model; the design information comprises the geometric dimension of the model, the spatial position of the model, the gesture 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 the other models in the design scene.
The first processing module 400 is configured to establish a model relationship between each model in the design scene according to the association relationship between the target model and other models in the design scene.
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 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;
the second determining unit 320 is configured to determine, when the target model is adjacent to the positions of the other models, a positional association relationship between the target model and the 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, a dependency relationship between the target model and the other models according to a usage rule of the target model, a spatial position of the target model, a pose of the target model, and an external influence rule of the target model.
In one embodiment, the object model further includes a plurality of sub-models, and 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 association relationships 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, respectively.
In one embodiment, the third determining unit 340 is configured to determine an association relationship between the sub-models according to the design information of the sub-models.
In one embodiment, the device for establishing a model relationship may further include a display module 500, as shown in fig. 11, where fig. 11 is an illustration based on the embodiment shown in fig. 9.
Specifically, the display module 500 is configured to visually display a model relationship between each model in the design scene.
In one embodiment, as shown in fig. 12, the apparatus for establishing a model relationship may further include a receiving module 600 and a second processing module 700, and fig. 12 is an illustration based on the embodiment shown in fig. 10.
Specifically, the receiving module 600 is configured to receive input custom relationship information; the custom relationship information includes association relationship update information and association relationship creation information.
The second processing module 700 is configured to modify association relationships between the target model and other models according to the custom relationship information.
The device for establishing a model relationship provided in the above embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In an embodiment, the embodiment of the present application further provides a computer device, which may be used as the server, and includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the steps in the method of any of the embodiments. Specifically, the processor, when executing the above computer program, implements the following steps:
obtaining model attribute information of a target model;
determining design information of the target model in the 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 gesture 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;
according to the design information of the target model and the design information of other models in the design scene, determining the association relation between the target model and the other models;
and establishing model relations among all the models in the design scene according to the association relations between the target model and other models in the design scene.
It should be clear that the execution of the computer program by the processor corresponds to the execution of the steps in the method, and the detailed description is omitted here.
In one embodiment, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any of the embodiments described above. In particular, the computer program when executed by the processor performs the steps of:
obtaining model attribute information of a target model;
determining design information of the target model in the 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 gesture 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;
according to the design information of the target model and the design information of other models in the design scene, determining the association relation between the target model and the other models;
and establishing model relations among all the models in the design scene according to the association relations between the target model and other models in the design scene.
It should be clear that the execution of the computer program by the processor corresponds to the execution of the steps in the method, and the detailed description is omitted here.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the claims. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for establishing a model relationship, the method comprising:
obtaining model attribute information of a target model; the model attribute information characterizes the physical characteristics corresponding to the target model;
Determining the spatial position of a model of the target model in a design scene, the posture of the model and the geometric dimension of the model according to the model attribute information of the target model;
determining a deformation rule of a model corresponding to the target model, a positioning rule of the model, a use rule of the model and an external influence rule of the model by searching the identification of the target model in a database;
taking the geometric dimension of the model, the spatial position of the model, the gesture 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 as design information of the target model in a design scene;
determining the association relation between the target model and other models according to the design information of the target model and the design information of the other models in the design scene; the association relationship comprises a position association relationship and a dependent association relationship; the dependency association relationship is an association relationship which is established between the models according to functions and meets the use requirement;
establishing a model relation among all models in the design scene according to the association relation between the target model and other models in the design scene;
Visually displaying the model relation among the models in the design scene; the visual display comprises the steps of connecting the associated surfaces of two models with model relation in the design scene by adopting a V-shaped connecting line;
receiving input self-defining relation information; the custom relation information comprises association relation update information and association relation creation information;
and modifying the association relation between the target model and the other models according to the self-defined relation information so as to update the model relation.
2. The method of claim 1, wherein the step of determining the association between the target model and the other models in the design scene based on 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 positions of the target model and the spatial positions of the other models;
and if the target model is adjacent to the positions of the other models, determining the position association relation 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 gesture of the target model and the 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 in the design scene based on the design information of the target model and the design information of the other models further comprises:
if the positions of the target model and the other models are not adjacent, determining the dependency association relation between the target model and the other models according to the use rule of the target model, the spatial position of the target model, the gesture 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 target model comprises a plurality of sub-models; 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 the other models in the design scene further includes:
respectively acquiring design information of each sub-model in the target model;
and determining the association 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.
5. The method according to claim 4, further comprising the step of:
and determining the association relation among the sub-models according to the design information of the sub-models.
6. A device for establishing a model relationship, the device comprising: the device comprises an acquisition module, a first determination module, a second determination module, a first processing module, a display module, a receiving module and a second processing module;
the acquisition module is used for acquiring model attribute information of the target model; the model attribute information characterizes the physical characteristics corresponding to the target model;
the first determining module is used for determining the spatial position of the model, the gesture of the model and the geometric dimension of the model of the target model in the design scene according to the model attribute information of the target model;
determining a deformation rule of a model corresponding to the target model, a positioning rule of the model, a use rule of the model and an external influence rule of the model by searching the identification of the target model in a database; taking the geometric dimension of the model, the spatial position of the model, the gesture 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 as design information of the target model in a design scene;
The second determining module is configured to determine an association relationship between the target model and 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; the association relationship comprises a position association relationship and a dependent association relationship; the dependency association relationship is an association relationship which is established between the models according to functions and meets the use requirement;
the first processing module is used for establishing a model relation between each model in the design scene according to the association relation between the target model and other models in the design scene;
the display module is used for visually displaying the model relation among the models in the design scene; the visual display comprises the steps of connecting the associated surfaces of two models with model relation in the design scene by adopting a V-shaped connecting line;
the receiving module is used for receiving input self-defining relation information; the custom relation information comprises association relation update information and association relation creation information;
the second processing module is configured to modify an association relationship between the target model and the other models according to the custom relationship information, so as to update the model relationship.
7. The apparatus of claim 6, wherein the second determination module comprises a first determination unit and a second determination unit;
the first determining unit is configured to determine whether the target model is adjacent to the other model according to a positioning rule of the target model, a spatial position of the target model, and a spatial position of the other model;
and the second determining unit is used for determining the position association relation between the target model and other models according to the positioning rule of the target model, the spatial position of the target model, the gesture of the target model and the external influence rule of the target model if the target model is adjacent to the positions of the other models.
8. The apparatus according to claim 7, wherein the second determining unit is further configured to determine, if the target model is not adjacent to the other models, a dependency relationship between the target model and the other models according to a usage 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.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN201810949840.0A 2018-08-20 2018-08-20 Method, device, computer equipment and storage medium for establishing model relation Active CN110889152B (en)

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 CN110889152A (en) 2020-03-17
CN110889152B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112528437B (en) * 2020-12-21 2024-03-12 北京源著智能科技有限公司 Method and device for constructing modular furniture

Citations (4)

* Cited by examiner, † Cited by third party
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121750B (en) * 2016-11-30 2022-07-08 西门子公司 Model processing method and device and machine readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110889152A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN110889152B (en) Method, device, computer equipment and storage medium for establishing model relation
WO2021196515A1 (en) House type graph generation method and apparatus, and computer device and storage medium
US12014120B2 (en) Automated tools for generating mapping information for buildings
US11182513B2 (en) Generating technical drawings from building information models
US8405871B2 (en) Augmented reality dynamic plots techniques for producing and interacting in Augmented Reality with paper plots for which accompanying metadata is accessible
CN105637559A (en) Structural modeling using depth sensors
US20220214999A1 (en) Synchronization of graphical data
US20140236541A1 (en) Virtual reality design apparatus and method thereof
CN110889153A (en) Model adjusting method and device, computer equipment and storage medium
JP2020109626A (en) Apparatus and method for identifying articulatable part of physical object using multiple 3d point clouds
JP6395092B2 (en) Light environment design support device, light environment design support system, program
CN106327247A (en) Self-service home decoration designing and demonstrating system
US11734929B2 (en) Enhanced product visualization technology with web-based augmented reality user interface features
US20230185984A1 (en) Generating Technical Drawings From Building Information Models
CN108564645A (en) Rendering intent, terminal device and the medium of building model
JP5955139B2 (en) Image arrangement control apparatus, image arrangement control method, and program
JP7240846B2 (en) support equipment
US20240087004A1 (en) Rendering 3d model data for prioritized placement of 3d models in a 3d virtual environment
US11636235B2 (en) Systems and methods of predicting architectural materials within a space
CN110648400B (en) Space quantization method of model, mapping relation establishment method, device and equipment
CN110727973B (en) Model pose determination method and device, computer equipment and storage medium
CN111046467B (en) House type parametric modeling method and related equipment
CN110781535A (en) Model plotting method and device, computer equipment and readable storage medium
CN110390116A (en) Model connection processing method, device, computer equipment and readable storage medium storing program for executing
CN110826116A (en) Model processing method and 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