Three-dimensional model data exchange method based on general geometric description

By constructing basic model objects and using universal geometry to describe model structure data, the problem of inconvenient data exchange in the existing technology is solved, the decomposition and separate storage or retrieval of three-dimensional model data is realized, and the efficiency of data exchange is improved.

CN118733147APending Publication Date: 2024-10-01CCCC JIANSHI DIGITAL TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776289.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing model data exchange method is inconvenient to use the graphical model engine and describe it with universal geometry, making it difficult to decompose the data and reducing the convenience and efficiency of data exchange.

Method used

By building basic model objects and using universal geometry to describe model structure data, including vertices and faces, connectors are used for data exchange, allowing users to mark attributes as separable, thereby enabling separate storage and retrieval of data.

Benefits of technology

It improves the convenience and efficiency of data exchange, allowing 3D model data to be decomposed and stored or retrieved separately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733147A_ABST
    Figure CN118733147A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional model data exchange method based on general geometric description, and the method comprises the following steps: S1, building a model basic object: building a dynamic object on the basis of a graph model engine data object, and taking the dynamic object as the basis of all other graph model engine data objects, namely the model basic object, other objects inherited by the graph model engine data object from the model basic object have a combination of predefined attributes and dynamic attributes; s2, describing model structure data; and S3, submitting model data. According to the method, the model basic object is constructed, the model basic object serves as the basis of other graph model engine data objects, general geometry is used for description, model data are submitted by a user, exchange of three-dimensional model data is completed, the data can be decomposed, and the model data can be converted into three-dimensional model data. Therefore, the decomposed data can be independently stored or retrieved, convenience is provided for data exchange, and improvement of data exchange efficiency is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of data exchange technology, specifically relating to a method for exchanging three-dimensional model data based on general geometric description. Background Technology

[0002] Data switching refers to the process of establishing a temporary interconnection path for data communication between any two data terminal equipment (DTEs) among multiple DTEs. Data switching can be divided into: circuit switching, message switching, packet switching, and hybrid switching.

[0003] A graphics rendering engine is a low-level software package specifically designed to support high-level graphics rendering needs. It encapsulates various graphics visualization-related objects. Users can employ object-oriented development methods to directly use these objects to build and manage scenes, and specify which window to draw the results onto. Internally, the engine calls graphics hardware-oriented APIs to implement the rendering of various visualization objects.

[0004] Existing model data exchange methods still have some problems: it is inconvenient to use a graph model engine and general geometry for description to complete the exchange of 3D model data, which makes it inconvenient to decompose the data, resulting in the inability to store or retrieve the data separately, thus reducing the convenience and efficiency of data exchange. To address this, we propose a 3D model data exchange method based on general geometry description. Summary of the Invention

[0005] The purpose of this invention is to provide a method for exchanging three-dimensional model data based on general geometric description, so as to solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for exchanging three-dimensional model data based on general geometric description, comprising the following steps: S1. Constructing the basic model object: Based on the graph engine data object, construct a dynamic object as the foundation of all other graph engine data objects, which is the basic model object. Other objects inherited from the basic model object have a combination of predefined attributes and dynamic attributes. S2. Description of Model Structure Data: The model structure data of the graph model engine data object is described through basic vertices and faces, and the data structure is as follows: geomtry { vertices: [] / / Vertex data x, y, z, 3 data points make up one vertex face: [] / / Vertex index of triangle face data; S3. Model Data Submission: Data exchange is performed using a connector. The basic model object is processed by the backend server. When the user confirms the submission of the basic model object, the basic model object is converted into the graph model engine data object and then nested in the parent object to create a submission, thus completing the data exchange.

[0007] Preferably, the basic objects of the model include MESH objects, point cloud objects, lines, polyline objects, polygon objects, and other objects.

[0008] Preferably, the MESH object includes a model object and a material, the model object includes geometry, vertices, faces and UV coordinates, and the material includes color and texture.

[0009] Preferably, the inherited other objects have attributes in a combination of predefined and dynamic attributes that can be dynamically added. The attribute values ​​in the predefined and dynamic attributes can be other basic objects, such as a RevitColumn, which contains a Line representing its baseline.

[0010] Preferably, the data exchange using the connector further includes: sending a set of elements through a Revit plugin, converting each element in the basic model object into an equivalent of a model engine data object inherited from the model engine class, and creating a commit when sending these elements, which includes all Revit elements nested therein.

[0011] Preferably, the basic model object includes decomposition key features, which are used by the user to mark attributes as separable. The attributes marked as separable exist outside the parent object and can be stored or retrieved separately.

[0012] Preferably, the key decomposition feature includes decomposing elements with multiple beams and walls. The specific method is as follows: elements with multiple beams and walls refer to the same level. It is not necessary to create multiple copies of this level and store them in each beam and wall object. Instead, the level is made detachable in beams and walls, allowing all objects to reference the same level. It only needs to be stored once to complete the decomposability of elements with multiple beams and walls.

[0013] Preferably, step S2 further includes processing the graph model engine data, specifically including: Obtain the first source data block; Determine if the path to the first target file exists. If the path to the first target file exists, calculate the length of the first byte of the first source data block. Create a first pointer and a first heap memory, wherein the first pointer is of type null and the storage length of the first heap memory is equal to the length of the first byte, and make the first pointer point to the first heap memory; The first source data block is copied to the first heap memory, the first byte length is written in binary format to the beginning of the first memory corresponding to the first target file, and the data in the first source data block copied to the first heap memory is written in binary format to the first memory.

[0014] Preferably, the method for processing the graph model engine data further includes: reading the second byte length of the second source data block when it is written to the second memory from the second memory of the second target file, and storing the second byte length in the created storage variable; Create a second pointer, create a second heap memory based on the length of the second byte, and make the second pointer point to the second heap memory, wherein the type of the second pointer is null; Read the data from the second source data block from the second memory and store the data into the second heap memory; Cast the type of the second pointer to the type of the second source data block.

[0015] Preferably, step S1 further includes the implementation of a graph model engine, specifically including: The required data is pre-categorized and abstracted into multiple data modules, including: a viewport module, a camera module, an object module, a text module, and a graphics module; Obtain abstract data from the data module; Based on the abstract data, objects are created, and a list of structures containing pointers to all objects is generated; The objects are created, managed, have resources allocated, and resources released through the structure list.

[0016] Compared with the prior art, the beneficial effects of the present invention are: This invention constructs a basic model object, which serves as the foundation for other graph engine data objects and is described using general geometry. By having users submit model data, the exchange of 3D model data is completed, enabling data decomposition. This allows for the separate storage or retrieval of the decomposed data, thus facilitating data exchange and improving its efficiency. Attached Figure Description

[0017] Figure 1 This is a flowchart of the present invention; Figure 2This is a structural block diagram of the basic object of the model of this invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] Example 1

[0020] Please see Figures 1-2 This invention provides a technical solution: a method for exchanging 3D model data based on general geometric description, comprising the following steps: S1. Constructing the basic model object: Based on the graph engine data object, construct a dynamic object as the foundation of all other graph engine data objects, which is the basic model object. Other objects inherited from the basic model object have a combination of predefined attributes and dynamic attributes. S2. Description of Model Structure Data: The model structure data of the graph model engine data object is described through basic vertices and faces, and the data structure is as follows: geomtry { vertices: [] / / Vertex data x, y, z, 3 data points make up one vertex face: [] / / Vertex index of triangle face data; S3. Model Data Submission: Data exchange is performed using a connector. The basic model object is processed by the backend server. When the user confirms the submission of the basic model object, the basic model object is converted into the graph model engine data object and then nested in the parent object to create a submission, thus completing the data exchange.

[0021] In this embodiment, preferably, the basic model objects include MESH objects, point cloud objects, lines, polyline objects, polygon objects, and other objects.

[0022] In this embodiment, preferably, the MESH object includes a model object and a material. The model object includes geometry, vertices, faces, and UV coordinates, and the material includes color and texture.

[0023] In this embodiment, preferably, the inherited other objects have attributes that can be dynamically added in the combination of predefined attributes and dynamic attributes. The attribute values ​​in the predefined attributes and dynamic attributes can be other basic objects, such as RevitColumn, which contains a Line representing its baseline.

[0024] In this embodiment, preferably, the data exchange using the connector further includes: sending a set of elements through a Revit plugin, converting each element in the basic model object into an equivalent item of the model engine data object inherited from the model engine class, and creating a commit when sending these elements, which includes all Revit elements nested therein.

[0025] In this embodiment, preferably, the basic model object includes decomposition key features, which are used by the user to mark attributes as separable. The attributes marked as separable exist outside the parent object and can be stored or retrieved separately.

[0026] In this embodiment, preferably, the key decomposition feature includes decomposing elements with multiple beams and walls. The specific method is as follows: elements with multiple beams and walls refer to the same level. It is not necessary to create multiple copies of this level and store them in each beam and wall object. Instead, the level is made detachable in the beams and walls, allowing all objects to reference the same level. It only needs to be stored once to complete the decomposability of elements with multiple beams and walls.

[0027] In this embodiment, preferably, step S2 further includes processing the graph model engine data, specifically including: Obtain the first source data block; Determine if the path to the first target file exists. If the path to the first target file exists, calculate the length of the first byte of the first source data block. Create a first pointer and a first heap memory, wherein the first pointer is of type null and the storage length of the first heap memory is equal to the length of the first byte, and make the first pointer point to the first heap memory; The first source data block is copied to the first heap memory, the first byte length is written in binary format to the beginning of the first memory corresponding to the first target file, and the data in the first source data block copied to the first heap memory is written in binary format to the first memory.

[0028] In this embodiment, preferably, the method for processing the graph model engine data further includes: reading the second byte length of the second source data block when it is written into the second memory from the second memory of the second target file, and storing the second byte length in the created storage variable; Create a second pointer, create a second heap memory based on the length of the second byte, and make the second pointer point to the second heap memory, wherein the type of the second pointer is null; Read the data from the second source data block from the second memory and store the data into the second heap memory; Cast the type of the second pointer to the type of the second source data block.

[0029] In this embodiment, preferably, step S1 further includes the implementation of a graph model engine, specifically including: The required data is pre-categorized and abstracted into multiple data modules, including: a viewport module, a camera module, an object module, a text module, and a graphics module; Obtain abstract data from the data module; Based on the abstract data, objects are created, and a list of structures containing pointers to all objects is generated; The objects are created, managed, have resources allocated, and resources released through the structure list.

[0030] Example 2

[0031] Please see Figures 1-2 This invention provides a technical solution: a method for exchanging 3D model data based on general geometric description, comprising the following steps: S1. Constructing the basic model object: Based on the graph engine data object, construct a dynamic object as the foundation of all other graph engine data objects, which is the basic model object. Other objects inherited from the basic model object have a combination of predefined attributes and dynamic attributes. S2. Description of Model Structure Data: The model structure data of the graph model engine data object is described through basic vertices and faces, and the data structure is as follows: geomtry { vertices: [] / / Vertex data x, y, z, 3 data points make up one vertex face: [] / / Vertex index of triangle face data; S3. Model Data Submission: Data exchange is performed using a connector. The basic model object is processed by the backend server. When the user confirms the submission of the basic model object, the basic model object is converted into the graph model engine data object and then nested in the parent object to create a submission, thus completing the data exchange.

[0032] In this embodiment, preferably, the basic model objects include MESH objects, point cloud objects, lines, polyline objects, polygon objects, and other objects.

[0033] In this embodiment, preferably, the MESH object includes a model object and a material. The model object includes geometry, vertices, faces, and UV coordinates, and the material includes color and texture.

[0034] In this embodiment, preferably, the data exchange using the connector further includes: sending a set of elements through a Revit plugin, converting each element in the basic model object into an equivalent item of the model engine data object inherited from the model engine class, and creating a commit when sending these elements, which includes all Revit elements nested therein.

[0035] In this embodiment, preferably, the basic model object includes decomposition key features, which are used by the user to mark attributes as separable. The attributes marked as separable exist outside the parent object and can be stored or retrieved separately.

[0036] In this embodiment, preferably, the key decomposition feature includes decomposing elements with multiple beams and walls. The specific method is as follows: elements with multiple beams and walls refer to the same level. It is not necessary to create multiple copies of this level and store them in each beam and wall object. Instead, the level is made detachable in the beams and walls, allowing all objects to reference the same level. It only needs to be stored once to complete the decomposability of elements with multiple beams and walls.

[0037] In this embodiment, preferably, step S2 further includes processing the graph model engine data, specifically including: Obtain the first source data block; Determine if the path to the first target file exists. If the path to the first target file exists, calculate the length of the first byte of the first source data block. Create a first pointer and a first heap memory, wherein the first pointer is of type null and the storage length of the first heap memory is equal to the length of the first byte, and make the first pointer point to the first heap memory; The first source data block is copied to the first heap memory, the first byte length is written in binary format to the beginning of the first memory corresponding to the first target file, and the data in the first source data block copied to the first heap memory is written in binary format to the first memory.

[0038] In this embodiment, preferably, step S1 further includes the implementation of a graph model engine, specifically including: The required data is pre-categorized and abstracted into multiple data modules, including: a viewport module, a camera module, an object module, a text module, and a graphics module; Obtain abstract data from the data module; Based on the abstract data, objects are created, and a list of structures containing pointers to all objects is generated; The objects are created, managed, have resources allocated, and resources released through the structure list.

[0039] The principles and advantages of this invention: This invention constructs a basic model object, which serves as the foundation for other graph engine data objects and is described using general geometry. By having users submit model data, the exchange of 3D model data is completed, enabling data decomposition. This allows for the separate storage or retrieval of the decomposed data, thus facilitating data exchange and improving its efficiency.

[0040] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for exchanging three-dimensional model data based on universal geometric description, characterized in that: The following steps are involved: S1. Constructing a basic model object: On the basis of the graph model engine data object, construct a dynamic object as the basis for all other graph model engine data objects, namely, the basic model object, and the graph model engine data object inherits other objects from the basic model object, having a combination of predefined attributes and dynamic attributes; S2. Describing the model structure data: The model structure data of the image engine data object is described by basic vertices and faces, and the data structure is as follows: geomtry vertices: [] / / Vertex data x, y, z, every 3 data constitute a vertex face: [] / / Triangle face data vertex index; S3. Model data submission: Use the connector to exchange data, process the model basic object through the background server, and when the user decides to submit the model basic object, convert the model basic object into the graphic model engine data object, and then nest it in the parent object to create a submission and complete the data exchange.

2. A three-dimensional model data exchange method based on general geometric description according to claim 1, characterized in that: The basic model objects include MESH objects, point cloud objects, lines, polyline objects, polygon objects and other objects.

3. A three-dimensional model data exchange method based on general geometric description according to claim 2, characterized in that: The MESH object includes a model object and a material. The model object includes geometry, vertices, faces and UV coordinates. The material includes color and texture.

4. The method for exchanging three-dimensional model data based on general geometric description according to claim 1, characterized in that: The properties of the other inherited objects having a combination of predefined properties and dynamic properties can be added dynamically, and the property values ​​in the predefined properties and dynamic properties can be other basic objects, such as RevitColumn, which contains a Line representing its baseline.

5. A three-dimensional model data exchange method based on general geometric description according to claim 4, characterized in that: The use of the connector for data exchange also includes: sending a collection of elements through a Revit plug-in, converting each element in the basic model object into an equivalent graphic engine data object inherited from a graphic engine class, and creating a submission when sending these elements, including all Revit elements nested therein.

6. The method for exchanging three-dimensional model data based on general geometric description according to claim 1, characterized in that: The model base object includes a decomposition key feature, which is used for a user to mark an attribute as separable. The attribute marked as separable exists outside the parent object and can be stored or retrieved separately.

7. A three-dimensional model data exchange method based on general geometric description according to claim 6, characterized in that: The key features of decomposition include decomposing the graphics elements with multiple beams and walls. The specific method is as follows: make the graphics elements with multiple beams and walls refer to the same level. There is no need to create multiple copies of this level and store them in each beam and wall object. Instead, make the level detachable in the beam and wall, allowing all objects to reference the same level. It only needs to be stored once to complete the decomposability of the graphics elements with multiple beams and walls.

8. The method for exchanging three-dimensional model data based on general geometric description according to claim 1, characterized in that: The S2 also includes processing the image model engine data, and the specific method includes: Obtaining a first source data block; Determine whether a path of the first target file exists, and if the path of the first target file exists, calculate and obtain a first byte length of the first source data block; Create a first pointer and a first heap memory, wherein the type of the first pointer is null, the storage length of the first heap memory is equal to the first byte length, and the first pointer points to the first heap memory; The first source data block is copied to the first heap memory, the first byte length is written in binary format to the beginning of the first memory corresponding to the first target file, and the data in the first source data block copied to the first heap memory is written in binary format to the first memory.

9. A three-dimensional model data exchange method based on general geometric description according to claim 8, characterized in that: The method for processing the image model engine data further includes: reading from the second memory of the second target file a second byte length of the second source data block when it is written into the second memory, and storing the second byte length into the created storage variable; Create a second pointer, create a second heap memory according to the second byte length, and make the second pointer point to the second heap memory, wherein the type of the second pointer is null; Reading data in the second source data block from the second memory and storing the data in the second heap memory; The type of the second pointer is forcibly converted to the type of the second source data block.

10. The method for exchanging three-dimensional model data based on general geometric description according to claim 1, characterized in that: The S1 also includes the implementation of the image model engine, and the specific method includes: The required data is classified and abstracted into multiple data modules in advance, and the data modules include: a viewport module, a camera module, an object module, a text module and a graphic module; Obtaining abstract data from the data module; Create objects according to the abstract data and generate a structure list containing pointers to all objects; The operations of creating, managing, allocating resources and releasing resources are performed on the object through the structure list.