CN112634440B - Three-dimensional frame model construction method, device, equipment and medium - Google Patents

Three-dimensional frame model construction method, device, equipment and medium Download PDF

Info

Publication number
CN112634440B
CN112634440B CN202011585009.5A CN202011585009A CN112634440B CN 112634440 B CN112634440 B CN 112634440B CN 202011585009 A CN202011585009 A CN 202011585009A CN 112634440 B CN112634440 B CN 112634440B
Authority
CN
China
Prior art keywords
path
node
frame
skeleton point
dimensional
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
CN202011585009.5A
Other languages
Chinese (zh)
Other versions
CN112634440A (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.)
Shenzhen Bincent Technology Co Ltd
Original Assignee
Shenzhen Bincent 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 Shenzhen Bincent Technology Co Ltd filed Critical Shenzhen Bincent Technology Co Ltd
Priority to CN202011585009.5A priority Critical patent/CN112634440B/en
Publication of CN112634440A publication Critical patent/CN112634440A/en
Application granted granted Critical
Publication of CN112634440B publication Critical patent/CN112634440B/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 the technical field of three-dimensional models, and discloses a method, a device, equipment and a medium for constructing a three-dimensional frame model, wherein the method comprises the following steps: and obtaining frame path data and section pattern data containing frame paths in the three-dimensional construction request by receiving the three-dimensional construction request, carrying out skeleton positioning identification on the frame paths, identifying skeleton points in the frame paths, inserting section pattern data into each skeleton point, carrying out included angle transition treatment on the inserted frame paths to obtain paths to be constructed, carrying out three-dimensional frame construction on the paths to be constructed by applying a lofting path construction method, and constructing a three-dimensional frame model. The invention realizes that the three-dimensional frame model can be quickly, accurately and automatically constructed, can reduce the high requirements on equipment in the construction process, simplifies the three-dimensional construction process and complexity, realizes that the three-dimensional frame model can be acquired by the mobile terminal anywhere, and improves the user experience satisfaction.

Description

Three-dimensional frame model construction method, device, equipment and medium
Technical Field
The present invention relates to the field of three-dimensional models, and in particular, to a method, an apparatus, a device, and a medium for constructing a three-dimensional frame model.
Background
In recent years, with the rapid development of 3D technologies, 3D modeling technologies are becoming mature, more and more industries need to reconstruct a three-dimensional model by means of 3D technologies, so as to satisfy visual experiences and experiences of users, especially in the home decoration industry, and the effect of reconstructing home decoration by using the 3D technologies is provided for users, so as to experience effects after home decoration, for example: the effects of home decoration of gypsum lines of a ceiling, home decoration of skirting lines of a floor, door decoration and the like, but due to the limitation of high-performance GPU equipment used by a 3D technology, reconstruction can be well carried out at a PC end, but the application scene of the three-dimensional modeling technology cannot be expanded to a mobile terminal, the application scene of the three-dimensional modeling technology is limited, a user can only experience the front of the PC end, the three-dimensional home decoration effect cannot be experienced quickly at the mobile terminal without time, and the user can select nearby home decoration enterprises to experience, so that the user loss is caused.
Disclosure of Invention
The invention provides a three-dimensional frame model construction method, a device, computer equipment and a storage medium, which realize that a three-dimensional frame model is quickly, accurately and automatically constructed, improve the timeliness of the three-dimensional frame model, realize that the three-dimensional frame model can be obtained by a mobile terminal anywhere, and improve the user experience satisfaction.
A three-dimensional frame model construction method comprises the following steps:
receiving a three-dimensional construction request, and acquiring frame path data and section pattern data in the three-dimensional construction request; the frame path data includes a frame path;
performing skeleton positioning identification on the frame path, and identifying skeleton points in the frame path;
inserting the section pattern data into each skeleton point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed;
and constructing a three-dimensional frame of the path to be constructed by using a lofting path construction method, so as to construct a three-dimensional frame model.
A three-dimensional border model building apparatus, comprising:
the receiving module is used for receiving a three-dimensional construction request and acquiring frame path data and section pattern data in the three-dimensional construction request; the frame path data includes a frame path;
the identification module is used for carrying out skeleton positioning identification on the frame path and identifying skeleton points in the frame path;
the transition module is used for inserting the section pattern data into each framework point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed;
the construction module is used for constructing the three-dimensional frame of the path to be constructed by using a lofting path construction method, and constructing a three-dimensional frame model.
A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the three-dimensional border model building method described above when the computer program is executed.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the three-dimensional bounding box model construction method described above.
According to the three-dimensional frame model construction method, the device, the computer equipment and the storage medium, the frame path data and the section pattern data containing the frame paths in the three-dimensional construction request are obtained through receiving the three-dimensional construction request, the frame paths are subjected to skeleton positioning identification, skeleton points in the frame paths are identified, the section pattern data are inserted into the skeleton points, the included angle transition processing is carried out on the inserted frame paths, the paths to be constructed are obtained, the three-dimensional frame model is constructed through the lofting path construction method, the three-dimensional frame model is constructed, therefore, the skeleton points of the frame paths are identified through the included angle transition processing, the paths to be constructed are generated, the lofting path construction method is used, the three-dimensional frame model is constructed, the three-dimensional frame model can be quickly and accurately constructed automatically, the high requirements on equipment in the construction process can be reduced, the construction process and the complexity are simplified, the timeliness of the three-dimensional frame model is improved, the three-dimensional frame model can be obtained through a mobile terminal, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for constructing a three-dimensional bounding box model in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart of step S20 of a three-dimensional bounding box model construction method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for constructing a three-dimensional bounding box model in accordance with another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for constructing a three-dimensional bounding box model in step S303 according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a three-dimensional bounding box model building apparatus in accordance with an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a three-dimensional frame model construction method, wherein a mobile terminal communicates with a server through a network. Mobile terminals include, but are not limited to, computer devices, notebook computers, smart phones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
The three-dimensional frame model construction method is executed by the mobile terminal.
In one embodiment, as shown in fig. 1, a method for constructing a three-dimensional frame model is provided, and the technical scheme mainly includes the following steps S10-S40:
s10, receiving a three-dimensional construction request, and acquiring frame path data and section pattern data in the three-dimensional construction request; the border path data includes a border path.
Understandably, in a mobile terminal installed with application software, after a user finishes planning the border path data and selecting the screenshot pattern data on the application software, the application software can implement software for constructing a three-dimensional border model by the user, the process of planning the border path data is a process of collecting data in the process of drawing a path on a target border needing to reconstruct the three-dimensional border model on the application software, the border path data is related data of a border path drawn along with the edge of the target border needing to reconstruct the three-dimensional border model, the border path data comprises a border path, a border path length, a start node and a stop node, the border path is a set of coordinate points with time sequence drawn along the edge of all the target borders needing to reconstruct the three-dimensional border model, the frame path length is the length of the frame path, the starting node is the node of the coordinates of the starting point of the frame path, the ending node is the node of the coordinates of the ending point of the frame path, the starting node and the ending node can be the same, the frame path forms a closed path, the starting node and the ending node can also be different, the frame path forms a non-closed path, the diversity requirement of users can be met, the process of selecting the screenshot pattern data is the process of selecting the cross section diagram to be put and the data of the cross section arrangement azimuth of the cross section diagram, the cross section pattern data is the data of the selected and determined cross section diagram and the cross section arrangement azimuth, the cross section diagram is the pattern of the cross section of the target frame to be decorated, for example: a sectional view of a pattern of a gypsum line, a sectional view of a pattern of a skirting line, a sectional view of a pattern of a door trim, etc., the target frame is a frame to be decorated or home-finished, for example: the frame of gypsum line is installed on the ceiling, the frame of skirting line, door edge and the like are installed on the floor, the cross section placing orientation is the orientation of placing the cross section drawing relative to the target frame, the cross section placing orientation can be placed in any orientation, and can also be the automatic identification and matching placing orientation according to the frame size of the target frame and the plane of the target frame in an automatic matching mode, so that the placing orientation of placing the cross section drawing is determined.
S20, carrying out skeleton positioning recognition on the frame path, and recognizing skeleton points in the frame path.
The skeleton points are critical positioning points in the frame path, the track of the frame path can be approximately embodied through the skeleton points, the skeleton positioning identification is used for carrying out skeleton point identification on the frame path, the identification process of identifying points needing to be inserted into the section pattern data in the frame path is carried out, the skeleton positioning identification process can be a process of determining the number of dividing nodes according to the frame path length in the frame path data, dividing the frame path into nodes, carrying out node similarity identification on each node, and determining deletion or retention according to the node similarity value of each node so as to identify the skeleton points.
In an embodiment, as shown in fig. 2, in step S20, that is, performing skeleton positioning recognition on the frame path, the recognizing skeleton points in the frame path includes:
s201, determining the number of dividing nodes according to the path length of the frame; the border path data also includes the border path length.
Understandably, according to the length range within which the border path length falls, the number of dividing nodes corresponding to the length range is mapped, for example: the frame path is 30 m long and falls into the range of 20 m to 50 m, the range of 20 m to 50 m corresponds to the number mapping of 80, and the number of the mapped dividing nodes is 80, and the number of the dividing nodes is the total number of the nodes for dividing the frame path.
S202, carrying out equally dividing processing on the frame paths according to the number of the dividing nodes, and dividing nodes with the same number as the dividing nodes.
The dividing process is to divide the frame path into equal segments with the same number as the dividing nodes, and the divided nodes are coordinate points divided into segments in the frame path.
And S203, carrying out node similarity identification on each node to obtain a node similarity value corresponding to each node.
It can be understood that the node similarity value is an index for measuring the similarity between the node corresponding to the node and the front and rear two nodes corresponding to the node, the similarity of two nodes can be represented as a large change in a certain axis direction of three-dimensional coordinates of three nodes, and the other two axis directions are within a preset tolerance range, namely, whether the three nodes are almost on a straight line or not, and the node similarity is identified as a process for identifying the similarity between the node and the front and rear two nodes corresponding to the node, namely, an identification process for identifying whether the node and the front and rear two nodes corresponding to the node represent a straight line or not.
In an embodiment, in step S203, that is, the step of performing node similarity recognition on each node to obtain a node similarity value corresponding to each node includes:
s2031, a previous node and a next node corresponding to the node are acquired.
It is understood that the previous node is a node that is located before and adjacent to the selected node on the time track of the frame path (i.e., time sequence), and the next node is a node that is located after and adjacent to the selected node on the time track of the frame path (i.e., time sequence), and each of the nodes, and the previous node and the backward node corresponding to each of the nodes are acquired.
And S2032, performing three-point drawing on the node, the previous node corresponding to the node and the next node to obtain a unit area and a three-point area corresponding to the node.
It is to be understood that the three-point drawing is a process of forming a triangle by three nodes (three coordinate points), so that the area of the triangle can be calculated according to the formed triangle, the area of the triangle can be determined as the three-point area corresponding to the node, the linear distance between the node and the previous node or the next node corresponding to the node is taken as the side length of an equilateral triangle, so that an equilateral triangle is formed, the area of the equilateral triangle can be calculated, the area of the equilateral triangle is determined as the unit area corresponding to the node, and the unit area and the three-point area corresponding to each node can be determined.
And S2033, determining a node similarity value corresponding to the node according to the unit area and the three-point area corresponding to the node.
It is understood that the three-point area and the unit area corresponding to the same node are compared, and the node similarity value corresponding to the node is obtained by subtracting the ratio, wherein the range of the node similarity value is 0% to 100%, and the node similarity value corresponding to each node can be identified.
The invention realizes the aim of acquiring the previous node and the next node corresponding to the node; performing three-point drawing on the node, the previous node corresponding to the node and the next node to obtain a unit area and a three-point area corresponding to the node; according to the unit area and the three-point area corresponding to the node, determining the node similarity value corresponding to the node, so that the node similarity value of the node is determined through the three-point area and the unit area, a node similarity identification method is provided, and the identification speed and accuracy are improved.
S204, carrying out the stay removal processing on each node according to all the node similarity values to obtain the skeleton point.
Understandably, it is determined whether each of the node similarity values is greater than or equal to a preset similarity value, where the preset similarity value is a preset threshold value, and may be set to 98%, 99%, or the like, where the nodes corresponding to the node similarity values greater than or equal to the preset similarity value are removed, and the remaining nodes are recorded as the skeleton points.
The method and the device realize that the number of the dividing nodes is determined according to the path length of the frame; dividing the frame paths into nodes with the same number as the dividing nodes according to the dividing node number; node similarity identification is carried out on each node, and a node similarity value corresponding to each node is obtained; and carrying out the stay removal processing on each node according to the node similarity values to obtain the skeleton points, so that the nodes are divided, and carrying out the stay removal processing on each node according to the node similarity values of each node to finally identify the skeleton points.
In an embodiment, in step S204, that is, the performing, according to all the node similarity values, a leave-out process on each node to obtain the skeleton point includes:
s2041, removing the nodes corresponding to the node similarity values which are larger than or equal to the preset similarity value.
Understandably, the removing is to cancel the identification of the node from the border path by the node corresponding to the node similarity value greater than or equal to the preset similarity value.
And S2042, reserving the node corresponding to the node similarity value smaller than the preset similarity value.
Understandably, the reserving is to reserve, from the border path, an identification of a node, that is, not to be processed, of the node corresponding to the node similarity value greater than or equal to a preset similarity value.
And S2043, recording all the remaining nodes on the frame path as skeleton points.
Understandably, the nodes of all the remaining markers are determined as the skeleton points.
The invention realizes automatic removal of similar nodes, reserves useful and effective nodes for subsequent construction of the three-dimensional frame model, can accurately identify skeleton points, provides accurate skeleton points for subsequent construction of the three-dimensional frame model, and is convenient for rapid construction of the three-dimensional frame model.
S30, inserting the section pattern data into each skeleton point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed.
Understandably, a cross-section diagram is put according to a cross-section arrangement azimuth in the cross-section pattern data, the cross-section diagram after being put is inserted into the position of each skeleton point, the cross-section center of each inserted cross-section diagram is overlapped with the corresponding skeleton point to obtain a to-be-transited path, the to-be-transited path is subjected to included angle transition processing to obtain a to-be-constructed path, the included angle transition processing is a process of obtaining a former skeleton point and a latter skeleton point corresponding to each skeleton point, an included angle value of each skeleton point is determined according to each skeleton point and the former skeleton point and the latter skeleton point corresponding to each skeleton point by a path orientation method, the skeleton point corresponding to the included angle value greater than or equal to the preset included angle value is determined as a to-be-newly-added skeleton point, inserting a new skeleton point into the path of the frame path between the new skeleton point to be added in the path to be transited and the previous skeleton point corresponding to the new skeleton point to be transited, finally determining the path to be transited after the insertion of all the new skeleton points as the path to be constructed, wherein the previous skeleton point is a skeleton point which is more front and adjacent than the selected skeleton point on the time track of the frame path (namely, the time sequence), the latter skeleton point is a skeleton point which is more rear and adjacent than the selected skeleton point on the time track of the frame path (namely, the time sequence), the path orientation method is to determine a vertical plane which is perpendicular to the direction of the former skeleton point pointing to the skeleton point and a vertical plane which is perpendicular to the direction of the skeleton point pointing to the latter skeleton point, the included angle between the two planes, the method for determining the included angle value of the skeleton point judges whether the included angle value of each skeleton point is larger than or equal to a preset included angle value, wherein the preset included angle value is a preset angle value, such as 60 degrees, 45 degrees and the like, the newly added point is a node (namely a coordinate point on a frame path) which needs to be added with one more cross-section graph, the process of inserting the cross-section graph which is the same as the newly added skeleton point into the newly added point is performed, and the path to be constructed is the frame path which is about to be subjected to three-dimensional construction.
In an embodiment, as shown in fig. 3, in step S30, the inserting the section pattern data at each skeleton point, and performing an included angle transition process on the inserted frame path to obtain a path to be constructed includes:
s301, placing a cross-sectional view according to the cross-sectional placement azimuth in the cross-sectional pattern data, and inserting the placed cross-sectional view at the position of each skeleton point; the section pattern data includes a section view and a section placement orientation.
And S302, overlapping the section center of each inserted section view and the corresponding skeleton point to obtain a path to be transited.
It is understood that the cross-sectional view has one cross-sectional center, the cross-sectional center is a center position point of the cross-sectional view, and the path to be transitioned is the frame path after the cross-sectional view is inserted.
S303, performing included angle transition processing on the path to be transitioned to obtain the path to be constructed.
The method comprises the steps of obtaining a previous skeleton point and a next skeleton point corresponding to each skeleton point, determining the included angle value of each skeleton point according to the previous skeleton point and the next skeleton point corresponding to each skeleton point by a path orientation method, determining the skeleton point corresponding to the included angle value which is greater than or equal to the preset included angle value as a skeleton point to be added, inserting a new added point into a path of the frame path between the skeleton point to be added and the previous skeleton point corresponding to the new added skeleton point in the path to be added, and finally determining the path to be converted after the insertion of all the new added points as a path to be constructed.
According to the invention, the sectional views are put according to the sectional arrangement positions in the sectional pattern data, and the put sectional views are inserted into the positions of the skeleton points; overlapping the center of each inserted section of the section diagram with the corresponding skeleton point to obtain a path to be transited; and performing included angle transition treatment on the path to be transited to obtain the path to be constructed, so that a cross-section diagram can be inserted into a framework point, the path to be constructed can be obtained by using the included angle transition treatment, and a foundation is provided for the subsequent construction of the three-dimensional frame model.
In an embodiment, as shown in fig. 4, in step S303, that is, performing the angle transition processing on the path to be transitioned to obtain the path to be constructed, the method includes:
s3031, a former skeleton point and a latter skeleton point corresponding to each skeleton point are obtained.
S3032, determining the included angle value of each skeleton point according to each skeleton point, the previous skeleton point and the next skeleton point corresponding to each skeleton point by using a path orientation method.
The method for determining the included angle between the two planes is a method for determining the included angle value of the skeleton point, and judging whether the included angle value of each skeleton point is larger than or equal to a preset included angle value, wherein the preset included angle value is a preset angle value.
S3033, judging whether the included angle value of each skeleton point is larger than or equal to a preset included angle value.
S3034, determining the skeleton point corresponding to the included angle value larger than or equal to the preset included angle value as a skeleton point to be newly added.
S3035, a new point is inserted into the path between the to-be-added skeleton point and the former skeleton point corresponding to the to-be-added skeleton point in the to-be-transitioned path.
Understandably, a coordinate point of an intermediate point on a path between the skeleton point to be newly added and the previous skeleton point corresponding to the skeleton point to be newly added in the path to be transited is found, and is determined as the newly added point, i.e. one of the newly added points is inserted.
S3036, inserting the section view which is the same as the skeleton point to be newly added into the newly added point.
S3037, determining the paths to be transited after the insertion of all the newly added points as the paths to be constructed.
The invention realizes that the former skeleton point and the latter skeleton point corresponding to each skeleton point are obtained; determining an included angle value of each skeleton point according to each skeleton point, the previous skeleton point and the next skeleton point corresponding to each skeleton point by using a path orientation method; judging whether the included angle value of each skeleton point is larger than or equal to a preset included angle value; determining the skeleton point corresponding to the included angle value which is larger than or equal to the preset included angle value as a skeleton point to be newly added; inserting a new adding point on a path between the to-be-added skeleton point and the former skeleton point corresponding to the to-be-added skeleton point in the to-be-transitioned path; inserting the section diagram which is the same as the skeleton point to be newly added into the newly added point; the to-be-constructed path is determined as the to-be-constructed path after the insertion of all the newly added points is completed, so that the to-be-constructed path is automatically generated according to the skeleton points by using a path orientation method, a method for generating the to-be-constructed path is provided, a foundation is provided for the subsequent construction of the three-dimensional frame model, and the accuracy and quality of the construction of the three-dimensional frame model are improved.
S40, constructing a three-dimensional frame of the path to be constructed by using a lofting path construction method, and constructing a three-dimensional frame model.
The three-dimensional frame construction process is a process of generating an insertion path according to whether a start node and a stop node are overlapped or not, and smoothly constructing a three-dimensional frame by using a lofting path construction method, so as to obtain the three-dimensional frame model.
The three-dimensional frame model is a model with a three-dimensional structure, which is displayed along the frame path, and after the three-dimensional frame model is built, the built three-dimensional frame model is displayed on an interface on the application software, so that a three-dimensional effect diagram after home-decoration can be experienced by a user, satisfaction of the user experience is improved, region limitation can be broken, and a user can freely acquire a desired three-dimensional model from the mobile terminal.
According to the method, the frame path data and the section pattern data containing the frame path in the three-dimensional construction request are obtained, the frame path is subjected to skeleton positioning identification, the skeleton points in the frame path are identified, the section pattern data are inserted into the skeleton points, the included angle transition processing is carried out on the inserted frame path to obtain the path to be constructed, the three-dimensional frame construction is carried out on the path to be constructed by using a lofting path construction method, and the three-dimensional frame model is constructed, so that the skeleton points of the frame path are identified by using the skeleton positioning identification, the path to be constructed is generated by using the included angle transition processing, the three-dimensional frame construction is carried out on the path to be constructed by using the lofting path construction method, the three-dimensional frame model is constructed, the three-dimensional frame model can be quickly and accurately and automatically constructed, the high requirements on equipment in the construction process can be reduced, the timeliness of the three-dimensional frame model is improved, the three-dimensional frame model can be obtained by using a mobile terminal anywhere, and the user experience satisfaction is improved.
In an embodiment, in the step S40, that is, the applying a lofting path building method, the three-dimensional frame building is performed on the path to be built, and a three-dimensional frame model is built, including:
s401, judging whether the initial node and the termination node are overlapped; the bezel path also includes the start node and the end node.
S402, if the initial node and the termination node are overlapped, placing the section view according to the section placing direction, inserting the placed section view at the position of the initial node, and overlapping the section center of the inserted section view and the initial node to obtain an insertion path.
S403, if the initial node and the termination node are not overlapped, placing the section views according to the section placing azimuth, respectively inserting the placed section views into the positions of the initial node and the termination node, and respectively overlapping the section centers of the inserted section views with the initial node and the termination node to obtain an insertion path.
S404, smoothly constructing a three-dimensional frame model by using a lofting path construction method.
The method for constructing the lofting path is a method for taking a two-dimensional cross-sectional view as a cross-section along a certain path, moving along the path to form a complex three-dimensional model, giving different cross-sectional views on different sections (i.e. between the cross-sectional views) on the same path, and performing three-dimensional image processing for smooth transition on each skeleton point and each newly added point (i.e. between each section).
The invention realizes whether the initial node and the termination node are coincident or not by judging; if the initial node and the termination node are overlapped, placing a section diagram according to the section placing direction, inserting the placed section diagram at the position of the initial node, and overlapping the section center of the inserted section diagram and the initial node to obtain an insertion path; if the initial node and the termination node are not coincident, placing the section views according to the section placing azimuth, respectively inserting the placed section views at the positions of the initial node and the termination node, and respectively overlapping the section centers of the inserted section views with the initial node and the termination node to obtain an insertion path; by means of the lofting path construction method, a three-dimensional frame model is smoothly constructed, so that the three-dimensional frame model is automatically constructed, whether the initial node and the termination node are inserted into the sectional views or not is judged, one-time insertion operation can be reduced under the condition of a closed path, the construction process can be simplified, and the three-dimensional model can be quickly constructed by means of the lofting path construction method.
In an example, after the step S40, that is, after the three-dimensional frame model is constructed, the method includes:
and S50, uploading the three-dimensional frame model to a cloud server for subsequent calling.
It can be understood that the three-dimensional frame model is uploaded to a server for later recall of the three-dimensional frame model at any time or any place, and the operation of further modifying the home decoration scheme can be performed by recall of the three-dimensional frame model.
The invention realizes that the communication with the cloud server can break the time and region limitation and meet the experience satisfaction degree of the user.
In an embodiment, a three-dimensional frame model construction device is provided, and the three-dimensional frame model construction device corresponds to the three-dimensional frame model construction method in the embodiment one by one. As shown in fig. 5, the three-dimensional frame model building device includes a receiving module 11, an identifying module 12, a transition module 13, and a building module 14. The functional modules are described in detail as follows:
a receiving module 11, configured to receive a three-dimensional construction request, and acquire frame path data and section pattern data in the three-dimensional construction request; the frame path data includes a frame path;
the recognition module 12 is used for carrying out skeleton positioning recognition on the frame path and recognizing skeleton points in the frame path;
the transition module 13 is used for inserting the section pattern data into each skeleton point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed;
the construction module 14 is configured to construct a three-dimensional frame model by using a lofting path construction method to construct a three-dimensional frame of the path to be constructed.
For specific limitations of the three-dimensional frame model building apparatus, reference may be made to the above limitation of the three-dimensional frame model building method, and no further description is given here. The modules in the three-dimensional frame model building device can be realized in whole or in part by software, hardware and a combination 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 mobile terminal is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the three-dimensional border model building method in the above embodiments when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the three-dimensional bounding box model construction method in the above embodiment.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (8)

1. The three-dimensional frame model construction method is characterized by comprising the following steps of:
receiving a three-dimensional construction request, and acquiring frame path data and section pattern data in the three-dimensional construction request; the frame path data includes a frame path;
performing skeleton positioning identification on the frame path, and identifying skeleton points in the frame path;
inserting the section pattern data into each skeleton point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed;
constructing a three-dimensional frame of the path to be constructed by using a lofting path construction method, and constructing a three-dimensional frame model;
inserting the section pattern data at each skeleton point, and performing included angle transition processing on the inserted frame paths to obtain paths to be constructed, wherein the steps include:
placing a cross-sectional view according to the cross-sectional placement azimuth in the cross-sectional pattern data, and inserting the placed cross-sectional view at the position of each skeleton point; the section pattern data comprises a section view and a section placement orientation;
overlapping the center of each inserted section of the section diagram with the corresponding skeleton point to obtain a path to be transited;
performing included angle transition treatment on the path to be transited to obtain the path to be constructed; the step of performing included angle transition processing on the path to be transitioned to obtain the path to be constructed includes:
acquiring a former skeleton point and a latter skeleton point corresponding to each skeleton point;
determining an included angle value of each skeleton point according to each skeleton point, the previous skeleton point and the next skeleton point corresponding to each skeleton point by using a path orientation method;
judging whether the included angle value of each skeleton point is larger than or equal to a preset included angle value;
determining the skeleton point corresponding to the included angle value which is larger than or equal to the preset included angle value as a skeleton point to be newly added;
inserting a new adding point on a path between the to-be-added skeleton point and the former skeleton point corresponding to the to-be-added skeleton point in the to-be-transitioned path;
inserting the section diagram which is the same as the skeleton point to be newly added into the newly added point;
and determining the paths to be transited after the insertion of all the newly added points is completed as the paths to be constructed.
2. The method for constructing a three-dimensional frame model according to claim 1, wherein the performing skeleton positioning recognition on the frame path to recognize skeleton points in the frame path includes:
determining the number of dividing nodes according to the path length of the frame; the frame path data also includes the frame path length;
dividing the frame paths into nodes with the same number as the dividing nodes according to the dividing node number;
node similarity identification is carried out on each node, and a node similarity value corresponding to each node is obtained;
and carrying out the stay removal treatment on each node according to all the node similarity values to obtain the skeleton point.
3. The method of claim 2, wherein the step of performing node similarity recognition on each of the nodes to obtain a node similarity value corresponding to each of the nodes comprises:
acquiring a previous node and a next node corresponding to the node;
performing three-point drawing on the node, the previous node corresponding to the node and the next node to obtain a unit area and a three-point area corresponding to the node;
and determining a node similarity value corresponding to the node according to the unit area and the three-point area corresponding to the node.
4. The method for constructing a three-dimensional frame model according to claim 2, wherein the step of performing a leave-out process on each of the nodes according to all the node similarity values to obtain the skeleton points includes:
removing the nodes corresponding to the node similarity values which are greater than or equal to the preset similarity value;
reserving the node corresponding to the node similarity value smaller than the preset similarity value;
and recording all the remaining nodes on the frame path as skeleton points.
5. The method for constructing a three-dimensional frame model according to claim 1, wherein the three-dimensional frame construction is performed on the path to be constructed by using a lofting path construction method, and the three-dimensional frame model is constructed, including:
judging whether the initial node and the termination node are coincident; the frame path further comprises the starting node and the ending node;
if the initial node and the termination node are overlapped, placing a section diagram according to the section placing direction, inserting the placed section diagram at the position of the initial node, and overlapping the section center of the inserted section diagram and the initial node to obtain an insertion path;
if the initial node and the termination node are not coincident, placing the section views according to the section placing azimuth, respectively inserting the placed section views at the positions of the initial node and the termination node, and respectively overlapping the section centers of the inserted section views with the initial node and the termination node to obtain an insertion path;
and smoothly constructing a three-dimensional frame model by using a lofting path construction method.
6. A three-dimensional frame model construction apparatus, comprising:
the receiving module is used for receiving a three-dimensional construction request and acquiring frame path data and section pattern data in the three-dimensional construction request; the frame path data includes a frame path;
the identification module is used for carrying out skeleton positioning identification on the frame path and identifying skeleton points in the frame path;
the transition module is used for inserting the section pattern data into each framework point, and performing included angle transition treatment on the inserted frame paths to obtain paths to be constructed;
the construction module is used for constructing a three-dimensional frame of the path to be constructed by using a lofting path construction method to construct a three-dimensional frame model;
the transition module is further configured to:
placing a cross-sectional view according to the cross-sectional placement azimuth in the cross-sectional pattern data, and inserting the placed cross-sectional view at the position of each skeleton point; the section pattern data comprises a section view and a section placement orientation;
overlapping the center of each inserted section of the section diagram with the corresponding skeleton point to obtain a path to be transited;
performing included angle transition treatment on the path to be transited to obtain the path to be constructed; the step of performing included angle transition processing on the path to be transitioned to obtain the path to be constructed includes:
acquiring a former skeleton point and a latter skeleton point corresponding to each skeleton point;
determining an included angle value of each skeleton point according to each skeleton point, the previous skeleton point and the next skeleton point corresponding to each skeleton point by using a path orientation method;
judging whether the included angle value of each skeleton point is larger than or equal to a preset included angle value;
determining the skeleton point corresponding to the included angle value which is larger than or equal to the preset included angle value as a skeleton point to be newly added;
inserting a new adding point on a path between the to-be-added skeleton point and the former skeleton point corresponding to the to-be-added skeleton point in the to-be-transitioned path;
inserting the section diagram which is the same as the skeleton point to be newly added into the newly added point;
and determining the paths to be transited after the insertion of all the newly added points is completed as the paths to be constructed.
7. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the three-dimensional rim model construction method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the three-dimensional border model construction method according to any one of claims 1 to 5.
CN202011585009.5A 2020-12-28 2020-12-28 Three-dimensional frame model construction method, device, equipment and medium Active CN112634440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011585009.5A CN112634440B (en) 2020-12-28 2020-12-28 Three-dimensional frame model construction method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011585009.5A CN112634440B (en) 2020-12-28 2020-12-28 Three-dimensional frame model construction method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112634440A CN112634440A (en) 2021-04-09
CN112634440B true CN112634440B (en) 2023-08-11

Family

ID=75285763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011585009.5A Active CN112634440B (en) 2020-12-28 2020-12-28 Three-dimensional frame model construction method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112634440B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201125A (en) * 2011-04-14 2011-09-28 浙江大学 Method for visualizing three-dimensional imaging sonar data
CN103942838A (en) * 2014-05-13 2014-07-23 福州大学 Point cloud data based single tree three-dimensional modeling and morphological parameter extracting method
CN109726475A (en) * 2018-12-28 2019-05-07 上海市建工设计研究总院有限公司 A kind of method and device for outer packing modeling
CN110727972A (en) * 2018-06-26 2020-01-24 中国电力科学研究院有限公司 Automatic power transmission tower modeling method and system based on building informatization model
CN111125808A (en) * 2019-11-12 2020-05-08 万翼科技有限公司 Intelligent construction site management model construction method and device
CN111159800A (en) * 2019-12-13 2020-05-15 佛山欧神诺云商科技有限公司 Method and device for automatically generating 3D model based on CAD file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011258130A (en) * 2010-06-11 2011-12-22 Namco Bandai Games Inc Program, information storage medium, and image generation system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201125A (en) * 2011-04-14 2011-09-28 浙江大学 Method for visualizing three-dimensional imaging sonar data
CN103942838A (en) * 2014-05-13 2014-07-23 福州大学 Point cloud data based single tree three-dimensional modeling and morphological parameter extracting method
CN110727972A (en) * 2018-06-26 2020-01-24 中国电力科学研究院有限公司 Automatic power transmission tower modeling method and system based on building informatization model
CN109726475A (en) * 2018-12-28 2019-05-07 上海市建工设计研究总院有限公司 A kind of method and device for outer packing modeling
CN111125808A (en) * 2019-11-12 2020-05-08 万翼科技有限公司 Intelligent construction site management model construction method and device
CN111159800A (en) * 2019-12-13 2020-05-15 佛山欧神诺云商科技有限公司 Method and device for automatically generating 3D model based on CAD file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
左威龙 等."扶壁挡土墙数字模型参数化设计研究".《江苏水利》.2019,(第2期),52-55. *

Also Published As

Publication number Publication date
CN112634440A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN110599583A (en) Unmanned aerial vehicle flight trajectory generation method and device, computer equipment and storage medium
US20170343983A1 (en) System and method for generating machining control data of numerical control machine tool
CN110309236B (en) Method, device, computer equipment and storage medium for finding way in map
CN109992809B (en) Building model construction method and device and storage device
CN111191311A (en) Efficient image examination method, efficient image examination system, terminal and readable storage medium
CN112364421B (en) Rendering method and device of building information model, computer equipment and storage medium
CN115063518A (en) Track rendering method and device, electronic equipment and storage medium
CN114596423A (en) Model rendering method and device based on virtual scene gridding and computer equipment
CN114186315A (en) Method and device for generating building simplified model, computer equipment and readable storage medium
CN109985386B (en) Method and device for generating map
CN112634440B (en) Three-dimensional frame model construction method, device, equipment and medium
CN114821055A (en) House model construction method and device, readable storage medium and electronic equipment
CN114580044A (en) Building outer surface data acquisition method, building outer surface data acquisition device, computer equipment and medium
CN112734391A (en) Deduction method and device for transformer substation construction, computer equipment and storage medium
CN115544622A (en) Urban and rural participation type three-dimensional planning design platform, method, equipment and storage medium
CN115617046A (en) Path planning method and device, electronic equipment and storage medium
CN112734254B (en) Risk early warning method, device and computer equipment for transformer substation construction
CN109376386B (en) Antenna model construction method and device and vehicle-mounted antenna model construction method
CN114186228A (en) Attack event visualization method and device and related equipment
CN110334173A (en) Object Creation method, apparatus and computer equipment
CN115601512B (en) Interactive three-dimensional reconstruction method and device, computer equipment and storage medium
CN114187397B (en) Virtual hair rendering method, device, medium, electronic device and program product
CN113599808B (en) Method and device for constructing topography in virtual scene
CN112426716B (en) Three-dimensional hair model processing method, device, equipment and storage medium
CN111145583B (en) Parking space model checking method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant