CN110751715B - Model processing method, device, computer equipment and readable storage medium - Google Patents

Model processing method, device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110751715B
CN110751715B CN201810813885.5A CN201810813885A CN110751715B CN 110751715 B CN110751715 B CN 110751715B CN 201810813885 A CN201810813885 A CN 201810813885A CN 110751715 B CN110751715 B CN 110751715B
Authority
CN
China
Prior art keywords
model
real
real model
functional area
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810813885.5A
Other languages
Chinese (zh)
Other versions
CN110751715A (en
Inventor
张海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Runshijing Environmental Engineering Co ltd
Original Assignee
Nanjing Runshijing Environmental Engineering 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 Nanjing Runshijing Environmental Engineering Co ltd filed Critical Nanjing Runshijing Environmental Engineering Co ltd
Priority to CN201810813885.5A priority Critical patent/CN110751715B/en
Publication of CN110751715A publication Critical patent/CN110751715A/en
Application granted granted Critical
Publication of CN110751715B publication Critical patent/CN110751715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a model processing method, a model processing device, computer equipment and a readable storage medium. The method comprises the following steps: acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models; determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information; and dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information. The invention greatly improves the design efficiency and the design accuracy of the designer.

Description

Model processing method, device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a model processing method, a device, a computer apparatus, and a readable storage medium.
Background
With the continuous development of social economy, people have higher and higher requirements on aesthetic and comfort aspects of living areas, office areas and other areas, and designers need to design corresponding schemes according to the requirements set by users.
Currently, when a designer designs a decoration scheme for a user, modeling design is generally performed by using each required three-dimensional model, or a plurality of three-dimensional models are spliced into a whole according to subjective consciousness so as to perform modeling design on synchronous operation of a plurality of models or a plurality of primitives at the same time.
However, in the conventional technology, the three-dimensional model needs to be dragged one by one to perform modeling design, and as all information of the three-dimensional model is mixed, a designer cannot grasp core information of each design stage under the condition of multiple complex information interference, so that the designer has complex operation and low design efficiency; and carry out the model according to designer's subjective consciousness and link up, easily lead to the usage space of model unreasonable for the rate of accuracy of design is lower.
Disclosure of Invention
Based on this, it is necessary to provide a model processing method, apparatus, computer device, and readable storage medium for the problems of low design efficiency and low design accuracy in the conventional art.
In a first aspect, an embodiment of the present invention provides a method for processing a model, including:
acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
According to the method for processing the model, the computer equipment can acquire the functional area model to be dragged to the design area from the preset functional area model library, and according to the second attribute information of the surface and/or the edge of the functional area model, the first visual arrangement information of the functional area model in the design area and the second visual arrangement information of the sub-model are determined, and then the functional area model and the sub-model are dragged to the design area according to the first visual arrangement information and the second visual arrangement information. In this embodiment, the computer device may simplify the complex three-dimensional model corresponding to the real model into the functional area model represented by the three-dimensional contour control frame, and may assign the association relationship of the real model in the placement environment and the association relationship between the sub-model in the real model and the real model to the surface and/or edge of the functional area model, so that the complex three-dimensional model may be simplified into the functional area model with the second attribute information, so that a designer may quickly find the placement information, avoid the interference of the complex information, and improve the design efficiency; in addition, the designer can drag the functional area model and the sub-model to the corresponding design area according to the second attribute information on the surface and/or the edge of the functional area model, instead of appointing the use space of the functional area model by the subjective consciousness of the designer, so that the design accuracy can be improved.
In one embodiment, before the function area model to be dragged to the design area is obtained from the preset function area model library, the method further includes:
acquiring the occupation space information of each real model, wherein the occupation space information comprises the occupation space size of the real model and the occupation space shape of the real model;
carrying out three-dimensional contour extraction operation on the real models according to the occupied space information of each real model to obtain three-dimensional contour control frames corresponding to the real models;
determining second attribute information of the surface and/or the edge of the three-dimensional contour control frame corresponding to each real model according to the first attribute information of each real model, so as to configure the second attribute information to the three-dimensional contour control frame, and obtaining a functional area model corresponding to each real model;
and establishing the functional area model library according to the functional area model corresponding to each real model.
According to the model processing method provided by the embodiment, the computer equipment can acquire the occupied space size and the occupied space shape of each real model, and perform three-dimensional contour extraction operation on the real models according to the occupied space size and the occupied space shape of each real model, so that a three-dimensional contour control frame corresponding to the real models is obtained, then the second attribute information of the surface and/or edge of the three-dimensional contour control frame corresponding to the real models is determined according to the first attribute information of each real model, so that the second attribute information is configured to the three-dimensional contour control frame, a functional area model corresponding to each real model is obtained, and finally a functional area model library is built according to the functional area model corresponding to each real model. That is, according to the embodiment, the functional model with the second attribute information can be determined according to the space occupation information and the first attribute information of the real model, so that the structure of the real model is simplified, a designer can intuitively determine the required placement information according to the second attribute information of the functional area model and the surface and/or edge of the functional area model, and the model to be designed is quickly placed in the corresponding design area, so that the design efficiency is greatly improved.
In one embodiment, the first attribute information includes: at least one of a positioning attribute of the real model, a local coordinate system of the real model, a functional attribute of the real model, a use spatial range of the real model, a first association relationship between the real model and a sub-model inside the real model, and a second association relationship between the real model and an external model existing in an actual environment.
In one embodiment, the determining, according to the first attribute information of each real model, second attribute information of a face and/or an edge of a stereoscopic contour control box corresponding to the real model includes:
determining the size range of the surface and/or the edge of the three-dimensional contour control frame according to the use space range of the real model;
determining the second attribute information includes: at least one of the positioning attribute of the real model, the size range of the surface and/or the edge of the three-dimensional contour control frame, the local coordinate system, the first association relationship and the second association relationship.
In one embodiment, the method further comprises:
Extracting functional attributes of the real model and use attributes of the real model from first attribute information of the real model; wherein the functional attributes include: at least one of a use of the real model, an application condition of the real model, and a composition function of the real model, the use attribute including at least one of a use method of the real model, an installation method of the real model, and a maintenance method of the real model;
and determining the use space range of the real model according to the functional attribute of the real model and the use attribute of the real model and at least one of national standard in the building field, industry standard and design experience parameter in the industry.
According to the model processing method provided by the embodiment, the computer equipment can extract the functional attribute of the real model and the use attribute of the real model from the first attribute information of the real model, and determine the use space range of the real model according to at least one of the functional attribute of the real model and the use attribute of the real model and the national standard, the industry standard and the design experience parameter in the industry in the building field. In this embodiment, the computer device may determine the usage space range of the real model according to the functional attribute and the usage attribute of the real model, so that the obtained usage space range is reasonable, the problem of unreasonable usage space caused by designating the usage space according to subjective consciousness of the designer is avoided, and the accuracy of the design is greatly improved.
In one embodiment, the method further comprises: and determining a local coordinate system of the functional area model according to the positioning attribute of the real model and at least one of national standard, industry standard and design experience parameters in the industry in the building field.
In one embodiment, the configuring the second attribute information to the stereo contour control box to obtain a functional area model corresponding to each real model includes:
and configuring the content in the second attribute information to the surface and/or edge corresponding to the three-dimensional contour control frame according to a preset attribute configuration rule to obtain a functional area model corresponding to each real model.
In one embodiment, the method further comprises: and carrying out deformation and dragging operation on the functional area model according to the input deformation vector and the target position.
In a second aspect, an embodiment of the present invention provides a model processing apparatus, including:
the first acquisition module is used for acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
The first determining module is used for determining first visual placement information of the functional area model in the design area and second visual placement information of the sub-model according to the second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and the dragging module is used for dragging the functional area model and the submodel to the design area according to the first placing information and the second placing information.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
And dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
The model processing device, the computer device and the readable storage medium provided by the embodiment can enable the computer device to acquire the functional area model to be dragged to the design area from a preset functional area model library, determine the first visual arrangement information of the functional area model in the design area and the second visual arrangement information of the sub-model according to the second attribute information of the surface and/or the edge of the functional area model, and drag the functional area model and the sub-model to the design area according to the first visual arrangement information and the second visual arrangement information. In this embodiment, the computer device may simplify the complex three-dimensional model corresponding to the real model into the functional area model represented by the three-dimensional contour control frame, and may assign the association relationship of the real model in the placement environment and the association relationship between the sub-model in the real model and the real model to the surface and/or edge of the functional area model, so that the complex three-dimensional model may be simplified into the functional area model with the second attribute information, so that a designer may quickly find the placement information, avoid the interference of the complex information, and improve the design efficiency; in addition, the designer can drag the functional area model and the sub-model to the corresponding design area according to the second attribute information on the surface and/or the edge of the functional area model, instead of appointing the use space of the functional area model by the subjective consciousness of the designer, so that the design accuracy can be improved.
Drawings
FIG. 1 is a schematic diagram of an internal structure of a computer device according to one embodiment; the method comprises the steps of carrying out a first treatment on the surface of the
FIG. 2 is a schematic flow chart of a model processing method according to an embodiment;
FIG. 2a is a schematic diagram of a real model provided in one embodiment;
FIG. 2b is a schematic diagram of a three-dimensional outline control box according to one embodiment;
FIG. 3 is a schematic flow chart of a model processing method according to another embodiment;
FIG. 3a is a schematic diagram of a real model according to another embodiment;
FIG. 3b is a schematic diagram of a three-dimensional control frame according to another embodiment;
FIG. 4 is a schematic flow chart of a model processing method according to another embodiment;
FIG. 5 is a schematic flow chart of a model processing method according to another embodiment;
FIG. 6 is a schematic diagram of a model processing apparatus according to one embodiment;
FIG. 7 is a schematic diagram of a model processing apparatus according to another embodiment;
FIG. 8 is a schematic diagram of a model processing apparatus according to another embodiment;
FIG. 9 is a schematic diagram of a model processing apparatus according to another embodiment;
FIG. 10 is a schematic diagram of a model processing apparatus according to another embodiment;
fig. 11 is a schematic diagram of a model processing apparatus according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The model processing method provided by the embodiment of the invention can be applied to the computer equipment shown in the figure 1. The computer device comprises a processor, a memory, and a computer program stored in the memory, wherein the processor is connected through a system bus, and when executing the computer program, the processor can execute the steps of the method embodiments described below. Optionally, the computer device may further comprise a network interface, a display screen and an input means. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, which stores an operating system and a computer program, an internal memory. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. Optionally, the computer device may be a server, a PC, a personal digital assistant, other terminal devices, for example, a PAD, a mobile phone, etc., or a cloud or remote server, and the embodiment of the present invention does not limit a specific form of the computer device.
In the traditional technology, a designer needs to drag the three-dimensional model to a design area one by one to carry out modeling design, the operation is complex, and the design efficiency is low; and when carrying out the linking of model, mainly rely on designer's subjective consciousness to link up, easily lead to the usage space of model unreasonable for the rate of accuracy of design is low. To this end, embodiments of the present invention provide a method, an apparatus, a computer device, and a readable storage medium for processing a model, which aim to solve the above technical problems in the conventional technology.
The following describes the technical scheme of the present invention and how the technical scheme of the present invention solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a model processing method according to an embodiment. The embodiment relates to a specific process that a computer device acquires second attribute information of a face and/or an edge of a functional area model and drags the functional area model and a sub-model thereof to a design area. As shown in fig. 2, the method includes:
S201, acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models.
Specifically, the real model is an area space in the actual environment, and for example, the real model may be an office area, a sleeping area, a shower room, or the like. Optionally, the computer device may determine, from the functional area model library, a functional area model to be dragged to the design area according to a mouse click command of the designer.
Alternatively, the first attribute information of the real model may include size information, posture information, positioning information, and the like of the real model. Alternatively, the first attribute information of the real model may be input to the computer device through a text input manner, or may be input to the computer device through a voice input manner, which is not limited in this embodiment. The functional area model may be a three-dimensional contour control frame abstracted according to the first attribute information of the real model, for example, a shower area including the shower head 1, the down lamp 2, the glass partition 3 and the like shown in fig. 2a may be abstracted into a hexahedral control frame 4 shown in fig. 2b, so as to simplify the structure of the original shower area. Optionally, the hexahedral control frame 4 is a functional area model. Optionally, the shower head 1, the down lamp 2, the glass partition 3 and the like are sub-models of a shower area.
S202, determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information.
Specifically, the second attribute information is associated with the first attribute information, for example, a usage space range of the real model in the first attribute information may be assigned to a face and/or an edge of the functional area model, so that the face and/or the edge of the functional area model can express the first attribute information of the real model represented by the second attribute information. The first visual placement information may be a placement rule of the functional area model and other models in the placement environment, for example, the functional area model and the wall in the placement environment have a certain placement rule, for example, a part of the side surface of the functional area model may be clung to the wall in the placement environment. The second visual placement information may also be a placement rule of a real model and a sub-model represented by the functional area model, for example, in an actual placement environment, the shower area and the sub-model down lamp in the shower area have a certain placement rule, for example, the down lamp is to be installed on the top surface of the shower area.
S203, dragging the functional area model and the functional area sub-model to the design area according to the first placement information and the second placement information.
Specifically, after the computer device obtains the first visual placement information and the second visual placement information, the functional area model and the functional area submodel can be dragged to the corresponding positions of the design area according to the placement rules of the functional area model and the functional area submodel in the first visual placement information and the second visual placement information and the dragging instruction of the designer. Alternatively, the dragging instruction may be a mouse click instruction or a touch instruction of the designer.
According to the method for processing the model, the computer equipment can acquire the functional area model to be dragged to the design area from the preset functional area model library, and according to the second attribute information of the surface and/or the edge of the functional area model, the first visual arrangement information of the functional area model in the design area and the second visual arrangement information of the sub-model are determined, and then the functional area model and the sub-model are dragged to the design area according to the first visual arrangement information and the second visual arrangement information. In this embodiment, the computer device may simplify the complex three-dimensional model corresponding to the real model into the functional area model represented by the three-dimensional contour control frame, and may assign the association relationship of the real model in the placement environment and the association relationship between the sub-model in the real model and the real model to the surface and/or edge of the functional area model, so that the complex three-dimensional model may be simplified into the functional area model with the second attribute information, so that a designer may quickly find the placement information, avoid the interference of the complex information, and improve the design efficiency; in addition, the designer can drag the functional area model and the sub-model to the corresponding design area according to the second attribute information on the surface and/or the edge of the functional area model, instead of appointing the use space of the functional area model by the subjective consciousness of the designer, so that the design accuracy can be improved.
Fig. 3 is a flowchart of a method for processing a model according to another embodiment. The embodiment relates to a specific process of determining a functional area model according to occupation space information and first attribute information of a real model. On the basis of the above embodiment, optionally, before the step S201, the method further includes:
s301, acquiring the occupied space information of each real model, wherein the occupied space information comprises the occupied space size of the real model and the occupied space shape of the real model.
Specifically, the size of the occupied space of the real model may include the size of the area of the real model occupied by the real environment and the size of the real model. Optionally, the shape of the space occupied by the real model may be a cuboid, a cylinder, or an irregular shape, and in this embodiment, the shape of the space occupied by the real model is not limited.
S302, carrying out three-dimensional contour extraction operation on the real models according to the occupied space information of each real model to obtain three-dimensional contour control frames corresponding to the real models.
Specifically, the computer device may perform a three-dimensional contour extraction operation on the real model according to the obtained area size of the real model occupying the real environment, the size of the real model, and the shape of the space occupied by the real model. As shown in fig. 2a and 2b, the shower area may be extracted as a hexahedral profile control frame, which corresponds to the shower area. Optionally, the computer device may further extract a plurality of three-dimensional contour control frames according to the size of the area of the real model occupying the real environment, the size of the dimension of the real model, and the shape of the space occupied by the real model, and control the real model with the plurality of three-dimensional contour control frames. For example, as shown in fig. 3a, the computer device may generalize the original cabinet model shown in fig. 3a with the joined hexahedral control frames 5 and 6 shown in fig. 3b, which may be used as a whole to generalize the cabinet model.
S303, determining second attribute information of the surface and/or the edge of the three-dimensional contour control frame corresponding to each real model according to the first attribute information of each real model, so as to configure the second attribute information to the three-dimensional contour control frame, and obtaining a functional area model corresponding to each real model.
Specifically, the computer device may determine, according to the first attribute information of the real model, second attribute information of a surface and/or an edge of the stereoscopic profile control frame corresponding to the real model.
Optionally, the first attribute information may include at least one of a positioning attribute of the real model, a local coordinate system of the real model, a functional attribute of the real model, a usage spatial range of the real model, a first association relationship between the real model and a sub-model inside the real model, and a second association relationship between the real model and an external model existing in the real environment. Optionally, the positioning attribute of the real model may include a pose and a position attribute of the real model. Alternatively, the computer device may determine the local coordinate system of the functional area model according to the positioning attribute of the real model and at least one of the national standard in the building field, the industry standard, and the design experience parameter in the industry, for example, the local coordinate system of the shower room may be formed by three directions of the X-axis direction, the Y-axis direction, and the Z-axis direction. Optionally, the first association relationship between the real model and the sub-model inside the real model may be a binding relationship between the real model and the sub-model, and taking a shower room as an example, the top surface of the shower room has a binding relationship with a down lamp in the shower room, that is, the down lamp needs to be installed on the top surface of the shower room. Alternatively, the second association relationship between the real model and the external model existing in the actual environment may be a binding relationship between the real model and the external model, for example, a position of a glass door of the shower room coincides with a side surface of the toilet, that is, the glass door of the shower room has a binding relationship with the side surface of the toilet.
Alternatively, the computer device may determine the dimensional extent of the faces and/or edges of the stereoscopic profile control box based on the spatial extent of use of the real model. After the computer device determines the stereoscopic profile control box and the face and/or edge size range of the stereoscopic profile control box, the determining the second attribute information may include: at least one of positioning attribute of a real model, size range of a surface and/or an edge of a three-dimensional contour control frame, a local coordinate system, a first association relationship and a second association relationship.
Optionally, the computer device may configure the content in the second attribute information to a surface and/or an edge corresponding to the stereoscopic contour control frame according to a preset attribute configuration rule, so as to obtain a functional area model corresponding to each real model. Optionally, the attribute configuration rule may be a correspondence between the second attribute information and a surface and/or an edge of the stereoscopic contour control frame, for example, an installation relationship between a down lamp and a shower area in the first association relationship in the second attribute information may be correspondingly reflected on a top surface of the stereoscopic contour control frame, so as to form visual placement information. Optionally, the second attribute information may be displayed on a surface and/or an edge corresponding to the stereoscopic contour control frame in a text form, or may be displayed on a surface and/or an edge corresponding to the stereoscopic contour control frame in a thumbnail form, so that a designer may conveniently put a corresponding model according to the second attribute information, and the display manner of the second attribute information is not limited in this embodiment. Alternatively, the computer device may name the obtained functional area model according to the input information of the designer, for example, the newly-built functional area model is a functional area model for shower, and then the computer device may name the functional area model as a shower area according to the input text information of the designer.
Optionally, after obtaining the functional area model corresponding to the real model, the computer device may further perform a deforming and dragging operation on the functional area model according to the deformation vector and the target position input by the user, so that the functional area model is adjusted to an optimal size and an optimal position. For example, when the size of the placed functional area model is inappropriate, the user may pull the functional area model a certain distance in any one or more of the X-axis direction, the Y-axis direction, or the Z-axis direction, or may drag the functional area model from the current position to a new target position. Optionally, the user may input the deformation vector and the target position through a voice input manner, or may input the deformation vector and the target position through a text input manner, and the input manner of the deformation vector and the target position is not limited in this embodiment.
S304, building the functional area model library according to the functional area model corresponding to each real model.
Specifically, the computer device can put the functional area models corresponding to each real model into a database, and all the functional area models form a functional area model library, so that a designer can conveniently select a required functional area model from the functional area model library to perform modeling design.
According to the model processing method provided by the embodiment, the computer equipment can acquire the occupied space size and the occupied space shape of each real model, and perform three-dimensional contour extraction operation on the real models according to the occupied space size and the occupied space shape of each real model, so that a three-dimensional contour control frame corresponding to the real models is obtained, then the second attribute information of the surface and/or edge of the three-dimensional contour control frame corresponding to the real models is determined according to the first attribute information of each real model, so that the second attribute information is configured to the three-dimensional contour control frame, a functional area model corresponding to each real model is obtained, and finally a functional area model library is built according to the functional area model corresponding to each real model. That is, according to the embodiment, the functional model with the second attribute information can be determined according to the space occupation information and the first attribute information of the real model, so that the structure of the real model is simplified, a designer can intuitively determine the required placement information according to the second attribute information of the functional area model and the surface and/or edge of the functional area model, and the model to be designed is quickly placed in the corresponding design area, so that the design efficiency is greatly improved.
Fig. 4 is a flow chart of a method for processing a model according to another embodiment. The present embodiment relates to an implementation process in which a computer device determines a usage spatial range of a real model from first attribute information of the real model. On the basis of the above embodiment, optionally, the above method further includes:
s401, extracting functional attributes of the real model and use attributes of the real model from first attribute information of the real model; wherein the functional attributes include: at least one of a use of the real model, an application condition of the real model, and a composition function of the real model, the use attribute including at least one of a use method of the real model, an installation method of the real model, and a maintenance method of the real model;
specifically, the above-mentioned functional attribute is an attribute of a function for realizing the real model, which may include use of the real model, application conditions of the real model, and constituent functions of the real model. For example, the functional purpose of the shower room is to realize a shower, the floor drain in the shower room is used under the condition that the floor drain needs to be installed on the ground, and the composition function of the model consisting of the table and the chair can be a writing function. The above-mentioned usage attribute is an attribute using a real model, which may include a usage method of the real model, an installation method of the real model, a maintenance method of the real model, and the like. Optionally, the function attribute and the usage attribute are extracted from the first attribute information.
S402, determining a use space range of the real model according to the functional attribute of the real model and the use attribute of the real model and at least one of national standard in the building field, industry standard and design experience parameter in the industry.
Specifically, after the functional attribute of the real model and the usage attribute of the real model are determined by the computer device, the usage space range of the real model can be determined according to at least one of national standards in the building field, industry standards, and design experience parameters in the industry. Taking a shower room model as an example, after the functional attribute of the shower room is obtained, the space range occupied by a user and the space range required by the shower when the user uses the shower can be determined, the installation height required by the shower can be determined according to the standing height of the user, the rotation range which enables the glass door of the shower room to be opened also needs to be determined, and the space range of the shower room can be finally determined by combining with national standards, industry standards, design experience parameters in industry and the like in the building field.
Alternatively, the above-described usage spatial range may include a maximum usage spatial range, an optimal usage spatial range, and a minimum usage spatial range. Alternatively, the maximum usage space range may be the maximum space for implementing the functions of the real model without affecting the implementation of the functions of other models, the optimal usage space range may be the space for implementing the functions of the real model with the greatest comfort, and the minimum usage space range may be the minimum space required for implementing the functions of the real model.
According to the model processing method provided by the embodiment, the computer equipment can extract the functional attribute of the real model and the use attribute of the real model from the first attribute information of the real model, and determine the use space range of the real model according to at least one of the functional attribute of the real model and the use attribute of the real model and the national standard, the industry standard and the design experience parameter in the industry in the building field. In this embodiment, the computer device may determine the usage space range of the real model according to the functional attribute and the usage attribute of the real model, so that the obtained usage space range is reasonable, the problem of unreasonable usage space caused by designating the usage space according to subjective consciousness of the designer is avoided, and the accuracy of the design is greatly improved.
For the convenience of understanding of those skilled in the art, the following describes in detail the model processing method provided in the present invention, and as shown in fig. 5, the method may include:
s501, the computer equipment acquires the occupied space information of each real model, wherein the occupied space information comprises the occupied space size of the real model and the occupied space shape of the real model.
S502, the computer equipment performs three-dimensional contour extraction operation on the real models according to the occupied space information of each real model to obtain three-dimensional contour control frames corresponding to the real models.
And S503, the computer equipment determines the size range of the surface and/or the edge of the three-dimensional contour control frame according to the using space range of the real model.
S504, the computer device determining the second attribute information includes: at least one of the positioning attribute of the real model, the size range of the surface and/or the edge of the three-dimensional contour control frame, the local coordinate system, the first association relationship and the second association relationship.
S505, the computer equipment configures the second attribute information to the three-dimensional contour control frame to obtain a functional area model corresponding to each real model.
S506, the computer equipment establishes the functional area model library according to the functional area model corresponding to each real model.
S507, the computer equipment acquires a functional area model to be dragged to the design area from a preset functional area model library.
S508, the computer equipment determines the first visual placement information of the functional area model in the design area and the second visual placement information of the sub-model according to the second attribute information of the surface and/or the edge of the functional area model.
S509, dragging the functional area model and the submodel to the design area by the computer equipment according to the first visual placement information and the second visual placement information.
It should be noted that, for the description in S501-S509, reference may be made to the description related to the above embodiment, and the effects thereof are similar, which is not repeated here.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
Fig. 6 is a schematic structural diagram of a model processing device according to an embodiment. As shown in fig. 6, the apparatus may include: a first acquisition module 10, a first determination module 11 and a dragging module 12.
Specifically, the first obtaining module 10 is configured to obtain, from a preset functional area model library, a functional area model to be dragged to a design area; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models.
The first determining module 11 is configured to determine, according to second attribute information of a surface and/or an edge of the functional area model, first visual placement information of the functional area model in the design area and second visual placement information of the sub-model; wherein the second attribute information is associated with the first attribute information.
And a dragging module 12, configured to drag the functional area model and the submodel to the design area according to the first placement information and the second placement information.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 7 is a schematic diagram of a model processing apparatus according to another embodiment. On the basis of the embodiment shown in fig. 6, optionally, the apparatus further includes: a second acquisition module 13, a first extraction module 14, a second determination module 15 and an establishment module 16.
Specifically, the second obtaining module 13 is configured to obtain the occupation space information of each real model, where the occupation space information includes the occupation space size of the real model and the occupation space shape of the real model.
The first extraction module 14 is configured to perform a three-dimensional contour extraction operation on the real models according to the occupation space information of each real model, so as to obtain a three-dimensional contour control frame corresponding to the real models.
The second determining module 15 is configured to determine, according to the first attribute information of each real model, second attribute information of a surface and/or an edge of the stereoscopic contour control frame corresponding to the real model; and the second attribute information is also used for configuring the second attribute information to the three-dimensional contour control frame to obtain a functional area model corresponding to each real model.
And the building module 16 is configured to build the functional area model library according to the functional area model corresponding to each real model.
Optionally, the first attribute information includes: at least one of a positioning attribute of the real model, a local coordinate system of the real model, a functional attribute of the real model, a use spatial range of the real model, a first association relationship between the real model and a sub-model inside the real model, and a second association relationship between the real model and an external model existing in an actual environment.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 8 is a schematic diagram of a model processing apparatus according to another embodiment. On the basis of the above embodiment, optionally, the above second determining module 15 may include: a first determination unit 151 and a second determination unit 152.
Specifically, the first determining unit 151 is configured to determine a size range of a face and/or an edge of the stereoscopic profile control frame according to a usage space range of the real model.
The second determining unit 152, configured to determine the second attribute information includes: at least one of the positioning attribute of the real model, the size range of the surface and/or the edge of the three-dimensional contour control frame, the local coordinate system, the first association relationship and the second association relationship.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 9 is a schematic diagram of a model processing apparatus according to another embodiment. On the basis of the above embodiment, optionally, the apparatus further includes: a second extraction module 17 and a third determination module 18.
A second extraction module 17 for extracting a functional attribute of the real model and a usage attribute of the real model from the first attribute information of the real model; wherein the functional attributes include: at least one of a use of the real model, an application condition of the real model, and a constituent function of the real model, the use attribute includes at least one of a use method of the real model, an installation method of the real model, and a maintenance method of the real model.
A third determining module 18 is configured to determine a usage space range of the real model according to the functional attribute of the real model and the usage attribute of the real model, and at least one of a national standard in the building field, an industry standard, and a design experience parameter in the industry.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 10 is a schematic diagram of a model processing apparatus according to another embodiment. On the basis of the above embodiment, optionally, the apparatus may further include: a fourth determining module 19, configured to determine a local coordinate system of the functional area model according to the positioning attribute of the real model and at least one of a national standard in the building field, an industry standard, and a design experience parameter in the industry.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Fig. 11 is a schematic diagram of a model processing apparatus according to another embodiment. On the basis of the above embodiment, optionally, the apparatus may further include: and the control module 20 is used for carrying out deformation and dragging operation on the functional area model according to the input deformation vector and the target position.
The model processing device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
For specific limitations of the model processing means, reference may be made to the above description of the model processing method, and no further description is given here. The respective modules in the above-described model processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
And dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of processing a model, comprising:
acquiring the occupation space information of each real model, wherein the occupation space information comprises the occupation space size of the real model and the occupation space shape of the real model;
carrying out three-dimensional contour extraction operation on the real models according to the occupied space information of each real model to obtain three-dimensional contour control frames corresponding to the real models;
Determining the size range of the surface and/or the edge of the three-dimensional contour control frame corresponding to each real model according to the use space range in the first attribute information of each real model, and determining second attribute information; the second attribute information is configured to the three-dimensional contour control frame to obtain a functional area model corresponding to each real model; the first attribute information includes: at least one of a positioning attribute of the real model, a local coordinate system of the real model, a functional attribute of the real model, a use spatial range of the real model, a first association relationship between the real model and a sub-model inside the real model, and a second association relationship between the real model and an external model existing in an actual environment; the second attribute information includes: at least one of the positioning attribute of the real model, the size range of the surface and/or the edge of the three-dimensional contour control frame, the local coordinate system, the first association relationship and the second association relationship;
establishing a functional area model library according to the functional area model corresponding to each real model;
Acquiring a functional area model to be dragged to a design area from the functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
determining first visual placement information of the functional area model in the design area and second visual placement information of the functional area sub-model according to second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and dragging the functional area model and the functional area sub-model to the design area according to the first visual placement information and the second visual placement information.
2. The method according to claim 1, wherein the method further comprises:
extracting functional attributes of the real model and use attributes of the real model from first attribute information of the real model; wherein the functional attributes include: at least one of a use of the real model, an application condition of the real model, and a composition function of the real model, the use attribute including at least one of a use method of the real model, an installation method of the real model, and a maintenance method of the real model;
And determining the use space range of the real model according to the functional attribute of the real model and the use attribute of the real model and at least one of national standard in the building field, industry standard and design experience parameter in the industry.
3. The method according to claim 1, wherein the method further comprises:
and determining a local coordinate system of the functional area model according to the positioning attribute of the real model and at least one of national standard, industry standard and design experience parameters in the industry in the building field.
4. The method according to claim 1, wherein the configuring the second attribute information to the stereo contour control box to obtain a functional area model corresponding to each real model includes:
and configuring the content in the second attribute information to the surface and/or edge corresponding to the three-dimensional contour control frame according to a preset attribute configuration rule to obtain a functional area model corresponding to each real model.
5. The method according to any one of claims 1-4, further comprising:
and carrying out deformation and dragging operation on the functional area model according to the input deformation vector and the target position.
6. A model processing apparatus, comprising:
the second acquisition module is used for acquiring the occupied space information of each real model, wherein the occupied space information comprises the occupied space size of the real model and the occupied space shape of the real model;
the first extraction module is used for carrying out three-dimensional contour extraction operation on the real models according to the occupied space information of each real model to obtain three-dimensional contour control frames corresponding to the real models;
the second determining module is used for determining the size range of the surface and/or the edge of the three-dimensional contour control frame corresponding to each real model according to the use space range in the first attribute information of each real model, and determining second attribute information; the second attribute information is configured to the three-dimensional contour control frame to obtain a functional area model corresponding to each real model; the first attribute information includes: at least one of a positioning attribute of the real model, a local coordinate system of the real model, a functional attribute of the real model, a use spatial range of the real model, a first association relationship between the real model and a sub-model inside the real model, and a second association relationship between the real model and an external model existing in an actual environment; the second attribute information includes: at least one of the positioning attribute of the real model, the size range of the surface and/or the edge of the three-dimensional contour control frame, the local coordinate system, the first association relationship and the second association relationship;
The building module is used for building a functional area model library according to the functional area model corresponding to each real model;
the first acquisition module is used for acquiring a functional area model to be dragged to a design area from a preset functional area model library; the functional area model is a three-dimensional contour control frame abstracted according to first attribute information of a real model, and the real model comprises a plurality of sub-models;
the first determining module is used for determining first visual placement information of the functional area model in the design area and second visual placement information of the sub-model according to the second attribute information of the surface and/or the edge of the functional area model; wherein the second attribute information is associated with the first attribute information;
and the dragging module is used for dragging the functional area model and the submodel to the design area according to the first placing information and the second placing information.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the second extraction module is used for extracting the functional attribute of the real model and the use attribute of the real model from the first attribute information of the real model; wherein the functional attributes include: at least one of a use of the real model, an application condition of the real model, and a composition function of the real model, the use attribute including at least one of a use method of the real model, an installation method of the real model, and a maintenance method of the real model;
And the third determining module is used for determining the use space range of the real model according to the functional attribute of the real model and the use attribute of the real model and at least one of national standard in the building field, industry standard and design experience parameter in the industry.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the fourth determining module is used for determining the local coordinate system of the functional area model according to the positioning attribute of the real model and at least one of the national standard, the industry standard and the design experience parameter in the industry in the building field.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-5.
CN201810813885.5A 2018-07-23 2018-07-23 Model processing method, device, computer equipment and readable storage medium Active CN110751715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810813885.5A CN110751715B (en) 2018-07-23 2018-07-23 Model processing method, device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810813885.5A CN110751715B (en) 2018-07-23 2018-07-23 Model processing method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110751715A CN110751715A (en) 2020-02-04
CN110751715B true CN110751715B (en) 2024-02-09

Family

ID=69275020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810813885.5A Active CN110751715B (en) 2018-07-23 2018-07-23 Model processing method, device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110751715B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819016A (en) * 1993-10-05 1998-10-06 Kabushiki Kaisha Toshiba Apparatus for modeling three dimensional information
CN102663830A (en) * 2012-04-28 2012-09-12 北京尔宜居科技有限责任公司 Data processing method of interior decoration model
CN104318042A (en) * 2014-11-20 2015-01-28 江苏中佑石油机械科技有限责任公司 Home design system
CN107256577A (en) * 2017-06-19 2017-10-17 巧夺天宫(深圳)科技有限公司 Fitting-up BIM, its construction method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10311614B2 (en) * 2016-09-07 2019-06-04 Microsoft Technology Licensing, Llc Customized realty renovation visualization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5819016A (en) * 1993-10-05 1998-10-06 Kabushiki Kaisha Toshiba Apparatus for modeling three dimensional information
CN102663830A (en) * 2012-04-28 2012-09-12 北京尔宜居科技有限责任公司 Data processing method of interior decoration model
CN104318042A (en) * 2014-11-20 2015-01-28 江苏中佑石油机械科技有限责任公司 Home design system
CN107256577A (en) * 2017-06-19 2017-10-17 巧夺天宫(深圳)科技有限公司 Fitting-up BIM, its construction method, device and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘烈辉 ; .建筑信息模型与建筑室内设计.土木建筑工程信息技术.2009,(第02期),全文. *
蒋芳 ; .室内软装三维模拟系统的设计与实现.现代电子技术.2018,(第09期),全文. *
贾盈平 ; 李春祥 ; .Revit三维显示技术的开发及应用.土木建筑工程信息技术.2016,(第01期),全文. *

Also Published As

Publication number Publication date
CN110751715A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
WO2015027953A1 (en) Method, apparatus and terminal device for dynamic image processing
US20140225894A1 (en) 3d-rendering method and device for logical window
CN105528489B (en) Method for two-dimensional and three-dimensional mixed use in modeling software
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
AU2019457052B2 (en) Table processing method and apparatus, and intelligent interactive tablet and storage medium
CA2956086C (en) Optimized rendering of shared documents on client devices with document raster representations
US20140267268A1 (en) Apparatus and methods for detailing subdivision surfaces
JP7513731B2 (en) Image cutting method, device, equipment and storage medium
CN110428504B (en) Text image synthesis method, apparatus, computer device and storage medium
CN103064691A (en) Method and device for producing desktop icon of electronic equipment
CN111581699A (en) BIM (building information modeling) technical application method for rapidly outputting machining drawing and extracting materials of European building
CN109685897B (en) House type drawing method for drawing door and window opening by one-step dragging
CN110751715B (en) Model processing method, device, computer equipment and readable storage medium
CN110889152A (en) Method and device for establishing model relation, computer equipment and storage medium
CN109191505A (en) Static state generates the method, apparatus of human face three-dimensional model, electronic equipment
CN103473800B (en) A kind of comprehensive dynamic dispatching method of threedimensional model
CN110781535B (en) Model plotting method and device, computer equipment and readable storage medium
US11875280B2 (en) Rendering 3D model data for prioritized placement of 3D models in a 3D virtual environment
CN110750816A (en) Method and device for building model, computer equipment and readable storage medium
CN112287443B (en) Method and device for generating structural floor slab, electronic equipment and storage medium
CN110648400B (en) Space quantization method of model, mapping relation establishment method, device and equipment
CN113987652A (en) Wall model generation method and device
CN111046467B (en) House type parametric modeling method and related equipment
CN114299214A (en) Virtual indoor scene generation method and device, storage medium and electronic device
CN110555914B (en) Model information processing method, device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240110

Address after: 210000, Room 015, Building 2, Shuiyuanju, Qinhuai District, Nanjing City, Jiangsu Province

Applicant after: Nanjing Runshijing Environmental Engineering Co.,Ltd.

Address before: 710003 Room 301, Central Zone, National E-Commerce Demonstration Base, No. 528, Tianguba Road, Software New Town, High-tech Zone, Xi'an City, Shaanxi Province

Applicant before: XI'AN SEA2 NETWORK TECHNOLOGY CO.,LTD.

GR01 Patent grant
GR01 Patent grant