Movatterモバイル変換


[0]ホーム

URL:


CN110889153A - Model adjusting method and device, computer equipment and storage medium - Google Patents

Model adjusting method and device, computer equipment and storage medium
Download PDF

Info

Publication number
CN110889153A
CN110889153ACN201810949842.XACN201810949842ACN110889153ACN 110889153 ACN110889153 ACN 110889153ACN 201810949842 ACN201810949842 ACN 201810949842ACN 110889153 ACN110889153 ACN 110889153A
Authority
CN
China
Prior art keywords
model
information
target
association
current
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.)
Pending
Application number
CN201810949842.XA
Other languages
Chinese (zh)
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.)
Xi'an Sea Square Network Technology Co Ltd
Original Assignee
Xi'an Sea Square 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 Sea Square Network Technology Co LtdfiledCriticalXi'an Sea Square Network Technology Co Ltd
Priority to CN201810949842.XApriorityCriticalpatent/CN110889153A/en
Publication of CN110889153ApublicationCriticalpatent/CN110889153A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application relates to a model adjusting method, a model adjusting device, computer equipment and a storage medium. The method comprises the following steps: acquiring initial information of each model and model modification information of a target model in a current design scene; adjusting the target model according to the model modification information of the target model to obtain model update information of the target model; obtaining model modification information of an association model having an association relationship with the target model according to initial information of other models except the target model in the current design scene, model update information of the target model and a preset model relationship; the model relation comprises the relation between the target model and other models except the target model in the design scene; and adjusting the association model according to the model modification information of the association model. By adopting the method, the design efficiency can be greatly improved, and the accuracy of the design result is improved.

Description

Model adjusting method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a model, 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 must not only move the model to be moved, but also manually modify the positions or sizes of other models. 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 desirable to provide a model adjustment method, apparatus, computer device, and storage medium that can improve the work efficiency of designers.
In a first aspect, an embodiment of the present invention provides a method for adjusting a model, where the method includes:
acquiring initial information of each model and model modification information of a target model in a current design scene;
adjusting the target model according to the model modification information of the target model to obtain model update information of the target model;
obtaining model modification information of an association model having an association relationship with the target model according to initial information of other models except the target model in the current design scene, model update information of the target model and a preset model relationship; the model relation comprises the relation between the target model and other models except the target model in the design scene;
and adjusting the association model according to the model modification information of the association model.
In one embodiment, the step of obtaining model modification information of an association model associated with the target model according to initial information of a model other than the target model in the current design scene, model update information of the target model, and a preset model relationship includes:
determining an adjustment rule information set of the current association model according to initial information of other models except the target model in the current design scene, model update information of the target model, a preset model relationship and model attribute information of the current association model; wherein the current association model is one of the association models;
determining an available data set of the current association model according to the adjustment rule information set of the current association model and the design information of the current association model; the design information comprises the geometric dimension of the model, the spatial position of the model and the posture of the model;
and obtaining model modification information of the current association model according to the available data set of the current association model and the design information of the current association model.
In one embodiment, the step of obtaining model modification information of the current correlation model according to the available data set and the design information of the current correlation model comprises:
obtaining a plurality of actual available adjustment information sets corresponding to the current association model according to the available data sets of the current association model and the design information of the current association model;
and obtaining the model modification information of the current association model according to the plurality of actually available adjustment information sets of the current association model.
In one embodiment, the step of obtaining model modification information of the current association model according to the actual available adjustment information set of the current association model includes:
sequencing the plurality of actual available adjustment information sets of the current association model according to a preset priority rule, and taking actual available adjustment information corresponding to one actual available adjustment information set with the highest priority in the plurality of actual available adjustment information sets of the current association model as model modification information of the current association model;
the preset priority rules comprise one or more combinations of model position correct rules, model and overall consistency rules, model cost and model construction difficulty.
In one embodiment, the association model further comprises a plurality of association submodels, the model relationship further comprises a relationship between a plurality of the association submodels and other models than the current association model; the method further comprises the following steps:
and adjusting the size, the position and the posture of each associated submodel and the relationship between each associated submodel and other models except the current associated model according to the model modification information of the current associated model.
In one embodiment, the object model further comprises a plurality of object submodels, the model relationships further comprise relationships between the plurality of object submodels and other models than the object model;
the step of adjusting the target model according to the model modification information of the target model to obtain the model update information of the target model includes:
and adjusting the size, the position and the posture of each target sub-model and the relation between each target sub-model and other models except the target model according to the model modification information of the target model.
In one embodiment, the step of adjusting the association model according to the model modification information of the association model further includes:
acquiring the adjusted scene information of the current design scene;
checking whether the scene information of the current design scene is wrong or not by using a preset check rule; the inspection rules comprise one or more of physical attributes, spatial attributes, model production rules, model processing rules, model installation rules and model use rules of the model;
and if the scene information of the current design scene is wrong, outputting alarm information.
In one embodiment, the method further comprises:
and if the scene information of the current design scene is wrong, correcting according to a preset correction rule.
In a second aspect, an embodiment of the present invention provides an apparatus for adjusting a model, where the apparatus includes: the device comprises a first acquisition module, a first determination module, a second determination module and a first processing module;
the first acquisition module is used for acquiring initial information of each model and model modification information of a target model in a current design scene;
the first determining module is used for adjusting the target model according to the model modification information of the target model to obtain the model update information of the target model;
the second determining module is configured to obtain model modification information of an association model having an association relationship with the target model according to initial information of other models than the target model in the current design scene, model update information of the target model, and a preset model relationship; the model relationships include relationships between the object model and other models than the object model in the design scenario.
The first processing module is used for adjusting the correlation model according to the model modification information of the correlation model.
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:
acquiring initial information of each model and model modification information of a target model in a current design scene;
adjusting the target model according to the model modification information of the target model to obtain model update information of the target model;
obtaining model modification information of an association model having an association relationship with the target model according to initial information of other models except the target model in the current design scene, model update information of the target model and a preset model relationship; the model relation comprises the relation between the target model and other models except the target model in the design scene;
and adjusting the association model according to the model modification information of the association model.
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:
acquiring initial information of each model and model modification information of a target model in a current design scene;
adjusting the target model according to the model modification information of the target model to obtain model update information of the target model;
obtaining model modification information of an association model having an association relationship with the target model according to initial information of other models except the target model in the current design scene, model update information of the target model and a preset model relationship; the model relation comprises the relation between the target model and other models except the target model in the design scene;
and adjusting the association model according to the model modification information of the association model.
According to the model adjusting method, the model adjusting device, the computer equipment and the storage medium, the computer equipment is used for obtaining the initial information of each model and the model modification information of the target model in the current design scene, adjusting the target model according to the model modification information of the target model and obtaining the model update information of the target model, so that the computer equipment is used for automatically adjusting the association model according to the model modification information of the association model, according to the initial information of other models except the target model in the current design scene, the model update information of the target model and the preset model relationship, and further obtaining the model modification information of the association model which has the association relationship with the target model. The model relation comprises the relation between the target model and other models except the target model in the design scene. Therefore, when the target model is modified, the model in the design scene can be correspondingly adjusted based on the associated model of the model relation, and linkage modification and editing of the associated model are achieved. In the process of designing and modifying by designers, the associated model associated with the target model in the design scene can automatically realize linkage editing according to the modification of the target model, so that the design result is not required to be adjusted one by one in other manual modes such as a mouse or a keyboard, the designers are further enabled to concentrate on designing the model required to be modified, and the designers are not distracted on the complicated details such as the adaptive adjustment of other models, and the working efficiency is 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 flowchart illustrating a method for adjusting a model according to an embodiment;
FIG. 8 is a schematic flow chart illustrating a method for adjusting a model according to another embodiment;
FIG. 9 is a flowchart illustrating a method for adjusting a model according to yet another embodiment;
FIG. 10 is a flowchart illustrating a model tuning method according to yet another embodiment;
FIG. 11 is a flowchart illustrating a method for adjusting a model according to another embodiment;
FIG. 12A is a schematic illustration of a design scenario provided in one embodiment;
FIG. 12B is a schematic illustration of a design scenario provided in one embodiment;
FIG. 12C is a schematic illustration of a design scenario provided in one embodiment;
FIG. 12D is a schematic illustration of a design scenario provided in one embodiment;
FIG. 12E is a schematic illustration of a design scenario provided in one embodiment;
FIG. 13 is a schematic structural diagram of an apparatus for adjusting a model according to an embodiment;
FIG. 14 is a schematic structural diagram of a model adjustment apparatus according to another embodiment;
FIG. 15 is a schematic structural diagram of a model adjustment apparatus according to yet another embodiment;
fig. 16 is a schematic structural diagram of a model adjustment 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 model relationship establishing method and the model adjusting method 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 information about the model relationships in the present embodiment, and the description of the model relationships can 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 schematic flow chart of 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 30mm, and then the bookcase model and the wall model are adjacent. 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 relationship between the toilet body model and the floor is 0, the distance of the positional relationship between the toilet body model and the installation wall model is 20mm, and the distance of the positional relationship between the paper box sub-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 sub-model and a dressing mirror model, so that the computer equipment can determine the association relationship between the wash basin body sub-model and the dressing mirror model according to the design information of the wash basin body sub-model and the dressing mirror model, wherein the lower boundary of the dressing sub-model is located within a distance range of 200-400mm above the wash basin body sub-model and is vertically arranged above the wash basin body sub-model.
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. Wherein, 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 20 mm; 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 plane distance between the two models originally to be 50 mm.
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.
The embodiments shown in fig. 2 to 6 are methods for establishing a model relationship in the following embodiments, and the following will describe, in specific embodiments, embodiments of a method for adjusting a model in a design scenario in which the model relationship is established.
FIG. 7 is a flowchart illustrating a method for model tuning, according to an embodiment. The embodiment relates to a specific process of adjusting the association model of the target model by the computer device according to the initial information of each model in the design scene, the modification information of the target model and the model relationship. As shown in fig. 7, the method may include:
s801, acquiring initial information of each model and model modification information of a target model in a current design scene.
Specifically, the computer device may read information of all models in the current design scenario, and use the information of all models before adjustment as initial information of each model, where the initial information may include geometric dimensions of all models before adjustment, spatial positions of the models, and poses of the models. When the designer needs to modify the target model, the designer may input model modification information of the target model through an input device (such as a mouse or a keyboard), where the model modification information may include position modification information of the target model, posture modification information of the target model, size modification information of the target model, and the like.
For example, the designer clicks the wall model by a mouse and moves the wall model to the left by a distance of 100mm, and the computer device can acquire the model modification information of the target model as the wall model moves to the left by 100mm according to the clicking and moving operations of the designer.
S802, adjusting the target model according to the model modification information of the target model to obtain model updating information of the target model.
Specifically, the computer device may adjust the target model accordingly according to the model modification information input by the designer, and obtain model update information of the target model. The model update information of the target model may include the position, orientation, and size of the adjusted target model, and the amount of adjustment of the position, the amount of adjustment of the size, and the amount of adjustment of the orientation of the target model.
S803, obtaining model modification information of an association model having an association relation with the target model according to initial information of other models except the target model in the current design scene, model update information of the target model and a preset model relation; the model relationships include relationships between the object model and other models than the object model in the design scenario. Specifically, the process of establishing the above model relationship can be referred to the above description.
Specifically, the computer device may determine, according to a preset model relationship, an association model corresponding to the model update information of the target model and having an association relationship with the target model in the current design scene, and further determine, according to the model update information of the target model, model modification information of the association model. The model modification information of the associated model may include one or more of position modification information, pose modification information, and size modification information.
It should be noted that the association model is one or more of other models than the target model in the design scenario. The model relation comprises the relation between the target model and other models except the target model in the design scene, and the model relation can represent whether the models have the incidence relation or not, and whether the models have the incidence relation or not is a one-way incidence relation or a two-way incidence relation when the models have the incidence relation.
For example, the computer device may determine that the wash basin model and the toilet model installed on the vertical wall model need to be adapted and that the wash basin model and the toilet model need to be moved 100mm to the left according to model update information of the vertical wall in the toilet scene that is close to the model update information and the association relationship between the wash basin model and the vertical wall model in the toilet scene that is close to the model update information.
S804, the correlation model is adjusted according to the model modification information of the correlation model.
Specifically, the computer device adjusts the correlation model according to the model modification information of the correlation relationship, including adjusting the position of the correlation model to move along with the target model, adjusting the size of the correlation model to change along with the adaptive change of the target model, and adjusting the posture of the correlation model to change along with the change of the target model.
The model adjusting method provided in this embodiment can obtain, through the computer device, the initial information of each model and the model modification information of the target model in the current design scene, and adjust the target model according to the model modification information of the target model, to obtain the model update information of the target model, so as to obtain the model modification information of the association model having an association relationship with the target model according to the initial information of other models than the target model in the current design scene, the model update information of the target model, and the preset model relationship, thereby implementing that the computer device automatically adjusts the association model according to the model modification information of the association model. The model relation comprises the relation between the target model and other models except the target model in the design scene. Therefore, the method can enable the model in the design scene to be correspondingly adjusted based on the associated model of the model relation when the target model is modified, so that linkage modification and editing of the associated model are realized. In the process of designing and modifying by designers, the associated model associated with the target model in the design scene can automatically realize linkage editing according to the modification of the target model, so that the design result is not required to be adjusted one by one in other manual modes such as a mouse or a keyboard, the designers are further enabled to concentrate on designing the model required to be modified, and the designers are not distracted on the complicated details such as the adaptive adjustment of other models, and the design efficiency is 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.
In one embodiment, the model modification information of the target model may be model modification information input by a designer. If the correlation model of the current target model is used as the target model to be adjusted next, the model modification information of the target model may also be the model modification information of the correlation model determined by the correlation model being adjusted according to the target model.
In an embodiment, the step of obtaining, in S803, model modification information of an association model associated with the target model according to initial information of a model other than the target model in the current design scene, model update information of the target model, and a preset model relationship may be implemented by the method shown in fig. 8, and specifically may include:
s901, determining an adjustment rule information set of the current association model according to initial information of other models except the target model in the current design scene, model update information of the target model, a preset model relation and model attribute information of the current association model; wherein the current association model is one of the association models.
Specifically, the association model of the target model may be more than one, and the computer device may determine the model modification information of each association model respectively. The computer equipment can determine a current association model which has association with the target model in other models in the current design scene according to model update information and a preset model relationship of the target model and initial information of other models except the target model in the current design scene, and determine an adjustment rule information set of the current association model according to model attribute information of the current association model; wherein the current association model is one of the association models. The adjustment rule information set of the current correlation model may include an information set of an adjustment range in which the current correlation model can be adjusted theoretically.
For example, the computer device determines that the current association model of the vertical wall model is the wash basin model according to initial information of other wall models, other models and the ground model except the vertical wall model in the bathroom scene and model update information of the vertical wall model (i.e. the target model) which moves 10mm to the left, and by combining the model relations among the models in the bathroom scene. The adjustment rule information set of the wash basin model includes information sets that after the wall model moves, all the area ranges of the floor model and the wall model in the bathroom scene can be used as the space positions where the wash basin model can be placed, the size range of the wash basin model and all the postures of the wash basin model.
S902, determining an available data set of the current association model according to the adjustment rule information set of the current association model and the design information of the current association model; the design information includes the geometric size of the model, the spatial position of the model, the pose of the model, and the like.
Specifically, the computer device screens out, from the adjustment rule information set, positions where the wash basin model cannot be placed and postures where the wash basin model cannot be unfolded according to the geometric size, the spatial position and the postures of the current association model, so as to determine an available data set that can be adjusted by the current association model.
For example, the computer device may be able to screen out the smallest geometric area smaller than the wash station model from the area left free by all floor models and wall models based on the geometric, spatial, and posture of the wash station model, thereby determining the spatial, posture, and geometric dimensions in which the wash station model can be placed properly.
And S903, obtaining model modification information of the current association model according to the available data set of the current association model and the design information of the current association model.
Specifically, the computer device determines, from the available data set of the current correlation model, model modification information of the current correlation model that can satisfy the conditions of normal installation and use of the current correlation model, according to the design information of the current correlation model, that is, the geometric size, spatial position, and posture of the current correlation model.
For example, the computer device can determine model modification information that the wash basin model meets the use requirement and moves 100mm to the left along with the vertical wall model installed on the wash basin model according to the geometric dimension, the spatial position and the posture of the wash basin model.
In the method for adjusting a model provided in this embodiment, the computer device can automatically determine the adjustment rule information set of the current association model according to the initial information of the model other than the target model in the current design scene, the model update information of the target model, the preset model relationship, and the model attribute information of the current association model, determine the available data set of the current association model according to the adjustment rule information set of the current association model and the design information of the current association model, and further automatically obtain the model modification information of the current association model according to the available data set of the current association model and the design information of the current association model. The current association model is one of the association models, and the design information includes the geometric size of the model, the spatial position of the model and the posture of the model. By adopting the method, the computer equipment can screen step by step, and finally determine the model modification information of the current correlation model which can make the current correlation model reasonably designed and used, so that the current correlation model can be automatically adjusted based on the model modification information, the design speed is greatly improved, the accuracy of the design result is greatly improved, and meanwhile, the spatial position, the size and the posture of the model of the current correlation model which is adjusted by the computer equipment according to the model modification information are more reasonable, and the design quality is further improved.
In an embodiment, the step of obtaining the model modification information of the current association model in S903 according to the available data set of the current association model and the design information of the current association model may be implemented by a method shown in fig. 9, and specifically may include:
s1001, according to the available data set of the current association model and the design information of the current association model, obtaining a plurality of actual available adjustment information sets corresponding to the current association model.
Specifically, the computer device can determine, from the available data sets, an actual available adjustment information set that can satisfy normal installation and use of the current association model according to design information such as a position space, a geometric size range, and a posture of the current association model, and in combination with a usage rule and an installation rule of the current association model, where the actual available adjustment information set may be multiple, that is, an adjustment scheme that can enable normal installation and use of the current association model may be multiple schemes.
S1002, obtaining model modification information of the current association model according to a plurality of actual available adjustment information sets of the current association model.
Specifically, the computer device may determine an actually available adjustment information set from the plurality of actually available adjustment information sets, for example, may arbitrarily select one actually available adjustment information, and use the actually available adjustment information as the model modification information of the current association model.
Alternatively, a possible implementation step of S1002 may refer to the method shown in S1101 described below. The method specifically comprises the following steps:
s1101, sequencing the plurality of actual available adjustment information sets of the current association model according to a preset priority rule, and taking the actual available adjustment information corresponding to the actual available adjustment information set with the highest priority in the plurality of actual available adjustment information sets of the current association model as the model modification information of the current association model.
The preset priority rules comprise one or more combinations of a model position correct rule, a model and overall consistency rule, model cost and model construction difficulty.
Specifically, the computer device may rank the plurality of actually available adjustment information sets according to a preset priority rule, where the preset priority rule may include one or more combinations of a model position correctness rule, a model and entity consistency rule, a model cost, and a model construction difficulty level, the computer device may rank the priorities according to one of the model position correctness rule, the model and entity consistency rule, the model cost, and the model construction difficulty level, or rank the priorities after calculating according to a preset weight with respect to any combination of the model position correctness rule, the model and entity consistency rule, the model cost, and the model construction difficulty level, which is not limited in this embodiment. And the computer equipment selects an actual available adjustment information set with the highest priority from the plurality of actual available adjustment information sets which are sorted, and takes the actual available adjustment information corresponding to the actual available adjustment information set with the highest priority as the model modification information of the current association model.
In the implementation manner shown in S1101, the computer device can select an actual available adjustment information set that most matches the design requirement and the design target according to a combination of one or more of a model position correctness rule, a model and overall consistency rule, a model cost, and a model construction difficulty level, based on the design requirement, so that the adjustment of the current associated model can be more accurate and reasonable, and the design quality is further improved.
In the model adjustment method provided in the embodiment of fig. 9, a plurality of actually available adjustment information sets corresponding to the current association model are obtained according to the available data sets of the current association model and the design information of the current association model, and the model modification information of the current association model is obtained according to the plurality of actually available adjustment information sets of the current association model. By adopting the method provided by the embodiment, the computer equipment can screen step by step, and finally determine the model modification information of the current association model which can make the current association model reasonably designed and used, so that the current association model can be automatically adjusted based on the model modification information, the design speed and the operation efficiency are greatly improved, the accuracy of a design result is greatly improved, and meanwhile, the spatial position, the size and the posture of the model of the current association model which is adjusted by the computer equipment according to the model modification information are more reasonable, and the design quality is improved.
In an embodiment, each association model further includes a plurality of association submodels, the model relationship between the target model and the association model in the design scenario further includes a relationship between the plurality of association submodels of the current association model, and a relationship between the plurality of association submodels of the current association model and other models than the current association model, and on the basis of the embodiments shown in fig. 7 to 9, the method may further include:
s1201, adjusting the size, the position and the posture of each associated submodel according to the model modification information of the current associated model, and adjusting the relation between each associated submodel and other models except the current associated model.
Specifically, each association model further includes a plurality of association submodels, and thus the model relationship between the target model and the association model in the design scene further includes a relationship between the plurality of association submodels of the current association model, and a relationship between the plurality of association submodels of the current association model and other models than the current association model. The computer equipment can determine the size, the position and the posture of each associated submodel in the associated model according to the model modification information of the current associated model, and determine the relationship between each associated submodel and other models except the current associated model according to the size, the position and the posture of the associated submodel.
For example, if the current association model is a wash basin model and the model modification information of the wash basin model is set by a corner, the association submodel therein includes two mirror front lamp submodels respectively disposed on both sides of the vanity mirror. The position and posture of the mirror front lamp submodel close to the corner are fixed on the wall model on the side of the wash basin model and the size of the mirror front lamp submodel is unchanged, the position and posture of the other mirror front lamp submodel are fixed on the wall model on the back of the wash basin model and the size of the other mirror front lamp submodel is also unchanged, the computer device can determine that the mirror front lamp submodel close to the corner has a position association relationship with the wall model on the side and the distance between the mirror front lamp submodel and the wall model on the back is 0, and the other mirror front lamp submodel has a position association relationship with the wall model on the back and the.
In this embodiment, the computer device adjusts the size, position, and posture of each associated submodel according to the model modification information of the current associated model, and the relationship between each associated submodel and other models except the current associated model, so that each submodel inside the current associated model can also reasonably adjust the size, position, and posture, and the relationship between each associated submodel and other models except the current associated model can be reasonably adjusted, thereby enabling the design result to take into account the adjustment of the submodel inside each model component, further enabling the design result to be more accurate and reasonable, and further improving the design quality.
In one embodiment, the target model further includes a plurality of target sub-models, the model relationship between the target model and the association model in the design scene further includes a relationship between the plurality of target sub-models, and a relationship between the plurality of target sub-models and the association model of the target model, and the step of adjusting the target model according to the model modification information of the target model in S802 to obtain the model update information of the target model specifically includes:
s1301, adjusting the size, the position and the posture of each target sub-model and the relation between each target sub-model and the associated model of the target model according to the model modification information of the target model.
Specifically, the target model may include a plurality of target submodels therein, and therefore, the model relationship between the target model and the association model in the design scene may further include a relationship between the plurality of target submodels and the association model of the target model. The computer equipment can determine the size, the position and the posture of each target sub-model according to the modification information of the target model, and determine the relation between each target sub-model and the associated model of the target model according to the size, the position and the posture of the target sub-model.
It should be clear that the implementation manner of this step S1301 is similar to the principle and effect of the above step S1201, and is not described here again.
In an embodiment, as shown in fig. 10, after the step of adjusting the association model according to the model modification information of the association model in S804, the method further includes:
and S1401, acquiring scene information of the adjusted current design scene.
Specifically, after the computer device completes the step of adjusting the association model according to the model modification information of the association model, the computer device reads the scene information of the adjusted current design scene, where the scene information includes spatial information of the scene and attributes of each model in the scene, including but not limited to model position, model size, and model posture.
S1402, checking whether the scene information of the current design scene is wrong by using a preset check rule; the inspection rules include one or more of physical attributes, spatial attributes, model production rules, model processing rules, model installation rules, and model usage rules of the model.
It should be noted that the preset checking rule may include: checking physical attributes of each model, such as the size of the wash basin is a standard size; checking spatial attributes, such as whether the space of the toilet can be normally passed; checking the model production rules, such as the dimensions of the shower room model, whether the production can be carried out; checking the model processing rule, such as whether the table-board shape of the cabinet can be cut normally; checking the installation rule of the model, for example, whether the model can be normally installed in the scene information; the model usage rules, such as the space of the wash basin model, are checked for user satisfaction with standing and use.
Specifically, the computer device may use one or more of the preset inspection rules to inspect the scene information of the current design scene, and output whether the inspection result is wrong.
And S1403, if the scene information of the current design scene is wrong, outputting alarm information.
Specifically, when the scene information is wrong, the computer device outputs alarm information. Optionally, the computer device may pop up an alarm dialog box, may display an alarm prompt message in the status bar, and may also highlight the wrong object, and this embodiment does not limit the manner in which the computer device outputs the alarm message.
In this embodiment, the computer device can obtain the adjusted scene information of the current design scene, and check whether the scene information of the current design scene is wrong by using a preset check rule, and then output alarm information when the scene information of the current design scene is wrong. The checking rules comprise one or more of physical attributes, spatial attributes, model production rules, model processing rules, model installation rules and model use rules of the model. Therefore, the computer equipment can automatically judge the adjusted scene information of the current design scene based on the check rule, and output alarm information when the scene information of the design scene is wrong, so that the accuracy of the design result is further ensured, and the design quality is greatly improved.
Further, after the step of adjusting the association model according to the model modification information of the association model in step S804, the method further includes:
s1501, if the scene information of the current design scene is wrong, correcting according to a preset correction rule.
Specifically, the computer device may also correct the current design scene according to a preset correction rule when the scene information of the current design scene is incorrect. The correction rules may include, but are not limited to, complement size, automatic avoidance, and automatic steering. For example, when the two sides of the wash basin model at the inspection site of the computer device are respectively 50mm away from the wall models, the computer device extends the decibels of the two sides of the wash basin model by 50mm according to the alignment size in the correction rule, so that the two sides of the wash basin model are connected with the wall models at the two sides.
In this embodiment, the computer device can correct the current design scene according to the preset correction rule when the scene information of the current design scene is wrong, so that a designer does not need to perform manual correction, the workload of the designer is greatly reduced, and the design efficiency is improved.
Fig. 11 is a schematic flowchart of a model adjustment method according to yet another embodiment. As shown in fig. 11, the method may specifically include:
s1601, the computer device obtains initial information of each model in the current design scene and model modification information of the target model.
S1602, the computer equipment adjusts the target model according to the model modification information of the target model to obtain model update information of the target model.
S1603, determining an adjustment rule information set of the current association model by the computer equipment according to initial information of other models except the target model in the current design scene, model update information of the target model, a preset model relationship and model attribute information of the current association model; wherein the current association model is one of the association models. For example, as shown in fig. 12A, in a toilet scenario, the computer device can combine the moving direction and distance of the vertical wall model (i.e., model update information), the preset model relationship and the model attribute information of the currently associated wash basin model according to the toilet model, the bathtub model, other wall models and the floor model other than the vertical wall model (i.e., target model), which may include the initial bounding box size of the wash basin model being 550mm, 1250mm, 2300mm, with a variable range of: the minimum value, the optimum value, and the maximum value in the longitudinal direction are 500mm, 600mm, and 700mm, the minimum value, the optimum value, and the maximum value in the width direction are 700mm, 2200mm, and 3400mm, respectively, and the minimum value, the optimum value, and the maximum value in the height direction are 2200mm, 3000mm, and 3500mm, respectively, and all diagonal line regions in fig. 12A are determined as the development size, the position, and the posture capable of being developed in real time of the wash basin model as the adjustment rule information set of the wash basin model.
S1604, determining an available data set of the current association model by the computer equipment according to the adjustment rule information set of the current association model and the design information of the current association model; the design information includes the geometric dimensions of the model, the spatial position of the model, and the pose of the model. For example, as shown in fig. 12B, the computer device may determine the diagonal area in fig. 12B as the size and position of the hand washing station model and the optional posture of the hand washing station model to be the usable data set of the hand washing station model by excluding the partial space having the size not satisfying the minimum size of the hand washing station model from the design information of the hand washing station model and the diagonal area (i.e., the adjustment rule information set) in fig. 12A.
And S1605, the computer equipment obtains a plurality of actual available adjustment information sets corresponding to the current association model according to the available data sets of the current association model and the design information of the current association model. For example, as shown in fig. 12C, the computer apparatus can obtain the diagonal area adjacent to the vertical wall model in fig. 12C and satisfying the variable size range and the available posture of the wash stand model as a plurality of actually available adjustment information sets, from the above-described diagonal area (i.e., available data set) and the design information of the wash stand model in fig. 12B, excluding the area exceeding the maximum size of the wash stand and the posture not satisfying the installation and use requirements.
S1606, the computer device sorts the multiple actual available adjustment information sets of the current association model according to a preset priority rule, and takes the actual available adjustment information corresponding to the actual available adjustment information set with the highest priority in the multiple actual available adjustment information sets of the current association model as the model modification information of the current association model; the preset priority rules comprise one or more combinations of a model position correct rule, a model and overall consistency rule, model cost and model construction difficulty. For example, the computer device sorts the various deployed sizes, positions, and attitudes of the wash station model in the diagonal region in fig. 12C described above by a combination of one or more of the correct model position rule, the model and overall consistency rule, the model cost, and the ease of model construction, and takes the size, position, and attitude of the wash station model with the highest priority, as shown in fig. 12D, as model modification information for the wash station model. The method specifically comprises the following steps: in fig. 12D, the dimension of the lengthwise space of the wash basin model is 850, which is 550mm greater than the length of the initial bounding box of the wash basin model, and therefore, the recommended length of the wash basin model is determined to be 550 mm; in addition, the width-direction space size of the hand basin model is 1505mm, which is larger than the minimum value of the width size of the hand basin model and smaller than the optimal value of the width size of the hand basin model, so that the recommended width of the hand basin model is determined to be 1505 mm; further, the space size in the height direction of the wash basin model is 2700mm, which is larger than the minimum value of the height size of the wash basin model and smaller than the optimum value of the height size of the wash basin model, and therefore, the recommended height of the wash basin model is determined to be 2700 mm. Further, recommended dimensions for the sink model were determined to be 550mm, 1505mm, 2700mm in length, width, and height, respectively.
S1607, the association model further comprises a plurality of association submodels, the model relation further comprises the relation among the association submodels and the relation between the association submodels and other models except the current association model; and the computer equipment adjusts the size, the position and the posture of each associated submodel and the relationship between each associated submodel and other models except the current associated model according to the model modification information of the current associated model. For example, in fig. 12E, the computer device adjusts the position of one of the wall lamp sub-models from the a position to the B position based on the model modification information of the wash basin model.
S1608, the object model further includes a plurality of object submodels, the model relationship further includes a relationship between the plurality of object submodels and another model other than the object model, and the computer device adjusts the size, position, and posture of each object submodel and a relationship between each object submodel and another model other than the object model according to the model modification information of the object model.
And S1609, the computer equipment acquires the adjusted scene information of the current design scene.
S1610, the computer equipment utilizes a preset check rule to check whether the scene information of the current design scene is wrong; the inspection rules include one or more of physical attributes, spatial attributes, model production rules, model processing rules, model installation rules, and model usage rules of the model.
S1611, if the scene information of the current design scene is wrong, the computer equipment outputs alarm information.
S1612, if the scene information of the current design scene is wrong, the computer device corrects according to the preset correction rule.
For the above implementation process of S1601 to S1612, reference may be specifically made 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. 7-11 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. 7-11 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, the present application further provides an apparatus for adjusting a model, as shown in fig. 13, the apparatus including: a first obtainingmodule 100, a first determiningmodule 200, a second determiningmodule 300 and afirst processing module 400;
specifically, the first obtainingmodule 100 is configured to obtain initial information of each model and model modification information of a target model in a current design scene;
the first determiningmodule 200 is configured to adjust the target model according to the model modification information of the target model, and obtain model update information of the target model;
the second determiningmodule 300 is configured to obtain model modification information of an association model having an association relationship with the target model according to initial information of other models than the target model in the current design scene, model update information of the target model, and a preset model relationship; the model relationships include relationships between the object model and other models than the object model in the design scenario.
Thefirst processing module 400 is configured to adjust the association model according to the model modification information of the association model.
In one embodiment, as shown in fig. 14, the second determiningmodule 300 may include a first determiningunit 310, a second determiningunit 320, and a third determiningunit 330.
Specifically, the first determiningunit 310 is configured to determine an adjustment rule information set of the current association model according to initial information of a model other than the target model in the current design scene, model update information of the target model, a preset model relationship, and model attribute information of the current association model; wherein the current association model is one of the association models;
the second determiningunit 320 is configured to determine an available data set of the current association model according to the adjustment rule information set of the current association model and the design information of the current association model; the design information comprises the geometric dimension of the model, the spatial position of the model and the posture of the model;
the third determiningunit 330 is configured to obtain model modification information of the current association model according to the available data set of the current association model and the design information of the current association model.
In one embodiment, as shown in fig. 15, the third determiningunit 330 may include a first determiningsubunit 331 and a second determiningsubunit 332.
Specifically, the first determiningsubunit 331 is configured to obtain a plurality of actual available adjustment information sets corresponding to the current association model according to the available data sets of the current association model and the design information of the current association model.
The second determiningsubunit 332 obtains the model modification information of the current association model according to the plurality of actually available adjustment information sets of the current association model.
In an embodiment, the second determiningsubunit 332 is specifically configured to sort the multiple actually available adjustment information sets of the current association model according to a preset priority rule, and use, as the model modification information of the current association model, the actually available adjustment information corresponding to an actually available adjustment information set with a highest priority in the multiple actually available adjustment information sets of the current association model; the preset priority rules comprise one or more combinations of a model position correct rule, a model and overall consistency rule, model cost and model construction difficulty.
In an embodiment, the association model further includes a plurality of association submodels, the model relationship further includes a relationship between the plurality of association submodels, and a relationship between the plurality of association submodels and another model other than the current association model, as shown in fig. 16, the adjusting apparatus of the model may further include an adjusting module 500:
specifically, the adjustingmodule 500 is configured to adjust the size, the position, and the posture of each associated sub-model and the relationship between each associated sub-model and other models besides the current associated model according to the model modification information of the current associated model.
In one embodiment, the object model further comprises a plurality of object sub-models, and the model relationships further comprise relationships between the plurality of object sub-models and other models than the object model; the first determiningmodule 200 may be configured to adjust the size, position, and posture of each target sub-model and a relationship between each target sub-model and other models except the target model according to the model modification information of the target model.
In one embodiment, with continued reference to fig. 16, the above model adjusting apparatus may further include a second obtainingmodule 600 and a second processing module 700:
specifically, the second obtainingmodule 600 is configured to obtain scene information of the adjusted current design scene;
thesecond processing module 700 is configured to check whether the scene information of the current design scene is incorrect by using a preset check rule; and when the scene information of the current design scene is wrong, outputting alarm information. The inspection rule comprises at least one of a physical attribute, a spatial attribute, a model production rule, a model processing rule, a model installation rule and a model use rule of the model;
in one embodiment, thesecond processing module 700 may be configured to correct the current design scenario according to a preset correction rule when the scenario information of the current design scenario is incorrect.
The model adjusting device provided in the above embodiments may implement the above method embodiments, and the 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:
acquiring initial information of each model and model modification information of a target model in a current design scene;
adjusting the target model according to the model modification information of the target model to obtain model update information of the target model;
obtaining model modification information of an association model having an association relation with a target model according to initial information of other models except the target model in a current design scene, model update information of the target model and a preset model relation; the model relation comprises the relation between the target model and other models except the target model in the design scene;
and adjusting the association model according to the model modification information of the association model.
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:
acquiring initial information of each model and model modification information of a target model in a current design scene;
adjusting the target model according to the model modification information of the target model to obtain model update information of the target model;
obtaining model modification information of an association model having an association relation with a target model according to initial information of other models except the target model in a current design scene, model update information of the target model and a preset model relation; the model relation comprises the relation between the target model and other models except the target model in the design scene;
and adjusting the association model according to the model modification information of the association model.
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 (11)

CN201810949842.XA2018-08-202018-08-20Model adjusting method and device, computer equipment and storage mediumPendingCN110889153A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810949842.XACN110889153A (en)2018-08-202018-08-20Model adjusting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810949842.XACN110889153A (en)2018-08-202018-08-20Model adjusting method and device, computer equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN110889153Atrue CN110889153A (en)2020-03-17

Family

ID=69744200

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810949842.XAPendingCN110889153A (en)2018-08-202018-08-20Model adjusting method and device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN110889153A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113076350A (en)*2021-03-022021-07-06无锡先导智能装备股份有限公司Welding abnormity detection method and device, computer equipment and storage medium
CN113760463A (en)*2021-09-082021-12-07北京世冠金洋科技发展有限公司Method and device for adjusting positions of sub-model components on each side of parent model component
CN113919027A (en)*2021-10-122022-01-11广联达科技股份有限公司 Component adjustment method, device, computer equipment and storage medium in BIM model
CN114115868A (en)*2020-08-312022-03-01北京新氧科技有限公司 File processing method and apparatus, electronic device and computer-readable storage medium
CN114329679A (en)*2020-09-302022-04-12久瓴(江苏)数字智能科技有限公司Target refreshing method and device, computer equipment and storage medium
CN118643582A (en)*2024-03-012024-09-13中国船舶集团有限公司第七一九研究所 A method, device and storage medium for arranging ship equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070171223A1 (en)*2006-01-262007-07-26Autodesk, Inc.Method for creation of architectural space objects
CN101617313A (en)*2007-03-052009-12-30日本烟草产业株式会社Data processing equipment, computer program and data storage medium
CN101828183A (en)*2007-10-162010-09-08索尼法国股份有限公司Method and apparatus for updating prototypes
CN102663830A (en)*2012-04-282012-09-12北京尔宜居科技有限责任公司Data processing method of interior decoration model
CN105447226A (en)*2015-11-112016-03-30深圳市华阳国际工程设计股份有限公司BIM based house type parameterized design control method and system
US20170256096A1 (en)*2016-03-072017-09-07Google Inc.Intelligent object sizing and placement in a augmented / virtual reality environment
CN107729609A (en)*2017-09-142018-02-23北京致臻智造科技有限公司The display methods and system that a kind of building decoration technology is told somebody what one's real intentions are

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070171223A1 (en)*2006-01-262007-07-26Autodesk, Inc.Method for creation of architectural space objects
CN101617313A (en)*2007-03-052009-12-30日本烟草产业株式会社Data processing equipment, computer program and data storage medium
CN101828183A (en)*2007-10-162010-09-08索尼法国股份有限公司Method and apparatus for updating prototypes
CN102663830A (en)*2012-04-282012-09-12北京尔宜居科技有限责任公司Data processing method of interior decoration model
CN105447226A (en)*2015-11-112016-03-30深圳市华阳国际工程设计股份有限公司BIM based house type parameterized design control method and system
US20170256096A1 (en)*2016-03-072017-09-07Google Inc.Intelligent object sizing and placement in a augmented / virtual reality environment
CN107729609A (en)*2017-09-142018-02-23北京致臻智造科技有限公司The display methods and system that a kind of building decoration technology is told somebody what one's real intentions are

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114115868A (en)*2020-08-312022-03-01北京新氧科技有限公司 File processing method and apparatus, electronic device and computer-readable storage medium
CN114329679A (en)*2020-09-302022-04-12久瓴(江苏)数字智能科技有限公司Target refreshing method and device, computer equipment and storage medium
CN113076350A (en)*2021-03-022021-07-06无锡先导智能装备股份有限公司Welding abnormity detection method and device, computer equipment and storage medium
CN113076350B (en)*2021-03-022024-05-07无锡先导智能装备股份有限公司Welding abnormality detection method, welding abnormality detection device, computer device, and storage medium
CN113760463A (en)*2021-09-082021-12-07北京世冠金洋科技发展有限公司Method and device for adjusting positions of sub-model components on each side of parent model component
CN113919027A (en)*2021-10-122022-01-11广联达科技股份有限公司 Component adjustment method, device, computer equipment and storage medium in BIM model
CN113919027B (en)*2021-10-122024-12-13广联达科技股份有限公司 Component adjustment method, device, computer equipment and storage medium in BIM model
CN118643582A (en)*2024-03-012024-09-13中国船舶集团有限公司第七一九研究所 A method, device and storage medium for arranging ship equipment

Similar Documents

PublicationPublication DateTitle
CN110889153A (en)Model adjusting method and device, computer equipment and storage medium
CN110889152B (en)Method, device, computer equipment and storage medium for establishing model relation
Wang et al.Adaptive isogeometric analysis using rational PHT-splines
CN111598972A (en)House type graph generation method and device, computer equipment and storage medium
US9305371B2 (en)Translated view navigation for visualizations
US10291838B2 (en)Focusing point determining method and apparatus
Pauli et al.Towards shape optimization of profile extrusion dies with respect to homogeneous die swell
AU2019231514B2 (en)Method, system and graphical user interface for building design
CN110634100A (en)Household type graph generation method and device, electronic equipment and storage medium
WO2023124160A1 (en)Method, system and apparatus for automatically generating three-dimensional house layout, and medium
CN112700454A (en)Image cropping method and device, electronic equipment and storage medium
US10943038B1 (en)Dynamic adjustment of cross-sectional views
CN106934842B (en)Method and device for identifying closed area
Bo et al.Multi-strip smooth developable surfaces from sparse design curves
US20160180582A1 (en)Method for adapting a mesh model of a geological subsurface
CN106327247A (en)Self-service home decoration designing and demonstrating system
US11636235B2 (en)Systems and methods of predicting architectural materials within a space
CN110781535A (en)Model plotting method and device, computer equipment and readable storage medium
CN118114332B (en)Drawing generation method, device, equipment and storage medium
CN113987652A (en) Method and device for generating wall model
CN111046467B (en)House type parametric modeling method and related equipment
JP6127331B2 (en) Reinforcement verification support device and program thereof
CN110648400A (en)Model space quantization method, mapping relation establishment method, device and equipment
CN110727973B (en)Model pose determination method and device, computer equipment and storage medium
CN112836263B (en)Axle network generation method and device, computer equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20200317

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp