A method, apparatus, and device for structural transformation in a model

By replacing the original structure of the BIM model with the spliced ​​frame structure on mobile devices, the performance consumption and user experience problems when displaying large BIM models on mobile devices are solved, and a smaller-scale model display is achieved.

CN114722465BActive Publication Date: 2025-07-01DATAMESH CONSULTING LLC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210318013.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2025-07-01
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

The prior art is difficult to effectively display large building information models (BIMs) on mobile devices, resulting in large equipment performance consumption and poor user experience.

Method used

By obtaining data from the original structure, drawing at least two triangle faces and splicing them into a frame structure, used to replace the original structure on mobile devices, thereby achieving a smaller volume model display.

Benefits of technology

It reduces the performance consumption of mobile devices, enhances the user experience, and effectively solves the size problem of BIM models displayed on mobile devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114722465B_ABST
    Figure CN114722465B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus and device for structural conversion in a model, which relates to the technical field of model data processing. Among them, the method includes: obtaining an original structure and the data of the original structure; respectively drawing at least two triangular faces of the original structure according to the data of the original structure; splicing the at least two triangular faces to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when displayed on the mobile device. By the above method, the present invention realizes the conversion of the structure in the BIM model into a frame with a smaller volume, reduces the performance consumption of the mobile device, and enhances the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of model data processing, and in particular, to a method, device, and equipment for structure conversion in a model. Background Art

[0002] Building Information Modeling (BIM) models are large in volume and have a unique structure, and can only be used in professional software. It is difficult for mobile devices to display the entire model completely at one time. Therefore, it is necessary to divide the BIM model into blocks to display partial models. However, only displaying partial models cannot let users feel the position of the current model in the complete model.

[0003] Most of the existing technologies use the Levels of Detail (LOD) model technology to determine the allocation of resources for object rendering according to the position and importance of the nodes of the object model in the display environment.

[0004] However, this traditional LOD technology requires that each original high-precision model corresponds to one or more levels of low-precision models. In a very large space, due to the large number of models and the fact that they are low-precision models, this will greatly increase the size of the entire program.

[0005] Based on this, how to convert the structure in the BIM model into a smaller framework is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0006] To solve the above problems, a method, device, and equipment for structure conversion in a model according to an embodiment of the present invention are proposed.

[0007] According to one aspect of an embodiment of the present invention, a method for structure conversion in a model is provided, including:

[0008] Obtaining an original structure and data of the original structure;

[0009] Drawing at least two triangular faces of the original structure respectively according to the data of the original structure;

[0010] Splicing the at least two triangular faces to obtain a spliced frame structure, where the frame structure is used to replace the original structure when the original structure is displayed on the mobile device.

[0011] Optionally, the data of the original structure includes at least the following two:

[0012] The outer bounding box of the original structure and the position of the original structure.

[0013] Optionally, at least two triangular faces of the original structure are respectively drawn according to the data of the original structure, including:

[0014] Twelve triangular faces of the original structure are respectively drawn according to the preset coordinates of the outer bounding box of the original structure.

[0015] Optionally, the preset coordinates of the outer bounding box of the original structure at least include the following two coordinates:

[0016] The highest point coordinate and the lowest point coordinate within all coordinates of the outer bounding box of the original structure.

[0017] Optionally, twelve triangular faces of the original structure are respectively drawn according to the preset coordinates of the outer bounding box of the original structure, including:

[0018] Eight corresponding range coordinates are obtained according to the highest point coordinate and the lowest point coordinate;

[0019] In the same Cartesian coordinate system, for any four range coordinates, a first operation is performed until all planes in the Cartesian coordinate system are divided into two triangles with equal areas, and twelve triangular faces of the original structure are obtained;

[0020] The first operation is:

[0021] Arbitrarily select three range coordinates from the four range coordinates and connect them clockwise to form a first triangular face;

[0022] Connect the unselected range coordinate with the two points corresponding to the hypotenuse of the first triangular face clockwise to obtain a second triangular face.

[0023] Optionally, the at least two triangular faces are spliced to obtain a spliced frame structure, including:

[0024] The triangular faces corresponding to the hypotenuses among the twelve triangular faces are spliced in pairs to obtain a spliced frame structure, and the spliced frame structure is a cube structure.

[0025] Optionally, the position of the frame structure is the same as the position of the original structure.

[0026] Optionally, after obtaining the spliced frame structure, it further includes:

[0027] When the mobile device is displayed, the original structure that does not conform to the preset rules is replaced with the frame structure, and the original structure that conforms to the preset rules is retained.

[0028] According to another aspect of the embodiments of the present invention, there is provided a structure conversion device in a model, and the device includes:

[0029] An acquisition module, configured to acquire an original structure and data of the original structure;

[0030] A drawing module, configured to respectively draw at least two triangular faces of the original structure according to the data of the original structure;

[0031] A conversion module, configured to splice the at least two triangular faces to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when the original structure is displayed on the mobile device.

[0032] According to another aspect of the embodiments of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete communication with each other through the communication bus;

[0033] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the structure conversion method in the above model.

[0034] According to still another aspect of the embodiments of the present invention, a computer storage medium is provided, and at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to perform operations corresponding to the structure conversion method in the above model.

[0035] According to the solution provided by the above embodiments of the present invention, by acquiring an original structure and data of the original structure; respectively drawing at least two triangular faces of the original structure according to the data of the original structure; splicing the at least two triangular faces to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when the original structure is displayed on the mobile device. Through the above method, the structure in the BIM model is converted into a smaller volume frame, reducing the performance consumption of the mobile device and enhancing the user experience.

[0036] The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to be able to understand the technical means of the embodiments of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features, and advantages of the embodiments of the present invention more obvious and understandable, the following specifically describes the specific implementation manners of the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the embodiments of the present invention. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0038] Figure 1 Shows the flowchart of the structure conversion method in the model provided by the embodiments of the present invention;

[0039] Figure 2 Shows a schematic diagram of a specific method for drawing the triangular faces of a cube provided by the embodiments of the present invention;

[0040] Figure 3 Shows a schematic diagram of a program for drawing a cube provided by the embodiments of the present invention;

[0041] Figure 4 Shows the flowchart of a method for realizing LOD display of data in an ultra-large space provided by the embodiments of the present invention;

[0042] Figure 5 Shows the structural schematic diagram of the structure conversion device in the model provided by the embodiments of the present invention;

[0043] Figure 6 Shows the structural schematic diagram of the computing device provided by the embodiments of the present invention. Detailed implementation manners

[0044] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present invention can be more thoroughly understood and the scope of the present invention can be fully conveyed to those skilled in the art.

[0045] Figure 1 Shows the flowchart of the structure conversion method in the model provided by the embodiments of the present invention. As Figure 1 shown, the method includes the following steps:

[0046] Step 11, obtaining the original structure and the data of the original structure;

[0047] Step 12, respectively drawing at least two triangular faces of the original structure according to the data of the original structure;

[0048] Step 13, splicing the at least two triangular faces to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when displayed on the mobile device.

[0049] In this embodiment, the original structure and its data are obtained; according to the data of the original structure, at least two triangular faces of the original structure are respectively drawn; the at least two triangular faces are spliced to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when the mobile device is displayed. In the above manner, the structure in the BIM model is converted into a frame with a smaller volume, reducing the performance consumption of the mobile device and enhancing the user experience.

[0050] In step 11, a compressed package can be generated from the obtained data of the original structure, and the content in the compressed package includes all the original structures and their information files in the original model, and the structures and their information files can also be compressed and stored separately.

[0051] In an alternative embodiment of the present invention, the data of the original structure at least includes the following two types:

[0052] The outer bounding box of the original structure and the position of the original structure.

[0053] In this embodiment, the data of the original structure further includes: the type of the structure, the position or coordinates of the structure, the rotation quaternion of the structure, the original data, etc., where the original data includes materials, construction units, etc., but is not limited to the above.

[0054] Through the outer bounding box of the original structure and the position of the original structure, a wireless mesh network (mesh) of the structure can be drawn.

[0055] In another alternative embodiment of the present invention, step 12 may include:

[0056] Step 121, according to the preset coordinates of the outer bounding box of the original structure, twelve triangular faces of the original structure are respectively drawn, and the preset coordinates of the outer bounding box of the original structure at least include the following two coordinates:

[0057] The highest point coordinate and the lowest point coordinate within all the coordinates of the outer bounding box of the original structure.

[0058] In this embodiment, any point can be taken within all the coordinates of the outer bounding box of the original structure to obtain the highest coordinate (maxX, maxY, maxZ) and the lowest coordinate (minX, minY, minZ) of the outer bounding box.

[0059] In another alternative embodiment of the present invention, step 121 may include:

[0060] Step 1211, according to the highest point coordinate and the lowest point coordinate, eight corresponding range coordinates are obtained;

[0061] Step 1212, in the same Cartesian coordinate system, for any four range coordinates, perform a first operation until all the planes in the Cartesian coordinate system are divided into two triangles with equal areas, obtaining twelve triangular faces of the original structure;

[0062] The first operation is as follows:

[0063] Step 12121, arbitrarily select three of the four range coordinates and connect them clockwise to form a first triangular face;

[0064] Step 12122, connect the unselected range coordinate with the two points corresponding to the hypotenuse of the first triangular face clockwise to obtain a second triangular face.

[0065] As Figure 2 shown, in this embodiment, a specific example is used to describe the method of drawing a cube as follows:

[0066] First, assume that after obtaining the highest coordinates (maxX, maxY, maxZ) and the lowest coordinates (minX, minY, minZ) of the outer bounding box of a certain structure, use the lowest coordinates as the first vertex of the pre-generated cube, that is, corresponding to Figure 2 point 1 (minX, minY, minZ) in, then the highest coordinate point 7 (maxX, maxY, maxZ) of the structure;

[0067] Second, after obtaining the lowest coordinate point 1 and the highest coordinate point 7 of the structure, perform permutations and combinations on the (X, Y, Z) coordinates of these two points to obtain 8 coordinates of the pre-generated cube, corresponding to Figure 2 points 1 to 8 in, that is: point 1 (minX, minY, minZ), point 2 (maxX, minY, minZ), point 3 (maxX, maxY, minZ), point 4 (minX, maxY, minZ), point 5 (minX, minY, maxZ), point 6 (maxX, minY, maxZ), point 7 (maxX, maxY, maxZ), point 8 (minX, maxY, maxZ).

[0068] Then, after obtaining the 8 vertex coordinates of the pre-generated cube, 6 faces of the pre-generated cube can also be obtained. In each face, construct twelve triangular faces of the cube by connecting the lines clockwise according to Figure 2 , but the construction method is not limited to the clockwise connection method shown in the figure.

[0069] In Figure 2Taking the front face of the pre-generated cube as an example, two triangular faces 1-5-6 and 6-2-1 are formed, and the clockwise direction is selected to form the triangular faces. Using the same method for the other 5 faces of the pre-generated cube, a total of 12 faces are obtained, which are: 1-5-6, 6-2-1, 2-6-7, 7-3-2, 7-8-4, 4-3-7, 4-8-5, 5-1-4, 5-8-7, 7-6-5, 4-1-2, 2-3-4.

[0070] In another alternative embodiment of the present invention, in step 13, splicing the at least two triangular faces to obtain a spliced frame structure may include:

[0071] Step 131, splicing the triangular faces corresponding to the hypotenuses among the twelve triangular faces in pairs to obtain a spliced frame structure, and the spliced frame structure is a cube structure.

[0072] As Figure 3 shown, in this embodiment, after obtaining the 8 vertices and 12 triangular faces of the pre-generated cube, a cube structure can be obtained through the model mesh drawing method provided by the game engine (Unity), where Figure 3 is an API provided by Unity, but the method of generating a cube is not limited to the above.

[0073] In another alternative embodiment of the present invention, the position of the frame structure is the same as the position of the original structure.

[0074] In this embodiment, since the position of the original data is included when obtaining the data of the original structure, and the conversion is performed at the original position when converting the original structure, the position of the frame structure is the same as the position of the original structure.

[0075] In yet another alternative embodiment of the present invention, after step 13, it may further include:

[0076] Step 132, when the mobile device is displayed, replacing the original structure that does not conform to the preset rules with the frame structure, and retaining the original structure that conforms to the preset rules.

[0077] In this embodiment, the preset rules can be set according to the actual situation. For example: it can be set that within 100 meters from the origin of the mobile device in the mobile device is the original structure, and outside 100 meters is the frame structure, or it can be set that in the mobile device, the one with a larger occupied memory is the frame structure, and the one with a smaller memory is the original structure. However, the above two are only two examples, and the preset rules include but are not limited to the above.

[0078] Figure 4The figure shows a flowchart of a specific method for implementing multi-level of detail (LOD) display of data in an ultra-large space provided by an embodiment of the present invention. As Figure 4 shown, the large space is divided into at least two parts, and each part includes corresponding component information. Through the information, the mesh of the component can be drawn. In this way, the number of triangular faces of each component is 12, which can meet the LOD display of a large number of models.

[0079] The core function of this method is: using the constructed outer bounding box data to generate a cube. The generated cube is used to simulate the component in the low-poly state, where the component corresponds to the structure in the above embodiment.

[0080] The specific method is as follows:

[0081] First, split the model. The model splitting can be divided into two stages. First, by analyzing the structure of the BIM model, the same components are classified, and a classified JSON (JavaScript Object Notation) file will be generated in this stage; second, through the json file, the BIM model is exported into a data file composed of a three-dimensional model and the large space data information of all components. Among them, the data structure of the large space data includes the data of the outer bounding box.

[0082] Secondly, after obtaining the large space data of all models, all the required low-poly models can be generated. The outer bounding box of each component is two coordinate points: the lowest point coordinates (minX, minY, minZ) and the highest point coordinates (maxX, maxY, maxZ) of the model in the coordinate system. The model mesh drawing method is provided by Unity, that is, specifying the 8 vertices and 12 triangular faces of the cube to generate the cube.

[0083] Finally, when the program starts, the position of the camera is the origin. As the user manipulates the device to move, the coordinates of the camera change dynamically. Only the high-precision models in a small range around the camera need to be loaded according to the camera coordinates, and the models outside the range are replaced with low-poly models. In this way, it can not only meet the user's view of the nearby models around, but also know the position of the large space where the user is located, which is convenient for subsequent movement and operation.

[0084] In the above embodiment of the present invention, by obtaining the original structure and the data of the original structure; according to the data of the original structure, at least two triangular faces of the original structure are respectively drawn; the at least two triangular faces are spliced to obtain a spliced frame structure, and the frame structure is used to replace the original structure when displayed on the mobile device, realizing the conversion of the structure in the BIM model into a smaller-volume frame, reducing the performance consumption of the mobile device and enhancing the user experience.

[0085] Figure 5 shows a schematic structural diagram of a structure conversion device 50 in a model provided by an embodiment of the present invention. As Figure 5 shown, the device includes:

[0086] An acquisition module 51, configured to acquire an original structure and data of the original structure;

[0087] A drawing module 52, configured to respectively draw at least two triangular faces of the original structure according to the data of the original structure;

[0088] A conversion module 53, configured to splice the at least two triangular faces to obtain a spliced frame structure, and the frame structure is used to replace the original structure with the frame structure when the original structure is displayed on the mobile device.

[0089] Optionally, the data of the original structure at least includes the following two types:

[0090] The outer bounding box of the original structure and the position of the original structure.

[0091] Optionally, the drawing module 52 is further configured to respectively draw twelve triangular faces of the original structure according to preset coordinates of the outer bounding box of the original structure.

[0092] Optionally, the preset coordinates of the outer bounding box of the original structure at least include the following two coordinates:

[0093] The highest point coordinate and the lowest point coordinate within all coordinates of the outer bounding box of the original structure.

[0094] Optionally, the drawing module 52 is further configured to obtain corresponding eight range coordinates according to the highest point coordinate and the lowest point coordinate;

[0095] In the same Cartesian coordinate system, for any four range coordinates, perform a first operation until all planes in the Cartesian coordinate system are divided into two triangles with equal areas, to obtain twelve triangular faces of the original structure;

[0096] The first operation is:

[0097] Arbitrarily select three range coordinates from the four range coordinates and connect them clockwise to form a first triangular face;

[0098] Connect the unselected range coordinate with the two points corresponding to the hypotenuse of the first triangular face clockwise to obtain a second triangular face.

[0099] Optionally, the conversion module 53 is further configured to splice the triangular faces corresponding to the hypotenuses among the twelve triangular faces in pairs to obtain a spliced frame structure, and the spliced frame structure is a cubic structure.

[0100] Optionally, the position of the frame structure is the same as the position of the original structure.

[0101] Optionally, when the mobile device is displayed, the conversion module 53 is further configured to replace the original structure that does not conform to the preset rules with the frame structure, and retain the original structure that conforms to the preset rules.

[0102] It should be understood that the above description of Figures 1 to 4 the illustrative method embodiments is only an elaboration of the technical solutions of the present invention in an optional example manner, and does not constitute a limitation on the structure conversion method in the model involved in the present invention. In some other embodiments, the execution steps and sequences of the structure conversion method in the model involved in the present invention may be different from those in the above embodiments, and the embodiments of the present invention do not limit this.

[0103] It should be noted that this embodiment is a device embodiment corresponding to the above method embodiment. All implementation manners in the above method embodiment are applicable to the device embodiment, and the same technical effects can be achieved.

[0104] The embodiment of the present invention provides a non-volatile computer storage medium, and the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the structure conversion method in the model in any of the above method embodiments.

[0105] Figure 6 The structural schematic diagram of the computing device provided by the embodiment of the present invention is shown, and the specific implementation of the computing device is not limited in the specific embodiment of the present invention.

[0106] As Figure 6 shown, the computing device may include: a processor, a communications interface, a memory, and a communication bus.

[0107] Among them: the processor, the communications interface, and the memory communicate with each other through the communication bus. The communications interface is used to communicate with network elements of other devices such as clients or other servers. The processor is used to execute a program, and specifically can execute the relevant steps in the above embodiment of the structure conversion method in the model for the computing device.

[0108] Specifically, the program may include program code, and the program code includes computer operation instructions.

[0109] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the computing device may be of the same type, such as one or more CPUs; or may be of different types, such as one or more CPUs and one or more ASICs.

[0110] A memory for storing programs. The memory may include high-speed RAM memory and may also include non-volatile memory, such as at least one disk memory.

[0111] Specifically, the program is used to cause the processor to execute the structure conversion method in the model in any of the above method embodiments. For the specific implementation of each step in the program, reference may be made to the corresponding steps and units in the structure conversion method embodiments in the above model, which will not be elaborated here. Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices and modules can refer to the corresponding process descriptions in the foregoing method embodiments, which will not be repeated here.

[0112] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings provided herein. Based on the above description, the structure required to construct such systems is obvious. In addition, the embodiments of the present invention are not directed to any specific programming language. It should be understood that the content of the embodiments of the present invention described herein can be implemented using various programming languages, and the description of the specific language above is to disclose the best mode of the embodiments of the present invention.

[0113] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.

[0114] Similarly, it should be understood that in order to streamline the embodiments of the present invention and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.

[0115] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components.

[0116] In addition, those skilled in the art can understand that although some of the embodiments herein include certain features included in other embodiments rather than other features, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments.

[0117] Each component embodiment of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The embodiments of the present invention can also be implemented as a device or apparatus program (for example, a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the embodiments of the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0118] It should be noted that the above embodiments illustrate the embodiments of the present invention rather than limit the present invention. The word "a" or "an" before an element does not exclude the existence of multiple such elements. The embodiments of the present invention can be implemented by means of hardware including several different elements and by means of a properly programmed computer. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the execution order.

Claims

1. A method for structural transformation in a model, characterized in that, Applied to a mobile device, the method includes: Obtain an original structure and data of the original structure; Draw at least two triangular faces of the original structure respectively according to the data of the original structure; Piece together the at least two triangular faces to obtain a pieced-together frame structure, which is used to replace the original structure with the frame structure when the mobile device is displayed; The data of the original structure includes: the outer bounding box of the structure, the type of the structure, the position or coordinates of the structure, the rotation quaternion of the structure, and the original data, where the original data includes materials and construction units; Draw twelve triangular faces of the original structure respectively according to the preset coordinates of the outer bounding box of the original structure; the preset coordinates include the highest point coordinates and the lowest point coordinates within all the coordinates of the outer bounding box; Obtain eight corresponding range coordinates according to the highest point coordinates and the lowest point coordinates; in the same Cartesian coordinate system, for any four range coordinates, perform a first operation until all the planes in the Cartesian coordinate system are divided into two triangles with equal areas to obtain twelve triangular faces of the original structure; The method further includes: Split the model, and classify the same components by analyzing the structure of the BIM model, and the components correspond to the above original structure; The pieced-together frame structure is a cube, and the cube is used to simulate the components in the low-poly state; When the mobile device is displayed, replace the original structure that does not conform to the preset rules with the frame structure, and the position of the frame structure is the same as the position of the original structure, and retain the original structure that conforms to the preset rules; specifically: the position of the camera is the origin, and as the user manipulates the device to move, the coordinates of the camera change dynamically, and a high-precision model within the range around the camera is loaded according to the camera coordinates, and the model outside the range is replaced with a low-poly cube.

2. The structural conversion method in the model according to claim 1, characterized in that The first operation is: Arbitrarily select three of the four range coordinates and connect them clockwise to form a first triangular face; Connect the unselected range coordinate with the two points corresponding to the hypotenuse of the first triangular face clockwise to obtain a second triangular face.

3. The structural conversion method in the model according to claim 1, characterized in that Piece together the at least two triangular faces to obtain a pieced-together frame structure, including: Piece together the triangular faces corresponding to the hypotenuses among the twelve triangular faces in pairs to obtain a pieced-together frame structure, and the pieced-together frame structure is a cube structure.

4. A structure conversion device in a model, characterized in that, Applied to a mobile device, the device includes: An acquisition module for acquiring an original structure and data of the original structure; A drawing module for drawing at least two triangular faces of the original structure respectively according to the data of the original structure; A conversion module for piecing together the at least two triangular faces to obtain a pieced-together frame structure, which is used to replace the original structure with the frame structure when the mobile device is displayed; The data of the original structure includes: the outer bounding box of the structure, the type of the structure, the position or coordinates of the structure, the rotation quaternion of the structure, and the original data, where the original data includes materials and construction units; Draw twelve triangular faces of the original structure respectively according to the preset coordinates of the outer bounding box of the original structure; the preset coordinates include the highest point coordinates and the lowest point coordinates within all the coordinates of the outer bounding box. Obtain corresponding eight range coordinates according to the highest point coordinates and the lowest point coordinates; in the same Cartesian coordinate system, perform a first operation for any four range coordinates until all the planes in the Cartesian coordinate system are divided into two triangles with equal areas, so as to obtain twelve triangular faces of the original structure. The method further includes: Split the model, classify the same components by analyzing the structure of the BIM model, and the components correspond to the above original structure. The spliced frame structure is a cube, and the cube is used to simulate the components in the low-poly state. When the mobile device is displayed, replace the original structure that does not conform to the preset rules with the frame structure, and the position of the frame structure is the same as that of the original structure, and keep the original structure that conforms to the preset rules; specifically: the position of the camera is the origin, and as the user manipulates the device to move, the coordinates of the camera change dynamically. Load the high-precision model within the range around the camera according to the camera coordinates, and replace the model outside the range with a low-poly cube.

5. A computing device, comprising: A processor, a memory, a communication interface and a communication bus, and the processor, the memory and the communication interface complete communication with each other through the communication bus. The memory is used to store at least one executable instruction, and when the at least one executable instruction runs, the processor executes the structure conversion method in the model as described in any one of claims 1-3.

6. A computer storage medium, in which at least one executable instruction is stored, and when the executable instruction runs, the computing device executes the structure conversion method in the model as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method and device for building three-dimensional graphic model, electronic equipment and storage medium

    CN107978018A

  • A three-dimensional model loading method and device

    CN109671156A