CN112634440A - 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
CN112634440A
CN112634440A CN202011585009.5A CN202011585009A CN112634440A CN 112634440 A CN112634440 A CN 112634440A CN 202011585009 A CN202011585009 A CN 202011585009A CN 112634440 A CN112634440 A CN 112634440A
Authority
CN
China
Prior art keywords
path
node
dimensional
frame
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011585009.5A
Other languages
Chinese (zh)
Other versions
CN112634440B (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

Images

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: the method comprises the steps of receiving a three-dimensional construction request, obtaining frame path data and section pattern data which comprise a frame path in the three-dimensional construction request, carrying out framework positioning identification on the frame path, identifying framework points in the frame path, inserting the section pattern data into each framework point, carrying out included angle transition processing on the inserted frame path to obtain a path to be constructed, and carrying out three-dimensional frame construction on the path to be constructed by using a lofting path construction method to construct a three-dimensional frame model. The invention can quickly, accurately and automatically construct the three-dimensional frame model, can reduce the high requirement on equipment in the construction process, simplifies the three-dimensional construction process and complexity, realizes that the three-dimensional frame model can be obtained by a mobile terminal anywhere, and improves the user experience satisfaction.

Description

Three-dimensional frame model construction method, device, equipment and medium
Technical Field
The invention relates to the technical field of three-dimensional models, in particular to a method, a device, equipment and a medium for constructing a three-dimensional frame model.
Background
In recent years, with the rapid development of 3D technology, 3D modeling technology is more mature, more and more industries need to reconstruct a three-dimensional model by means of 3D technology, which satisfies the visual experience and experience of users, and especially in the home decoration industry, the effect of reconstructing home decoration by using 3D technology is provided for users, so as to provide the user with the experience of home decoration, such as: the house ornamentation effect of the gypsum line of ceiling, the house ornamentation effect of the skirting line on floor, the effect of door edge decoration and so on, but owing to receive the restriction of the high performance GPU equipment that the 3D technique used, can be better rebuild at the PC end, but can't extend to mobile terminal, this application scene that has also restricted three-dimensional modeling technique, can only let the user experience before the PC end, can't be at mobile terminal untimely, experience the effect behind the three-dimensional house ornamentation swiftly, will lead to the user to select the experience of the house ornamentation of nearby, cause the user to run off.
Disclosure of Invention
The invention provides a three-dimensional frame model construction method, a three-dimensional frame model construction device, computer equipment and a storage medium, which can be used for quickly, accurately and automatically constructing a three-dimensional frame model, improving the timeliness of the three-dimensional frame model, realizing that the three-dimensional frame model can be obtained through a mobile terminal anywhere and improving 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 bezel path data comprises a bezel path;
performing skeleton positioning identification on the frame path, and identifying skeleton points in the frame path;
inserting the section pattern data into each framework point, and performing included angle transition processing on the inserted frame path to obtain a path to be constructed;
and constructing a three-dimensional frame for the path to be constructed by using a lofting path construction method to construct a three-dimensional frame model.
A three-dimensional frame model construction device comprises:
the receiving module is used for receiving a three-dimensional construction request and acquiring border path data and section pattern data in the three-dimensional construction request; the bezel path data comprises a bezel 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 carrying out included angle transition processing on the inserted frame path to obtain a path to be constructed;
and the construction module is used for constructing the three-dimensional frame of the path to be constructed by applying the lofting path construction method, so as to construct a three-dimensional frame model.
A mobile terminal comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the three-dimensional frame model building method when executing the computer program.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the above-described three-dimensional bounding box model construction method.
The invention provides a three-dimensional frame model construction method, a device, computer equipment and a storage medium, which are characterized in that a three-dimensional construction request is received, frame path data and section pattern data containing a frame path in the three-dimensional construction request are obtained, the frame path is subjected to frame positioning identification, frame points in the frame path are identified, the section pattern data are inserted into the frame points, included angle transition processing is carried out on the inserted frame path to obtain a path to be constructed, a lofting path construction method is used for carrying out three-dimensional frame construction on the path to be constructed, and a three-dimensional frame model is constructed, so that the purposes that the frame positioning identification is used, the frame points of the frame path are identified, the path to be constructed is generated through the included angle transition processing, then a lofting path construction method is used for carrying out three-dimensional frame construction on the path to be constructed, the three-dimensional frame model is built, the three-dimensional frame model can be automatically built quickly and accurately, high requirements on equipment in the building process can be reduced, the building process and 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 anywhere, and the user experience satisfaction is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for constructing a three-dimensional frame model according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating step S20 of the method for constructing a three-dimensional bounding box model according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step S30 of a method for constructing a three-dimensional bounding box model according to another embodiment of the present invention;
FIG. 4 is a flowchart of step S303 of a method for constructing a three-dimensional frame model according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a three-dimensional frame model building apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the three-dimensional frame model construction method, the mobile terminal is communicated with the server through the network. Mobile terminals include, but are not limited to, computer devices, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
The three-dimensional frame model construction method is executed by the mobile terminal.
In an embodiment, as shown in fig. 1, a method for constructing a three-dimensional frame model is provided, which mainly includes the following steps S10-S40:
s10, receiving a three-dimensional construction request, and acquiring border path data and section pattern data in the three-dimensional construction request; the bezel path data includes a bezel path.
Understandably, in a mobile terminal installed with application software, after a user finishes planning the border path data and selects the screenshot pattern data on the application software, the three-dimensional construction request is triggered, the application software can realize 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 a 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 an 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 an end node, the border path is a set of coordinate points with a time sequence drawn by the edge of the target border needing to reconstruct the three-dimensional border model, the length of the frame path is the length of the frame path, the starting node is a node of a coordinate of a starting point of the frame path, the terminating node is a node of a coordinate of an ending point of the frame path, the starting node and the terminating node can be the same and represent that the frame path forms a closed path, the starting node and the terminating node can also be different and represent that the frame path forms a non-closed path, so that the diversity requirement of a user can be met, the process of selecting the screenshot pattern data is the process of selecting a cross-section diagram to be placed and setting the data of the placing direction of the cross-section diagram to be placed, the cross-section pattern data is the data of the selected and determined cross-section diagram and the placing direction of the cross-section diagram, and the cross-section diagram is a pattern of the cross section of a target frame to be decorated, for example: a section view of a pattern of a plaster line, a section view of a pattern of a skirting line, a section view of a pattern of a door trim, etc., and the target frame is a frame to be decorated or home-decorated, for example: the method comprises the steps that a frame of a gypsum line is arranged on a ceiling, a frame of a skirting line, a door edge and the like are arranged on a floor, the cross section placing position is the position of placing the cross section picture relative to a target frame, the cross section placing position can be placed in any position, and the matching placing position can be automatically identified and matched through an automatic matching mode according to the size of the frame of the target frame and the plane of the target frame, so that the placing position for placing the cross section picture is determined.
And S20, performing skeleton positioning identification on the frame path, and identifying skeleton points in the frame path.
Understandably, the skeleton points are key positioning points in the frame path, the trajectory of the frame path can be approximately reflected through the skeleton points, the skeleton positioning identification is to perform skeleton point identification on the frame path, and identify a recognition process of points needing to be inserted into the section pattern data from the frame path, and the skeleton positioning identification process can be a process of determining the number of division nodes according to the length of the frame path in the frame path data, dividing the frame path into nodes, performing node similarity identification on each node, and determining deletion or reservation according to the node similarity value of each node, thereby identifying the skeleton points.
In an embodiment, as shown in fig. 2, in the step S20, performing skeleton positioning identification on the bounding box path to identify a skeleton point in the bounding box path includes:
s201, determining the number of the division nodes according to the path length of the frame; the bezel path data further includes the bezel path length.
Understandably, according to the length range in which the border path length falls, the number of the division nodes corresponding to the length range is mapped, for example: the border path is 30 meters long and falls within a range of 20 meters to 50 meters, and the range of 20 meters to 50 meters corresponds to the number mapping of 80, so that the number of mapped division nodes is 80, and the number of division nodes is the total number of nodes for dividing the border path.
And S202, carrying out equipartition processing on the frame path according to the number of the division nodes, and dividing the nodes with the number equal to that of the division nodes.
Understandably, the dividing process is to divide the bounding box path equally into segments equal in number to the divided nodes, and the divided nodes are coordinate points of the bounding box path divided into the segments.
And S203, performing node similarity identification on each node to obtain a node similarity value corresponding to each node.
Understandably, the node similarity value is an index for measuring the similarity between the node corresponding to the node and the two nodes before and after corresponding to the node, the similarity between the two nodes can be embodied as that a certain axis direction of three-dimensional coordinates of the three nodes has a large change, the other two axis directions are within a preset tolerance range, that is, whether the three nodes are almost on a straight line, and the node similarity identification is a process for identifying the similarity between the node and the two nodes before and after corresponding to the node, that is, an identification process for identifying whether the node and the two nodes before and after corresponding to the node present a straight line.
In an embodiment, in step S203, that is, performing node similarity identification on each node to obtain a node similarity value corresponding to each node, includes:
s2031, acquiring a previous node and a next node corresponding to the nodes.
Understandably, the previous node is a node which is ahead and adjacent to the selected node on the time trajectory of the frame path (i.e., time sequence), and the next node is a node which is behind and adjacent to the selected node on the time trajectory of the frame path (i.e., time sequence), and the previous node and the moved-back node corresponding to each node are obtained.
S2032, drawing three points 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.
Understandably, the three-point drawing is a process in which three nodes (three coordinate points) form a triangle, so that the area of the triangle can be calculated according to the formed triangle, the area of the triangle is determined as the area of the three points corresponding to the nodes, the straight line distance between the nodes and the previous node or the next node corresponding to the nodes is taken as the side length of the equilateral triangle, an equilateral triangle is formed, the area of the equilateral triangle is calculated, the area of the equilateral triangle is determined as the unit area corresponding to the nodes, and the unit area and the area of the three points corresponding to each node can be determined.
S2033, determining a node similarity value corresponding to the node according to the unit area corresponding to the node and the three-point area.
Understandably, the ratio of the area of the three points corresponding to the same node to the unit area is subtracted by one to obtain the node similarity value corresponding to the node, the range of the node similarity value is 0% to 100%, and then the node similarity value corresponding to each node can be identified.
The invention realizes the purpose that the previous node and the next node corresponding to the nodes are obtained; drawing the nodes, the previous node corresponding to the node and the next node at three points 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 corresponding to the node and the three-point area, 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.
And S204, according to the similarity values of all the nodes, performing leaving processing on each node to obtain the skeleton point.
Understandably, whether each node similarity value is greater than or equal to a preset similarity value is judged, the preset similarity value is a preset threshold value which can be set to 98%, 99% and the like, the nodes corresponding to the node similarity values greater than or equal to the preset similarity value are removed, and the rest nodes are recorded as the skeleton points.
The invention realizes that the number of the division nodes is determined according to the path length of the frame; according to the number of the division nodes, carrying out equipartition processing on the frame path to divide nodes with the number equal to that of the division nodes; performing node similarity identification on each node to obtain a node similarity value corresponding to each node; and according to the node similarity values, each node is subjected to the leaving processing to obtain the skeleton point, so that the nodes are divided, the nodes are subjected to the leaving processing according to the node similarity values of the nodes, and the skeleton point is finally identified.
In an embodiment, in the step S204, that is, performing a leave process on each node according to all the node similarity values to obtain the skeleton point, the method includes:
s2041, removing the nodes corresponding to the node similarity values which are greater than or equal to the preset similarity values.
Understandably, the removing is to remove the identifier of the node from the border path corresponding to the node similarity value greater than or equal to a preset similarity value.
S2042, reserving the nodes corresponding to the node similarity values smaller than the preset similarity value.
Understandably, the reserving is to reserve the node identifier of the node corresponding to the node similarity value greater than or equal to the preset similarity value from the border path, that is, do no processing.
And S2043, recording all the nodes remaining on the border path as the skeleton points.
Understandably, the nodes of all remaining markers are determined to be the skeleton points.
The method and the device realize automatic removal of similar nodes, retain useful and effective nodes for subsequent construction of the three-dimensional frame model, can accurately identify the skeleton points, provide accurate skeleton points for the subsequent construction of the three-dimensional frame model, and facilitate rapid construction of the three-dimensional frame model.
And S30, inserting the section pattern data into each skeleton point, and performing included angle transition processing on the inserted frame path to obtain a path to be constructed.
Understandably, placing a cross-sectional diagram according to a cross-sectional placement position in the cross-sectional pattern data, inserting the placed cross-sectional diagram into the position of each framework point, coinciding the cross-sectional center of each inserted cross-sectional diagram with the framework point corresponding to the cross-sectional diagram to obtain a path to be transited, performing included angle transition processing on the path to be transited to obtain the path to be constructed, determining an included angle value of each framework point according to each framework point and the previous framework point and the next framework point corresponding to each framework point by using a path orientation method, determining the framework point corresponding to the included angle value larger than or equal to the preset included angle value as the framework point to be newly added, and determining the framework point to be newly added and the previous framework point corresponding to the framework point to be newly added in the path to be transited A new adding point is inserted into the path of the frame path, and finally the path to be transited after being inserted into the new adding point is determined as the process of the path to be constructed, wherein the former skeleton point is a skeleton point which is ahead and adjacent to the selected skeleton point on the time track (time sequence) of the frame path, the latter skeleton point is a skeleton point which is behind and adjacent to the selected skeleton point on the time track (time sequence) of the frame path, the path orientation method is to determine a vertical plane which is vertical to the direction of the former skeleton point pointing to the skeleton point and a vertical plane which is vertical to the direction of the latter skeleton point pointing to the former skeleton point, the included angle between the two planes is determined as the included angle value of the skeleton point, and whether the included angle value of each skeleton point is larger than or equal to a preset included angle value is judged, the preset included angle value is a preset angle value, for example, set to 60 degrees, 45 degrees, and the like, the new added point is a node (i.e., a coordinate point on a frame path) that needs to be added with one more cross-sectional diagram, the cross-sectional diagram that is the same as the skeleton point to be added is inserted into the new added point, and the path to be constructed is a frame path to be three-dimensionally constructed.
In an embodiment, as shown in fig. 3, in the step S30, inserting the cross-section pattern data into each skeleton point, and performing an included angle transition process on the inserted bounding box path to obtain a path to be constructed, the method includes:
s301, placing a cross-sectional diagram according to the cross-sectional placement direction in the cross-sectional pattern data, and inserting the placed cross-sectional diagram into the position of each skeleton point; the section pattern data includes a section view and a section orientation.
S302, overlapping the section center of each inserted section diagram with the corresponding skeleton point to obtain a path to be transited.
Understandably, the cross-sectional view has one cross-sectional center, the cross-sectional center is a central position point of the cross-sectional view, and the path to be transited is the border path inserted into the cross-sectional view.
And S303, carrying out included angle transition processing on the path to be transited to obtain the path to be constructed.
Understandably, the process of the included angle transition processing is a process of acquiring a previous skeleton point and a next skeleton point corresponding to each skeleton point, determining an included angle value of each skeleton point according to each skeleton point and the previous skeleton point and the next skeleton point corresponding to each skeleton point by using a path orientation method, determining the skeleton point corresponding to the included angle value larger than or equal to the preset included angle value as a newly added skeleton point, inserting a newly added point in a path of the frame path between the newly added skeleton point in the path to be transitioned and the previous skeleton point corresponding to the newly added skeleton point, and finally determining the path to be transitioned after the insertion of all the newly added points as the path to be constructed.
According to the invention, the cross-sectional drawing is placed according to the cross-sectional placement direction in the cross-sectional pattern data, and the placed cross-sectional drawing is inserted into the position of each framework point; the center of the section of each inserted section diagram is superposed with the corresponding skeleton point to obtain a path to be transited; and performing included angle transition processing on the path to be transited to obtain the path to be constructed, so that a cross-sectional diagram can be inserted into a skeleton point, and the path to be constructed can be obtained by applying the included angle transition processing, thereby providing a foundation for the subsequent construction of a three-dimensional frame model.
In an embodiment, as shown in fig. 4, in the step S303, that is, performing an included angle transition process on the path to be transitioned to obtain the path to be constructed, the method includes:
s3031, a previous skeleton point and a next skeleton point corresponding to each of the skeleton points are obtained.
S3032, determining an included angle value of each framework point according to each framework point and the former framework point and the latter framework point corresponding to each framework point by using a path orientation method.
Understandably, the path orientation method is a method for determining a vertical plane perpendicular to a direction in which a former skeleton point points to the skeleton point and a vertical plane perpendicular to a direction in which the former skeleton point points to a latter skeleton point, and an included angle between the two planes is determined as an included angle value of the skeleton point, and whether the included angle value of each skeleton point is greater than or equal to a preset included angle value is judged, and the preset included angle value is a preset angle value.
S3033, judging whether the included angle value of each framework point is larger than or equal to a preset included angle value.
S3034, determining the framework point corresponding to the included angle value which is larger than or equal to the preset included angle value as a framework point to be newly added.
S3035, inserting a new adding point in the path between the skeleton point to be added in the path to be transited and the former skeleton point corresponding to the skeleton point to be added.
Understandably, finding a coordinate point of an intermediate point on a path between the skeleton point to be newly added in the path to be transited and the former skeleton point corresponding to the skeleton point to be newly added, and determining the coordinate point as the new added point, namely inserting one new added point.
S3036, inserting the same cross-sectional view as the skeleton point to be newly added on the newly added point.
S3037, determining the path to be transited after the insertion on all the new points is completed as the path to be constructed.
The invention realizes the purpose that the former skeleton point and the latter skeleton point corresponding to each skeleton point are obtained; determining an included angle value of each framework point according to each framework point and the previous framework point and the next framework point corresponding to each framework point by using a path orientation method; judging whether the included angle value of each framework point is larger than or equal to a preset included angle value or not; 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 newly added; inserting a new adding point in a path between the skeleton point to be newly added in the path to be transited and the previous skeleton point corresponding to the skeleton point to be newly added; inserting the same cross-sectional drawing as the skeleton point to be newly added on the newly added point; and determining the path to be transited after the insertion of the new points is completed as the path to be constructed, so that the path to be constructed is automatically generated according to the skeleton points by using a path orientation method, a method for generating the path to be constructed is provided, a basis is provided for the subsequent construction of the three-dimensional frame model, and the accuracy and the quality of the construction of the three-dimensional frame model are improved.
And 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.
Understandably, the process of building the three-dimensional frame is a process of generating an insertion path according to the condition that whether a starting node and an ending node are overlapped, and smoothly building the three-dimensional frame by applying a lofting path building method, wherein the lofting path building method is a method of taking a two-dimensional sectional view as a section along a certain path, moving the section along the path to form a complex three-dimensional model, giving different sectional views to different sections (namely, between the sectional views) on the same path, and processing three-dimensional images with smooth transition on each skeleton point and the new adding point (namely, between each section), so that the occurrence of images with faults is avoided, and the construction of the three-dimensional models with a plurality of complex frames can be realized by using the lofting path building method.
The three-dimensional frame model is a model with a three-dimensional structure 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 program software, so that a three-dimensional effect picture after home decoration can be experienced by a user, the satisfaction degree of user experience is improved, geographical limitation can be broken, and the user can freely obtain a desired three-dimensional model at the mobile terminal.
The invention realizes that the three-dimensional frame model can be quickly and accurately automatically constructed by receiving a three-dimensional construction request, acquiring the frame path data and the section pattern data containing the frame path in the three-dimensional construction request, carrying out frame positioning identification on the frame path, identifying the frame points in the frame path, inserting the section pattern data into each frame point, carrying out included angle transition processing on the inserted frame path to obtain the path to be constructed, carrying out three-dimensional frame construction on the path to be constructed by applying a lofting path construction method, constructing the three-dimensional frame model by identifying the frame points of the frame path by applying the frame positioning identification, generating the path to be constructed by the included angle transition processing, and then carrying out three-dimensional frame construction on the path to be constructed by applying the lofting path construction method, the method and the device have the advantages that high requirements on equipment in the construction process can be reduced, the construction process and complexity are simplified, the timeliness of the three-dimensional frame model is improved, the three-dimensional frame model can be acquired through the mobile terminal anywhere, and the user experience satisfaction is improved.
In an embodiment, in step S40, that is, the applying the lofting path constructing method to construct the three-dimensional frame of the path to be constructed, so as to construct a three-dimensional frame model, the method includes:
s401, judging whether the initial node and the termination node are overlapped; the bounding box path also includes the start node and the end node.
S402, if the starting node and the ending node are overlapped, placing a cross-sectional diagram according to the cross-sectional placing direction, inserting the placed cross-sectional diagram into the position of the starting node, and overlapping the center of the cross section of the inserted cross-sectional diagram with the starting node to obtain an insertion path.
S403, if the starting node and the ending node are not coincident, placing a cross-sectional diagram according to the cross-sectional placement direction, inserting the placed cross-sectional diagrams into the positions of the starting node and the ending node respectively, and coinciding the cross-sectional centers of the inserted cross-sectional diagrams with the starting node and the ending node respectively to obtain an insertion path.
And S404, smoothly constructing a three-dimensional frame model by using a lofting path construction method.
Understandably, the smooth construction process is a process of constructing a three-dimensional frame model by using the lofting path construction method, in this process, smooth transition is performed on each skeleton point and the new adding point, the lofting path construction method is a method of forming a complex three-dimensional model by taking a two-dimensional cross-sectional view as a cross-section along a certain path and moving along the path, different cross-sectional views can be given to different sections (namely, between the cross-sectional views) on the same path, and a three-dimensional image processing method of performing smooth transition on each skeleton point and the new adding point (namely, between each section) is performed.
The invention realizes that whether the initial node and the termination node are overlapped or not is judged; if the starting node and the ending node are overlapped, placing a cross-sectional diagram according to the cross-sectional placing direction, inserting the placed cross-sectional diagram into the position of the starting node, and overlapping the center of the cross section of the inserted cross-sectional diagram with the starting node to obtain an insertion path; if the starting node and the terminating node are not coincident, placing a cross-sectional diagram according to the cross-sectional placing direction, respectively inserting the placed cross-sectional diagrams at the positions of the starting node and the terminating node, and respectively coinciding the cross-sectional centers of the inserted cross-sectional diagrams with the starting node and the terminating node to obtain an insertion path; the lofting path construction method is used for smoothly constructing the three-dimensional frame model, so that the automatic construction of the three-dimensional frame model is realized, whether the starting node and the ending node are respectively inserted into the sectional view is judged, one-time insertion operation can be reduced under the condition of closing the path, the construction process can be simplified, and the lofting path construction method is used for quickly constructing the three-dimensional model.
In an example, after the step S40, that is, after the building the three-dimensional frame model, the method includes:
and S50, uploading the three-dimensional frame model to a cloud server for subsequent calling.
Understandably, the three-dimensional frame model is uploaded to a server for calling the three-dimensional frame model at any time or any place in the following process, and the operation of modifying the home decoration scheme in the next step can be carried out by calling the three-dimensional frame model.
The invention realizes the communication with the server at the cloud end, breaks the limit of time and region and meets the experience satisfaction degree of users.
In an embodiment, a three-dimensional frame model building device is provided, and the three-dimensional frame model building device corresponds to the three-dimensional frame model building method in the above embodiments one to one. As shown in fig. 5, the three-dimensional frame model building apparatus includes a receiving module 11, an identifying module 12, a transition module 13, and a building module 14. The functional modules are explained in detail as follows:
the receiving module 11 is configured to receive a three-dimensional construction request, and acquire frame path data and cross-section pattern data in the three-dimensional construction request; the bezel path data comprises a bezel path;
the identification module 12 is configured to perform skeleton positioning identification on the frame path, and identify skeleton points in the frame path;
the transition module 13 is configured to insert the cross-section pattern data into each skeleton point, and perform included angle transition processing on the inserted frame path to obtain a path to be constructed;
and the building module 14 is configured to perform three-dimensional frame building on the path to be built by using a lofting path building method, so as to build a three-dimensional frame model.
For specific limitations of the three-dimensional frame model constructing apparatus, reference may be made to the above limitations of the three-dimensional frame model constructing method, and details are not described here. All or part of each module in the three-dimensional frame model building device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a mobile terminal is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the three-dimensional frame model building method in the foregoing embodiments.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the three-dimensional bounding box model construction method in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A three-dimensional frame model construction method is characterized by comprising 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 bezel path data comprises a bezel path;
performing skeleton positioning identification on the frame path, and identifying skeleton points in the frame path;
inserting the section pattern data into each framework point, and performing included angle transition processing on the inserted frame path to obtain a path to be constructed;
and constructing a three-dimensional frame for the path to be constructed by using a lofting path construction method to construct a three-dimensional frame model.
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 identify skeleton points in the frame path comprises:
determining the number of the division nodes according to the path length of the frame; the bezel path data further comprises the bezel path length;
according to the number of the division nodes, carrying out equipartition processing on the frame path to divide nodes with the number equal to that of the division nodes;
performing node similarity identification on each node to obtain a node similarity value corresponding to each node;
and according to the similarity values of all the nodes, performing stay removal processing on all the nodes to obtain the skeleton points.
3. The method for constructing the three-dimensional frame model according to claim 2, wherein the performing node similarity identification on each node to obtain a node similarity value corresponding to each node comprises:
acquiring a previous node and a next node corresponding to the nodes;
drawing the nodes, the previous node corresponding to the node and the next node at three points 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 corresponding to the node and the three-point area.
4. The method for constructing the three-dimensional frame model according to claim 2, wherein the removing and leaving each node according to the similarity values of all the nodes to obtain the skeleton point comprises:
removing the nodes corresponding to the node similarity values greater than or equal to a preset similarity value;
reserving the nodes corresponding to the node similarity values smaller than the preset similarity value;
and recording all the nodes remaining on the border path as the skeleton points.
5. The method for constructing the three-dimensional frame model according to claim 1, wherein the step of inserting the cross-sectional pattern data into each skeleton point and performing included angle transition processing on the inserted frame path to obtain a path to be constructed includes:
placing the cross-sectional drawing according to the cross-sectional placement direction in the cross-sectional pattern data, and inserting the placed cross-sectional drawing at the position of each skeleton point; the section pattern data comprises a section diagram and a section placing position;
the center of the section of each inserted section diagram is superposed with the corresponding skeleton point to obtain a path to be transited;
and carrying out included angle transition processing on the path to be transited to obtain the path to be constructed.
6. The method for constructing the three-dimensional frame model according to claim 5, wherein the step of performing the included angle transition processing on the path to be transited to obtain the path to be constructed comprises:
acquiring a previous skeleton point and a next skeleton point corresponding to each skeleton point;
determining an included angle value of each framework point according to each framework point and the previous framework point and the next framework point corresponding to each framework point by using a path orientation method;
judging whether the included angle value of each framework point is larger than or equal to a preset included angle value or not;
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 newly added;
inserting a new adding point in a path between the skeleton point to be newly added in the path to be transited and the previous skeleton point corresponding to the skeleton point to be newly added;
inserting the same cross-sectional drawing as the skeleton point to be newly added on the newly added point;
and determining the path to be transited after the insertion on all the new adding points is completed as the path to be constructed.
7. The method for constructing the three-dimensional frame model according to claim 5, wherein the step of constructing the three-dimensional frame of the path to be constructed by using the lofting path construction method comprises:
judging whether the starting node and the terminating node are overlapped; the bounding box path further includes the start node and the end node;
if the starting node and the ending node are overlapped, placing a cross-sectional diagram according to the cross-sectional placing direction, inserting the placed cross-sectional diagram into the position of the starting node, and overlapping the center of the cross section of the inserted cross-sectional diagram with the starting node to obtain an insertion path;
if the starting node and the terminating node are not coincident, placing a cross-sectional diagram according to the cross-sectional placing direction, respectively inserting the placed cross-sectional diagrams at the positions of the starting node and the terminating node, and respectively coinciding the cross-sectional centers of the inserted cross-sectional diagrams with the starting node and the terminating node to obtain an insertion path;
and smoothly constructing a three-dimensional frame model by using a lofting path construction method.
8. A three-dimensional frame model construction device is characterized by comprising:
the receiving module is used for receiving a three-dimensional construction request and acquiring border path data and section pattern data in the three-dimensional construction request; the bezel path data comprises a bezel 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 carrying out included angle transition processing on the inserted frame path to obtain a path to be constructed;
and the construction module is used for constructing the three-dimensional frame of the path to be constructed by applying the lofting path construction method, so as to construct a three-dimensional frame model.
9. 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 method for constructing a three-dimensional bounding box model according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the three-dimensional bounding box model building method according to any one of claims 1 to 7.
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 true CN112634440A (en) 2021-04-09
CN112634440B 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 (7)

* 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
US20110305398A1 (en) * 2010-06-11 2011-12-15 Namco Bandai Games Inc. Image generation system, shape recognition method, and information storage medium
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110305398A1 (en) * 2010-06-11 2011-12-15 Namco Bandai Games Inc. Image generation system, shape recognition method, and information storage medium
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 (2)

* Cited by examiner, † Cited by third party
Title
左威龙 等: ""扶壁挡土墙数字模型参数化设计研究"", 《江苏水利》, no. 2, pages 52 - 55 *
张弓 等: ""沿路径放样建模在3维GIS中的设计与实现"", 《测绘与空间地理信息》, vol. 33, no. 2, pages 132 - 135 *

Also Published As

Publication number Publication date
CN112634440B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN103473799B (en) The method for dynamically processing of a kind of picture and device, terminal unit
CN110335345B (en) Curtain wall node rendering method and device, computer equipment and storage medium
CN111160309A (en) Image processing method and related equipment
CN103970518A (en) 3D rendering method and device for logic window
CN109985386B (en) Method and device for generating map
CN114757035A (en) Data processing method, device, medium and equipment for visible arc segment of satellite
CN112634440B (en) Three-dimensional frame model construction method, device, equipment and medium
CN112324095B (en) Method and system for intelligently assembling building space
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
CN113160270A (en) Visual map generation method, device, terminal and storage medium
CN112381929A (en) Three-dimensional power equipment model modeling method
CN108744517B (en) Audio processing method, device, terminal and storage medium
CN107729686B (en) Building model component display method and device, electronic equipment and storage medium
CN112364421B (en) Rendering method and device of building information model, computer equipment and storage medium
CN114186315A (en) Method and device for generating building simplified model, computer equipment and readable storage medium
CN114580044A (en) Building outer surface data acquisition method, building outer surface data acquisition device, computer equipment and medium
CN109376386B (en) Antenna model construction method and device and vehicle-mounted antenna model construction method
CN112947748A (en) Augmented reality AR remote interaction method and system thereof
CN114078181A (en) Human body three-dimensional model establishing method and device, electronic equipment and storage medium
CN110334173A (en) Object Creation method, apparatus and computer equipment
CN113850888A (en) Image processing method and device, electronic equipment and storage medium
CN112577498A (en) Road data updating method and device, electronic equipment and storage medium
CN112163265A (en) Immersion type roaming visual analysis method and device based on BIM technology and storage medium
CN109542573B (en) Scene display method and device
CN115601512B (en) Interactive three-dimensional reconstruction 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