CN116152444B - Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin - Google Patents
Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin Download PDFInfo
- Publication number
- CN116152444B CN116152444B CN202310346995.6A CN202310346995A CN116152444B CN 116152444 B CN116152444 B CN 116152444B CN 202310346995 A CN202310346995 A CN 202310346995A CN 116152444 B CN116152444 B CN 116152444B
- Authority
- CN
- China
- Prior art keywords
- model
- models
- adsorption
- relative distance
- current moving
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/10—Numerical modelling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses an automatic adsorption method, device and medium for a three-dimensional scene model based on digital twinning, and belongs to the technical field of three-dimensional visualization. The method is characterized by comprising the following steps: s1, importing a model into a three-dimensional scene; s2, responding to movement control of a certain model in a scene, and calling the following method: acquiring three-view two-dimensional projections of each model bounding box and extracting each projection vertex; calculating the slope of the corresponding edge of each model in the same projection view, and judging whether a parallel surface exists between the models or not on the condition that the slope exists; and calculating the relative distance between adjacent surfaces of the models, comparing the absolute value with a preset adsorption distance threshold, and setting the C value in a linear equation where the adjacent surfaces of the current model and other models are positioned in the same projection view to be equal when the absolute value is smaller than or equal to the adsorption distance threshold, so as to realize automatic adsorption between the models. The invention can realize automatic adsorption among models in the scene, improve the scene construction efficiency and save time and labor.
Description
Technical Field
The invention relates to an automatic adsorption method, device and medium for a three-dimensional scene model based on digital twinning, and belongs to the technical field of three-dimensional visualization.
Background
The digital twin technology is to digitally model the physical entity by using a digital technical means to form a virtual object corresponding to the physical entity. The digital twin technology is widely applied to a plurality of fields, such as mechanical manufacturing, building design, medical diagnosis and the like, and has wide application prospect.
In the process of building a digital twin three-dimensional scene, operators need to spend a great deal of time and effort to manually intervene on the placement positions of the models and the three-dimensional space relation among the models, and as the operators can usually observe the models from one angle at a time, the operators are easy to observe the models in place or have insufficient operation precision, and once the operators cannot observe the models in place or have insufficient operation precision, problems such as mold penetration, alignment failure according to requirements and model vacation caused by mutual penetration among the models can occur.
In the existing conventional model adsorption method, the space distance of each model in a three-dimensional scene needs to be calculated, and the algorithm is to subtract the length of the boundary of each model from the core from the relative distance between the cores in the model. The series of algorithms of the model adsorption method are complex, the power and the evolution calculation are required to be frequently used, the calculation efficiency is low, and the calculation process consumes more computer resources.
Disclosure of Invention
In order to solve the problems, the invention discloses an automatic adsorption method, an automatic adsorption device and an automatic adsorption medium for a three-dimensional scene model based on digital twinning, which are used for improving the working efficiency of model construction in a three-dimensional scene and reducing the problems of mold penetration, unaligned requirement and the like caused by limited manual viewing angles or insufficient operation precision.
The technical scheme adopted for solving the technical problems is as follows:
in a first aspect, the present invention provides an automatic adsorption method for a three-dimensional scene model based on digital twinning, comprising the following steps:
s1, importing a model into a three-dimensional scene, and respectively acquiring parameter information of surrounding boxes of the models;
s2, responding to movement control of a certain model in a scene, and calling a method to control the model to adsorb other models so as to realize automatic adsorption between the model and the other models:
s21, respectively obtaining three-view two-dimensional projections of each model bounding box on an XY plane, a YZ plane and an XZ plane, wherein all projection views are rectangular;
s22, extracting projection vertexes of each model in the same projection view, and recording coordinate information of each projection vertex;
s23, connecting 4 projection vertexes of each model in the same projection view, and respectively calculating the slope of the edge of each model with a corresponding relation in the same projection view;
s24, judging whether parallel surfaces exist among the models or not by taking whether slopes of corresponding edges of the models in the same projection view are equal or not as a condition; the model with parallel faces performs step 25;
s25, calculating the relative distance between the adjacent surfaces of the current moving model and other models (the adjacent surfaces of the two models are regarded as adsorption surfaces of the two models), comparing the absolute value with a preset adsorption distance threshold, and executing step 26 when the absolute value of the relative distance between the current moving model and the adjacent surfaces of the other models is smaller than or equal to the preset adsorption distance threshold;
s26, the system is automatically set, so that the C value of the current moving model in a straight line equation where the adjacent surfaces of the current moving model and other models are located in the same projection view is equal, and automatic adsorption among the models is realized.
Further, in S25, the relative distance of the adjacent surface between the currently moving model and the other model is obtained by:
the equation Y=kX+C is used for representing the straight line of the corresponding side of each model in the same projection view, in the equation, the k values representing the slopes of each straight line are equal, and the C value represents the distance from the intersection point of each straight line and the Y axis to the origin, namely the relative position of each straight line; the difference of the C values between the two straight lines is used for calculating the relative distance between the straight lines;
in the same projection view, the relative distance of the projection straight line of the adjacent surface between the current moving model and other models is the relative distance of the adjacent surface between the current moving model and other models.
Further, in S25, the preset adsorption distance threshold is a user-defined parameter representing a relative distance between adjacent surfaces of the models, and may be adjusted according to actual situations and user experience.
In a second aspect, the present invention provides an automatic adsorption device for a three-dimensional scene model based on digital twinning, the device comprising:
the model importing module is used for importing the model into a three-dimensional scene and respectively acquiring parameter information of each model bounding box;
the method execution module is used for calling a method to control a certain model in a scene to adsorb other models in response to the moving control of the model, so as to realize automatic adsorption among the models;
wherein, the method execution module further comprises:
the two-dimensional projection module is used for respectively obtaining three-view two-dimensional projections of each model bounding box on an XY plane, a YZ plane and an XZ plane;
the vertex extraction module is used for extracting projection vertices of each model in the same projection view and recording coordinate information of each projection vertex;
the slope calculation module is used for connecting 4 projection vertexes of each model in the same projection view and calculating the slope of the edge with the corresponding relation of each model in the same projection view;
the condition judging module is used for judging whether parallel surfaces exist among the models or not by taking whether slopes of corresponding sides of the models in the same projection view are equal or not as a condition, and executing position calculation on the models with the parallel surfaces through the position calculating module;
the position calculation module is used for calculating the relative distance between the adjacent surfaces between the current moving model and other models, comparing the absolute value of the relative distance with a preset adsorption distance threshold, and executing adsorption operation through the automatic adsorption module when the absolute value of the relative distance between the current moving model and the adjacent surfaces between the current moving model and other models is smaller than or equal to the preset adsorption distance threshold;
and the automatic adsorption module is used for realizing automatic adsorption among the models by making the C value in a linear equation where the adjacent surfaces of the current moving model and other models are positioned in the same projection view equal.
In a third aspect, the present invention also provides an automatic adsorption device for a three-dimensional scene model based on digital twinning, the device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the automatic adsorption method based on the digital twin three-dimensional scene model when executing the computer program.
In a fourth aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the digital twinning-based three-dimensional scene model auto-adsorption method described above.
The beneficial effects of the invention are as follows:
the method provided by the invention converts the bounding box of the three-dimensional model into two-dimensional projections of three planes XY, YZ and XZ through a three-view projection method, and calculates four vertexes of the model projection to realize spatial orientation recognition and threshold judgment of model adsorption. Compared with the traditional algorithm, the related calculation method is simpler and quicker, the threshold judgment precision is higher, and meanwhile, the consumption of computer resources is less.
The invention solves the problem of identifying the spatial relationship between objects by performing two-dimensional projection on the three-dimensional model. When a user operates the position of the moving model, the moving model object and the object closest to the moving model object in three directions can be identified in real time, and once the distance between the models triggers a set threshold value, automatic adsorption can be realized. The invention can greatly improve the working efficiency of setting up the scene by operators, and reduce the problems of mold penetration, unaligned requirement and the like caused by limited manual observation visual angles or insufficient operation precision.
Drawings
FIG. 1 is a schematic view of a cube structure of a model bounding box in accordance with an embodiment;
fig. 2 is a schematic plan view projection and a schematic vertex diagram of a model a bounding box and a model B bounding box obtained by a plan view projection of an XY plane in the first embodiment;
FIG. 3 is a schematic structural diagram of an automatic adsorption device based on a digital twin three-dimensional scene model;
fig. 4 is a schematic structural diagram of another digital twinning-based three-dimensional scene model automatic adsorption device.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
in order to clearly illustrate the technical features of the present invention, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments for implementing different configurations of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
In the embodiment, two digital twin models are taken as an example, and the automatic adsorption method for the three-dimensional scene model based on digital twin is described in detail.
Example 1
An automatic adsorption method of a three-dimensional scene model based on digital twinning specifically comprises the following steps:
s1, importing a model A and a model B into a three-dimensional scene, and respectively obtaining parameter information of model bounding boxes of the model A and the model B, wherein the model bounding boxes are of cube structures, and refer to the attached figure 1;
s2, clicking and dragging the model B, and calling the following method to control the model B to desorb the model A by the system in response to the movement control of the model B so as to realize automatic adsorption between the model B and the model A;
the method comprises the following steps:
s21, converting the bounding box cubes of the two models into two-dimensional projection views of three planes, namely an XY plane (top view), a YZ plane (left view) and an XZ plane (front view), through three-view projection, wherein all the projection views are rectangular, and then three-view two-dimensional projection of a bounding box of a model A and three-view two-dimensional projection of a bounding box of a model B are obtained;
s22, taking a top view of an XY plane as an example, top view projection vertexes A1, A2, A3 and A4 of a model A bounding box and top view projection vertexes B1, B2, B3 and B4 of a model B bounding box can be respectively extracted through top view projection of the XY plane, and X-axis coordinates and Y-axis coordinates of the above points are respectively recorded and are expressed by X and Y;
s23, respectively calculating the slope kA of the side A1A2 connected with the top view projection vertexes A1 and A2 of the model A bounding box and the slope kB of the side B1B2 connected with the top view projection vertexes B1 and B2 of the model B bounding box in a two-point one-line mode, wherein a specific calculation formula is slope k= (y 2-y 1)/(x 2-x 1), and calculating results are respectively marked as kA and kB;
s24, judging whether the two values of kA and kB are equal, if not, indicating that the two models have no parallel surfaces, and if not, judging again after rotating the models; if equal, it is indicated that model A and model B have parallel surfaces, and the adjacent surfaces of the two models can be used as adsorption surfaces to execute step 25;
s25, calculating the relative distance between the adjacent surfaces of the model B and the model A (the adjacent surfaces of the two models are regarded as adsorption surfaces of the two models), comparing the absolute value with a preset adsorption distance threshold d, and executing step 26 when the absolute value of the relative distance between the adjacent surfaces of the model B and the model A is smaller than or equal to the preset adsorption distance threshold d;
the relative distance between the adjacent surfaces of the model B and the model A is obtained by the following method:
the straight lines of the corresponding sides of the projection surfaces of the model A and the model B are represented by an equation Y=kX+C, a straight line equation YA=kX+C1 of the model A and a straight line equation YB=kX+C2 of the model B are obtained, k represents the slope, since ka=kB, the k values of the two straight line equations are estimated through a mathematical formula to be identical, only the C values are different, the C values represent the distance from the intersection point of each straight line and the Y axis to the origin, namely the relative position of each straight line, in the top view of the XY surface, the projection straight lines of the adjacent surfaces of the model A and the model B are respectively a straight line A3A4 and a straight line B1B2, and the relative distance between the two straight lines is the relative distance between the adjacent surfaces of the model B and the model A and is represented by C2-C1;
when the operator moves the model a, the value of C1 will change in real time, and similarly, when the operator moves the model B, the value of C2 will change in real time, in this embodiment, taking the adsorption model a of the moving model B as an example, the system calculates the relative distance between the adjacent surfaces of the model B and the model a in real time during the movement, compares the absolute value of the relative distance between the adjacent surfaces of the model B and the model a with the preset adsorption distance threshold d, and when the model B moves to satisfy the condition that |c2-c1| is less than or equal to d, step 26 is executed.
The preset adsorption distance threshold d is set by a platform or a user in a self-defining way, represents dynamic parameters of the adsorption distance between models, and can be adjusted according to actual conditions and user experience.
It should be noted that when two models penetrate each other, the result of C2-C1 is negative, so that the absolute value should be taken for calculation when the threshold value is determined.
S26, the system is automatically set, C1=C2 is enabled, and two straight lines of projection straight lines A3A4 and B1B2 of adjacent surfaces of the model A and the model B are controlled to coincide, so that automatic adsorption between the model A and the model B is achieved.
Example two
The application provides two digital twinning-based three-dimensional scene model automatic adsorption devices, and the embodiments of the two devices are respectively described below from two angles.
Based on the angle of the functional module, the embodiment provides an automatic adsorption device of a three-dimensional scene model based on digital twinning, as shown in fig. 3, comprising:
the model importing module is used for importing the model into a three-dimensional scene and respectively acquiring parameter information of each model bounding box;
the method execution module is used for calling a method to control a certain model in a scene to adsorb other models in response to the moving control of the model, so as to realize automatic adsorption among the models;
wherein, the method execution module further comprises:
the two-dimensional projection module is used for respectively obtaining three-view two-dimensional projections of each model bounding box on an XY plane, a YZ plane and an XZ plane;
the vertex extraction module is used for extracting projection vertices of each model in the same projection view and recording coordinate information of each projection vertex;
the slope calculation module is used for connecting 4 projection vertexes of each model in the same projection view and calculating the slope of the edge with the corresponding relation of each model in the same projection view;
the condition judging module is used for judging whether parallel surfaces exist among the models or not by taking whether slopes of corresponding sides of the models in the same projection view are equal or not as a condition, and executing position calculation on the models with the parallel surfaces through the position calculating module;
the position calculation module is used for calculating the relative distance between the adjacent surfaces between the current moving model and other models, comparing the absolute value of the relative distance with a preset adsorption distance threshold, and executing adsorption operation through the automatic adsorption module when the absolute value of the relative distance between the current moving model and the adjacent surfaces between the current moving model and other models is smaller than or equal to the preset adsorption distance threshold;
and the automatic adsorption module is used for realizing automatic adsorption among the models by making the C value in a linear equation where the adjacent surfaces of the current moving model and other models are positioned in the same projection view equal.
Based on the hardware perspective, the present embodiment provides an automatic adsorption device for a three-dimensional scene model based on digital twinning, the structure of which is shown in fig. 4, and the automatic adsorption device comprises a processor, a memory and a bus, wherein the memory stores a computer program, when the computer device runs, the processor and the memory communicate through the bus, and the processor executes the computer program to execute the steps of the automatic adsorption method for the three-dimensional scene model based on digital twinning.
The three-dimensional scene model automatic adsorption device based on digital twin provided by the embodiment can comprise, but is not limited to, a smart phone, a tablet computer, a notebook computer or a desktop computer and the like.
In particular, the above memory and processor can be general-purpose memory and processor, and are not limited herein, and when the processor runs the computer program stored in the memory, the steps of the above automatic adsorption method for three-dimensional scene model based on digital twin can be executed.
Those skilled in the art will appreciate that the architecture of the computer device shown in fig. 4 is not limiting of the computer device, and may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components.
In some embodiments, the computer device may further include a touch screen operable to display a graphical user interface (e.g., a launch interface of an application) and to receive user operations with respect to the graphical user interface (e.g., launch operations with respect to the application). A particular touch screen may include a display panel and a touch panel. The display panel may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. The touch panel may collect touch or non-touch operations on or near the user and generate preset operation instructions, for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus, or the like. In addition, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth and the touch gesture of a user, detects signals brought by touch operation and transmits the signals to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into information which can be processed by the processor, sends the information to the processor, and can receive and execute commands sent by the processor. In addition, the touch panel may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave, or may be implemented by any technology developed in the future. Further, the touch panel may overlay the display panel, and a user may operate on or near the touch panel overlaid on the display panel according to a graphical user interface displayed by the display panel, and upon detection of an operation thereon or thereabout, the touch panel is transferred to the processor to determine a user input, and the processor then provides a corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel may be implemented as two independent components or may be integrated.
Example III
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a computer program, and the computer program realizes the steps of the automatic adsorption method based on the digital twin three-dimensional scene model when being executed by a processor.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of modules is merely a logical function division, and there may be additional divisions in actual implementation, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments provided in the present application may be integrated in one processing module, or each module may exist alone physically, or two or more modules may be integrated in one module.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.
Claims (5)
1. The automatic adsorption method for the three-dimensional scene model based on digital twinning is characterized by comprising the following steps of:
s1, importing a model into a three-dimensional scene, and respectively acquiring parameter information of surrounding boxes of the models;
s2, responding to movement control of a certain model in a scene, and calling a method to control the model to adsorb other models so as to realize automatic adsorption between the model and the other models:
s21, respectively obtaining three-view two-dimensional projections of each model bounding box on an XY plane, a YZ plane and an XZ plane;
s22, extracting projection vertexes of each model in the same projection view, and recording coordinate information of each projection vertex;
s23, connecting 4 projection vertexes of each model in the same projection view, and respectively calculating the slope of the edge of each model with a corresponding relation in the same projection view;
s24, judging whether parallel surfaces exist among the models or not by taking whether slopes of corresponding edges of the models in the same projection view are equal or not as a condition; step S25 is performed on the model having the parallel surfaces;
s25, calculating the relative distance between the adjacent surfaces between the current moving model and other models, comparing the absolute value of the relative distance with a preset adsorption distance threshold, and executing the step S26 when the absolute value of the relative distance between the current moving model and the adjacent surfaces between the current moving model and other models is smaller than or equal to the preset adsorption distance threshold;
the relative distance between the adjacent surfaces between the current moving model and other models is obtained by the following modes: the equation Y=kX+C is used for representing the straight line of the corresponding side of each model in the same projection view, in the equation, the k values representing the slopes of each straight line are equal, and the C value represents the distance from the intersection point of each straight line and the Y axis to the origin, namely the relative position of each straight line; the difference of the C values between the two straight lines is used for calculating the relative distance between the straight lines; in the same projection view, the relative distance of the projection straight line of the adjacent surface between the current moving model and other models is the relative distance of the adjacent surface between the current moving model and other models;
s26, the system is automatically set, so that the C value of the current moving model in a straight line equation where the adjacent surfaces of the current moving model and other models are located in the same projection view is equal, and automatic adsorption among the models is realized.
2. The method according to claim 1, wherein in S25, the preset adsorption distance threshold is a customized parameter representing a relative distance between adjacent surfaces of the models.
3. The utility model provides a three-dimensional scene model automatic adsorption equipment based on digit twin which characterized in that includes:
the model importing module is used for importing the model into a three-dimensional scene and respectively acquiring parameter information of each model bounding box;
the method execution module is used for responding to the mobile control of a certain model in a scene, calling a method to control the model to adsorb other models, and realizing the automatic adsorption between the model and the other models;
wherein, the method execution module further comprises:
the two-dimensional projection module is used for respectively obtaining three-view two-dimensional projections of each model bounding box on an XY plane, a YZ plane and an XZ plane;
the vertex extraction module is used for extracting projection vertices of each model in the same projection view and recording coordinate information of each projection vertex;
the slope calculation module is used for connecting 4 projection vertexes of each model in the same projection view and calculating the slope of the edge with the corresponding relation of each model in the same projection view;
the condition judging module is used for judging whether parallel surfaces exist among the models or not by taking whether slopes of corresponding sides of the models in the same projection view are equal or not as a condition, and executing position calculation on the models with the parallel surfaces through the position calculating module;
the position calculation module is used for calculating the relative distance between the adjacent surfaces between the current moving model and other models, comparing the absolute value of the relative distance with a preset adsorption distance threshold, and executing adsorption operation through the automatic adsorption module when the absolute value of the relative distance between the current moving model and the adjacent surfaces between the current moving model and other models is smaller than or equal to the preset adsorption distance threshold; the relative distance between the adjacent surfaces between the current moving model and other models is obtained by the following modes: the equation Y=kX+C is used for representing the straight line of the corresponding side of each model in the same projection view, in the equation, the k values representing the slopes of each straight line are equal, and the C value represents the distance from the intersection point of each straight line and the Y axis to the origin, namely the relative position of each straight line; the difference of the C values between the two straight lines is used for calculating the relative distance between the straight lines; in the same projection view, the relative distance of the projection straight line of the adjacent surface between the current moving model and other models is the relative distance of the adjacent surface between the current moving model and other models;
and the automatic adsorption module is used for realizing automatic adsorption among the models by making the C value in a linear equation where the adjacent surfaces of the current moving model and other models are positioned in the same projection view equal.
4. The utility model provides a three-dimensional scene model automatic adsorption equipment based on digit twin which characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the digital twin based three-dimensional scene model auto-adsorption method according to any one of claims 1 to 2 when executing the computer program.
5. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the digital twinning-based three-dimensional scene model auto-adsorption method according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310346995.6A CN116152444B (en) | 2023-04-04 | 2023-04-04 | Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310346995.6A CN116152444B (en) | 2023-04-04 | 2023-04-04 | Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116152444A CN116152444A (en) | 2023-05-23 |
CN116152444B true CN116152444B (en) | 2023-06-30 |
Family
ID=86362077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310346995.6A Active CN116152444B (en) | 2023-04-04 | 2023-04-04 | Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116152444B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116310151B (en) * | 2023-05-24 | 2023-08-08 | 山东捷瑞信息技术产业研究院有限公司 | Vector model conversion method, system, device and medium based on digital twin |
CN116543134B (en) * | 2023-07-06 | 2023-09-15 | 金锐同创(北京)科技股份有限公司 | Method, device, computer equipment and medium for constructing digital twin model |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113781628A (en) * | 2020-11-26 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Three-dimensional scene building method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109448137B (en) * | 2018-10-23 | 2023-01-10 | 网易(杭州)网络有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
CN109598783A (en) * | 2018-11-20 | 2019-04-09 | 西南石油大学 | A kind of room 3D modeling method and furniture 3D prebrowsing system |
US11455074B2 (en) * | 2020-04-17 | 2022-09-27 | Occipital, Inc. | System and user interface for viewing and interacting with three-dimensional scenes |
CN111984171A (en) * | 2020-07-15 | 2020-11-24 | 北京城市网邻信息技术有限公司 | Method and device for generating furniture movement track |
WO2022040920A1 (en) * | 2020-08-25 | 2022-03-03 | 南京翱翔智能制造科技有限公司 | Digital-twin-based ar interactive system and method |
CN112668085B (en) * | 2020-12-31 | 2024-06-11 | 杭州群核信息技术有限公司 | Automatic design method and device for home decoration plane, computer equipment and storage medium |
CN114418145A (en) * | 2022-01-21 | 2022-04-29 | 福州闽地勘测规划有限公司 | GIM-based transformer substation digital twinning method and system |
-
2023
- 2023-04-04 CN CN202310346995.6A patent/CN116152444B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113781628A (en) * | 2020-11-26 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Three-dimensional scene building method and device |
Also Published As
Publication number | Publication date |
---|---|
CN116152444A (en) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116152444B (en) | Automatic adsorption method, device and medium for three-dimensional scene model based on digital twin | |
CN111932688B (en) | Indoor plane element extraction method, system and equipment based on three-dimensional point cloud | |
US8860726B2 (en) | Transform manipulator control | |
WO2022040920A1 (en) | Digital-twin-based ar interactive system and method | |
CN104376594A (en) | Three-dimensional face modeling method and device | |
CN111640180B (en) | Three-dimensional reconstruction method and device and terminal equipment | |
CN110889901B (en) | Large-scene sparse point cloud BA optimization method based on distributed system | |
CN108022202A (en) | A kind of advanced blanking geometry engines structure | |
CN115018992A (en) | Method and device for generating hair style model, electronic equipment and storage medium | |
CN111737844A (en) | Web 3D-based three-dimensional building model editing system and workflow | |
CN112206519B (en) | Method, device, storage medium and computer equipment for realizing game scene environment change | |
CN117539970A (en) | Lane data compression method, lane data compression device, computer equipment and storage medium | |
CN114797109A (en) | Object editing method and device, electronic equipment and storage medium | |
CN115270530A (en) | Method, system, device and medium for rapidly establishing progress visualization model | |
CN115205456A (en) | Three-dimensional model construction method and device, electronic equipment and storage medium | |
US11145111B2 (en) | Volumetric slicer | |
CN112308766A (en) | Image data display method and device, electronic equipment and storage medium | |
CN115213038B (en) | Polygonal frame selection method for point cloud of automobile sheet metal | |
CN117435110B (en) | Picture processing method and device, electronic equipment and storage medium | |
CN113077538B (en) | Method and device for establishing three-dimensional temperature and humidity cloud picture of machine room and terminal equipment | |
WO2024060286A1 (en) | Blast furnace slag crust distribution visualization method, terminal device and storage medium | |
He et al. | An Interactive Image-based Modeling System | |
CN113470131B (en) | Sea surface simulation image generation method and device, electronic equipment and storage medium | |
CN116912395B (en) | Graphics hybrid rendering method and device based on OpenGL and storage medium | |
CN116310096A (en) | Virtual model processing 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 |