CN114882178A - RVM data-based 3D factory generation method, system, medium and equipment - Google Patents

RVM data-based 3D factory generation method, system, medium and equipment Download PDF

Info

Publication number
CN114882178A
CN114882178A CN202210613280.8A CN202210613280A CN114882178A CN 114882178 A CN114882178 A CN 114882178A CN 202210613280 A CN202210613280 A CN 202210613280A CN 114882178 A CN114882178 A CN 114882178A
Authority
CN
China
Prior art keywords
rvm
file
dimensional model
factory
nodes
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.)
Pending
Application number
CN202210613280.8A
Other languages
Chinese (zh)
Inventor
李学范
陈傲寒
魏新征
柴浩然
唐鑫
张亚坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Younuo Technology Co ltd
Original Assignee
Beijing Younuo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Younuo Technology Co ltd filed Critical Beijing Younuo Technology Co ltd
Priority to CN202210613280.8A priority Critical patent/CN114882178A/en
Publication of CN114882178A publication Critical patent/CN114882178A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a 3D factory generation method based on RVM data, which comprises the following steps: the method comprises the steps of data reading, hierarchical structure analysis, three-dimensional model multiplexing judgment, 3D factory construction and grid data compression optimization. Traversing all three-dimensional models, and reading RVM files in binary format and ATT files in Json format; analyzing the hierarchical structure of the RVM and the objects of the basic bodies and the non-basic bodies of the leaf nodes of the hierarchical structure, and acquiring the attribute information of each three-dimensional model based on the read ATT file; according to the geometric type, the size or the type mark, multiplexing judgment is carried out on the basic body and the non-basic body; performing triangular surface tiling processing based on the multiplexing result of the three-dimensional model, and performing compression optimization on the grid data; and reconstructing the RVM hierarchical structure according to the scene construction and the service requirements of the 3D factory to be generated. The invention also relates to a 3D factory generation system, medium and device based on RVM data.

Description

RVM data-based 3D factory generation method, system, medium and equipment
Technical Field
The invention relates to the technical field of 3D modeling, in particular to a 3D factory generation method, a system, a medium and equipment based on RVM data.
Background
At present, pdms (pdms) (plant design management system), which is a three-dimensional layout design management system of a factory, is known as a first-choice design software system for large-scale and complex factory design projects, and is widely applied to the fields of petroleum, chemical industry, electric power, gas, steel structures, and the like. The method can create a full-scale three-dimensional model, has geometric information and attribute information, has a powerful component library, supports multi-professional (building, structure, electric, equipment, heating and ventilation, instruments and the like) collaborative design, and can be exported to be an open exchange file, a model data file (. rvm) and an attribute auxiliary file (.att).
The RVM data comprises complete geometric information and material information, a tree structure of a PDMS database is perfectly copied, and the ATT attribute file records attribute information of each level, including information such as size, material and space, and is widely applied to scene construction of a 3D factory.
With the improvement of the scale and the fineness of the digital modeling of the 3D factory, the fluency of the model in browsing is greatly influenced, and higher requirements are provided for the loading and rendering capabilities of the model. In addition, in the process of analyzing RVM and ATT data, an original tree structure is not effectively combed and recombined, a multi-hierarchy structure is not fully utilized, and model building of a 3D factory and later-stage related service expansion are influenced.
In order to solve the problems in the prior art, it is urgently needed to develop a 3D factory generation method based on RVM data, which can simultaneously solve the problems of three-dimensional large model loading and 3D factory structure reconstruction.
Disclosure of Invention
The invention aims to solve the technical problem of the prior art and provides a 3D factory generation method, a device, a medium and equipment based on RVM data.
The technical scheme for solving the technical problems is as follows: A3D factory generation method based on RVM data comprises the following steps:
a data reading step: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
analyzing the hierarchical structure: analyzing the hierarchical structure of the RVM and the objects of the basic body and the non-basic body of the leaf node of the hierarchical structure based on the read RVM file, and acquiring the attribute information of each three-dimensional model based on the read ATT file;
and (3) multiplexing and judging the three-dimensional model: based on the objects of the basic body and the non-basic body, carrying out three-dimensional model multiplexing judgment according to the geometric type, the size or the type identification attribute information;
and (3) grid data compression optimization: based on the three-dimensional model multiplexing judgment result, only one piece of grid information is recorded for the multiplexed three-dimensional model after triangular surface tiling processing, and compression optimization is carried out by utilizing a MeshOpt algorithm;
3D factory building steps: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
Preferably, the data reading step further includes:
RVM file reading step: traversing the RVM file, and taking the leaf node data as three-dimensional model data; acquiring ID and Name information of the three-dimensional model;
reading an ATT file: and traversing the ATT file, reading the attribute information of each three-dimensional model, and acquiring the geometric type, size, matrix, material and type identification of the three-dimensional model.
Preferably, the hierarchical structure analysis step further includes:
RVM file structure analysis step: according to the geometric type, the three-dimensional model is divided into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of each three-dimensional model, and setting the ID as a unique identifier of the corresponding three-dimensional model;
and (3) ATT file structure analysis step: reading the identification ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, reading the attribute of the three-dimensional model, acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
Preferably, the three-dimensional model multiplexing determination step includes:
a basic body multiplexing step: respectively selecting geometric type and size information as multiplexing basis to carry out multiplexing judgment aiming at basic bodies of Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models;
a non-basic body multiplexing step: and aiming at the non-basic body of the facetGroup type model, the multiplexing judgment of the non-basic body is carried out by taking the type identifier as a multiplexing judgment basis.
Preferably, the 3D factory building step includes:
building nodes: reading Zone nodes in the RVM hierarchical Structure, identifying keywords related to Building, Structure and Civil, analyzing the Building distribution in the factory, and establishing Building nodes of the 3D factory according to the analysis result;
building floor nodes: identifying nodes with Floor and Roof related keywords in the Framework nodes of the RVM hierarchical structure, reading Floor and elevation information, and establishing Floor nodes of a 3D factory according to the relationship of the Floor nodes and the building nodes;
a room node construction step: in a SubFramework node of an RVM hierarchical structure, nodes with Slab and Panel related keywords are arranged, room information and bounding box information are read, and room nodes of a 3D factory are established according to the affiliated relationship with the floor nodes;
and (3) equipment node construction: traversing the query nodes of the RVM hierarchical structure, reading the equipment information and the bounding box information, and establishing the equipment nodes of the 3D factory according to the spatial topological relation of the room nodes;
a system node construction step: reading Zone nodes in the RVM hierarchical structure, identifying keywords related to Pipe, HVAC and Cable, analyzing electromechanical system information, and establishing system nodes of the 3D factory according to the relationship and the spatial topological relationship of the building nodes;
a branch node construction step: identifying nodes with System-related keywords in Pipe, HVAC and Cable nodes of an RVM hierarchical structure, analyzing branch node information, and establishing branch nodes of a 3D factory according to the affiliated relationship of the System nodes;
and (3) element node construction: and traversing Branch nodes of the RVM hierarchical structure and sub-nodes under the Branch, reading element node information, and establishing element nodes of the 3D factory according to the affiliated relationship of the Branch nodes.
The embodiment of the invention also provides a 3D factory generation system based on RVM data, which adopts the 3D factory generation method based on RVM data, and the system comprises:
a data reading module: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
a hierarchical structure analysis module: analyzing the hierarchical structure of the RVM and the objects of the basic body and the non-basic body of the leaf node of the hierarchical structure based on the read RVM file, and acquiring the attribute information of each three-dimensional model based on the read ATT file;
the three-dimensional model multiplexing judgment module: based on objects of a basic body and a non-basic body, carrying out three-dimensional model multiplexing judgment according to geometric type, size or type identification attribute information;
and (3) grid data compression optimization: based on the three-dimensional model multiplexing judgment result, only one piece of grid information is recorded for the multiplexed three-dimensional model after triangular surface tiling processing, and compression optimization is carried out by utilizing a MeshOpt algorithm;
3D factory building block: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
Preferably, the hierarchical structure analysis module further includes:
RVM file structure analysis module: according to the geometric type, the three-dimensional model is divided into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of each three-dimensional model, and setting the ID as a unique identifier of the corresponding three-dimensional model;
ATT file structure analysis module: reading the identification ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, and reading the attribute of the three-dimensional model; and acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
Preferably, the three-dimensional model multiplexing determination module includes:
the basic body multiplexing module: respectively selecting geometric type and size information as multiplexing basis to carry out multiplexing judgment aiming at basic bodies of Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models;
non-basic body multiplexing module: and aiming at the non-basic body of the facetGroup type model, the multiplexing judgment of the non-basic body is carried out by taking the type identifier as a multiplexing judgment basis.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described RVM data-based 3D factory generation method.
The invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the RVM data based 3D factory generation method as described above when executing the program.
The method has the beneficial effects that:
1) the method for generating the 3D factory based on the RVM data has the advantages that on the premise that conventional geometric information and material information are reserved, the geometric models (namely basic bodies and non-basic bodies) are fully multiplexed, mesh compression optimization is realized by using the MeshOpt, and the loading capacity and rendering efficiency of the three-dimensional models are greatly improved;
2) the method uniformly classifies data hierarchy structures under different modules such as buildings, structures, electrical, equipment, heating and ventilation, instruments and the like into 3D factory-building-floor-room-equipment and 3D factory-building-system-branch-element, and combs out a scene construction which is more suitable for a 3D factory, and provides powerful support for later rendering and business realization.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention or in the description of the prior art will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a 3D factory generation method based on RVM data according to the present invention;
FIG. 2 is a schematic diagram of a reconstructed 3D plant model structure tree according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating multiplexing of Box classes as a basic entity in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of multiplexing of non-basic volume Valve classes according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a model structure of a plant, building, floor, room, equipment according to an embodiment of the present invention;
FIG. 6 is a schematic view of the entire electromechanical system in accordance with an exemplary embodiment of the present invention;
FIG. 7 is a schematic diagram of a 3D factory generation system framework based on RVM data according to the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention aims to provide a method for generating a 3D factory based on RVM data. And secondly, reading the information such as the geometry, material, attribute and the like of the basic body and the non-basic body of the leaf node of the RVM hierarchical structure, and realizing efficient three-dimensional model multiplexing judgment. And converting the three-dimensional model data into triangular grid data, and performing efficient compression processing on the grid data by utilizing MeshOpt compression. And finally, combing the original RVM hierarchical structure again according to the scene construction and service requirements of the 3D factory, and constructing a new model structure tree.
The technical scheme for solving the technical problems is as follows: a method for generating a 3D factory based on RVM data, as shown in fig. 1, the method comprising:
data reading step S10: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
hierarchy structure analysis step S20: analyzing hierarchical structure information of the RVM and objects of basic bodies and non-basic bodies of leaf nodes of the hierarchical structure based on the read RVM file, and acquiring attribute information of each three-dimensional model based on the read ATT file;
three-dimensional model multiplexing determination step S30: based on the objects of the basic body and the non-basic body, carrying out three-dimensional model multiplexing judgment according to the geometric type, the size or the type identification attribute information;
mesh data compression optimization step S40: based on the three-dimensional model multiplexing judgment result, only one piece of grid information is recorded on the multiplexed three-dimensional model after triangular tiling, and the MeshOpt algorithm is utilized for compression optimization;
3D factory building step S50: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
Preferably, the data reading step S10 further includes:
RVM file reading step: traversing the RVM file, and taking the leaf node data as three-dimensional model data; acquiring the ID and Name information of the three-dimensional model;
reading an ATT file: traversing the ATT file, and reading attribute information of each three-dimensional model; and acquiring the geometric type, the size, the matrix, the material and the type identification of the three-dimensional model.
Preferably, the hierarchical structure analysis step S20 further includes:
RVM file structure analysis: according to the geometric type, the three-dimensional model is divided into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of the three-dimensional model, and setting the ID as a unique identifier corresponding to the three-dimensional model;
and (3) ATT file structure analysis step: reading the identification ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, and reading the attribute of the three-dimensional model; and acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
Preferably, the three-dimensional model multiplexing determination step S30 includes:
a basic body multiplexing step: respectively selecting geometric type and size information as multiplexing basis to carry out multiplexing judgment aiming at basic bodies of Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models;
a non-basic body multiplexing step: and aiming at the non-basic body of the facetGroup type model, the multiplexing judgment of the non-basic body is carried out by taking the type identifier as a multiplexing judgment basis.
Preferably, the 3D factory building step S50 includes:
building nodes: reading Zone nodes in the RVM hierarchical Structure, identifying keywords related to Building, Structure and Civil, analyzing the Building distribution in the factory, and establishing Building nodes of the 3D factory according to the analysis result;
a floor node construction step: identifying nodes with Floor and Roof related keywords in the Framework nodes of the RVM hierarchical structure, reading Floor and elevation information, and establishing Floor nodes of a 3D factory according to the relationship of the Floor nodes and the building nodes;
a room node construction step: in a SubFramework node of an RVM hierarchical structure, nodes with Slab and Panel related keywords are arranged, room information and bounding box information are read, and room nodes of a 3D factory are established according to the affiliated relationship with the floor nodes;
and (3) equipment node construction: traversing the query nodes of the RVM hierarchical structure, reading the equipment information and the bounding box information, and establishing the equipment nodes of the 3D factory according to the spatial topological relation of the room nodes;
a system node construction step: reading Zone nodes in the RVM hierarchical structure, identifying keywords related to Pipe, HVAC and Cable, analyzing electromechanical system information, and establishing system nodes of the 3D factory according to the relationship and the spatial topological relationship of the building nodes;
a branch node construction step: identifying nodes with System-related keywords in Pipe, HVAC and Cable nodes of an RVM hierarchical structure, analyzing branch node information, and establishing branch nodes of a 3D factory according to the affiliated relationship of the System nodes;
and (3) element node construction: and traversing Branch nodes of the RVM hierarchical structure and sub-nodes under the Branch, reading element node information, and establishing element nodes of the 3D factory according to the affiliated relationship of the Branch nodes.
The following detailed description of specific embodiments of the invention refers to the accompanying drawings in which:
fig. 2 is a schematic diagram of a 3D plant model structure tree reconstructed by the present invention, and as shown in fig. 2, the present invention adopts a method for generating a 3D plant based on RVM data, so that Rvm data can be more suitable for scene construction and service logic of the 3D plant, and efficient consumption of the RVM data is realized.
The specific implementation method provided by the invention is as follows:
step 1: the RVM file in binary format is read, traversing all three-dimensional models.
(1) And traversing the RVM file, and taking the leaf node data as three-dimensional model data.
(2) The ID and Name of each three-dimensional model are read and set as the unique identification of the model.
Step 2: and reading the ATT file in the Json format and acquiring the attribute information of each three-dimensional model.
(1) And traversing the ATT file, and reading the attribute information of each three-dimensional model.
(2) By reading the ID of each three-dimensional model, a one-to-one match is made with the ID values in the RVM file reading.
(3) The material information, that is, Color (Color) information, of each three-dimensional model is read.
(4) Matrix information, including rotation (ORI), movement (POS), is read for each three-dimensional model.
(5) All three-dimensional models are divided into basic bodies and non-basic bodies according to the difference of geometric types (types). Wherein the basic body comprises Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder, Sphere; while the non-basic body is called FacetGroup.
(6) Reading size information of each base body, for example, the length (length), Width (Width), Height (Height) of Box; cylinder has a Radius at the base (Radius) and a Height (Height).
(7) When reading non-geometric attributes, type identification (SPRE) information is obtained.
And step 3: and combing the basic body and the non-basic body object, and performing height multiplexing judgment according to the size information and the type identification.
(1) And as for the basic body, selecting the geometric type and the size information as multiplexing basis. As shown in fig. 3, all Box bases in the model are multiplexed, and only one Box base is recorded during storage, so that corresponding transformation matrices are added, and the loading capacity is improved.
For a Box type model, only one piece of triangle plane information of a unit Box with the length of 1m is recorded, and the actual length of the original Box is taken as the proportion of X, the actual width as Y and the actual height as Z direction, and the proportion is multiplied to the original matrix of the Box.
Secondly, only one piece of unit Sphere triangular surface information with Radius of 1m is recorded for the Sphere model, and the actual Radius of the original Sphere is taken as the proportion of X, Y, Z directions and multiplied to the original matrix of the Sphere.
And thirdly, for the Cylinder type model, only one part of unit Cylinder triangular surface information with baseRadius of 1m and Height of 1m is recorded, and the actual bottom radius is taken as X, the actual bottom radius is taken as Y, the actual Height is taken as the proportion of the Z direction, and the actual bottom radius is multiplied to the original matrix of the Cylinder.
And fourthly, for the SphericalDish model, only one set of triangular surface information of the unit SphericalDish with baseRadius of 1m and Height of 1m is recorded, and the actual bottom radius is taken as X, the actual bottom radius is taken as Y, the actual Height is taken as the proportion of the Z direction, and the actual bottom radius is multiplied to the original matrix of the SphericalDish.
For the EllipticalDish model, only one set of triangular surface information of the unit EllipticalDish with Radius of 1m and Height of 1m is recorded, and the actual bottom Radius is taken as X, the actual bottom Radius is taken as Y, the actual Height is taken as the proportion of the Z direction, and the actual bottom Radius is multiplied to the original matrix of the EllipticalDish.
Sixthly, for the Pyramid model, combining actual Bottom1, Bottom2, Top1, Top2, Offset1, Offset2 and Height as the judgment basis of multiplexing, and when the actual Bottom1, the Bottom2, the Top1, the Top2, the Offset1, the Offset2 and the Height are the same, only one piece of triangle information is recorded, and the original matrix of Pyramid is reserved.
And seventhly, for the circular Torus model, combining actual Offset, Radius and Angle to serve as a multiplexing judgment basis, only recording triangular surface information when the actual Offset, Radius and Angle are the same, and keeping the original matrix of the circular Torus model.
And (8) for a rectangular Torus model, merging actual Inner _ radius, Outer _ radius, Height and Angle as a multiplexing judgment basis, and recording only one set of triangular plane information and reserving the original matrix of rectangular Torus when the actual Inner _ radius, Outer _ radius, Height and Angle are the same.
Ninthly, for the Snout models, combining actual Offset1, Offset2, Bshear1, Bshear2, Tshear1, Tshear2, Radius _ b, Radius _ t and Height to serve as a judgment basis for multiplexing, and only recording a part of triangular surface information and reserving the original matrix of rectangular Torus.
(2) And for the non-basic body, selecting the type identifier as a multiplexing basis. As shown in fig. 4, the Valve classes belonging to the non-basic body in the model are multiplexed, only one part is recorded during storage, the corresponding transformation matrix is added, and the loading capacity is improved.
Firstly, for the facegroup model, the type identifier is used as the multiplexing judgment basis, for example, the type identifier (SPRE) of a certain valve in PDMS is 'A1A/GA-: 150'. Meanwhile, rotation and movement values are respectively calculated through the values of ORI and POS in the attributes, and are combined into a transformation matrix of the model, for example, the ORI of a certain valve is Y is E and Z is U, the ANGL is 90, and the POS is W663S 4899.45U 934.
And secondly, when the triangular surface information of the FacetGroup type model is recorded, multiplying the vertex information of the original triangular surface by the first step to obtain an inverse matrix of the matrix, and only one copy of the multiplex model is recorded.
And 4, step 4: the mesh data compression optimization comprises the following steps:
and recording only one piece of grid information for the multiplexed three-dimensional model after triangular surface tiling processing based on the three-dimensional model multiplexing judgment result. The MeshOpt algorithm is used for compressing data such as the vertex, the normal, UV, the index and the like of the grid in high quality, and the network transmission efficiency of the Web end is greatly optimized on the premise of not influencing the loading model of the Web end.
And 5: the 3D factory hierarchy is reconstructed by adjusting the original hierarchy of the RVM, but the invention is not limited thereto and may also support other hierarchies.
According to the scene construction and the service requirements of the 3D factory to be generated, the original RVM hierarchical structure is adjusted, and the model structure of the 3D factory to be generated is readjusted;
in the RVM hierarchical Structure, the Zone, Structure, Framework, SubFramework and Equipment nodes mainly relate to the building, Structure and equipment specialties, the hierarchical belongingrelationship and the spatial belongingrelationship are obtained by reading the node information, and the hierarchical Structure of the nodes is combed into the hierarchical Structure of 3D factory-building-floor-room-equipment; the Zone, Pipe, HVAC, Cable and Branch nodes belong to the electromechanical profession, relate to systems such as heating ventilation and pipelines, comprise a series of elements such as valves, instruments, supports and pipes, and are further read by the affiliated relationship of the node hierarchy to be combed into a hierarchical Structure of 3D factory-Building-System-Branch-element.
Building nodes: reading Zone nodes in the RVM hierarchical Structure, identifying keywords related to Building, Structure and Civil, analyzing the Building distribution in the factory, and establishing Building nodes of the 3D factory according to the analysis result;
building floor nodes: identifying nodes with Floor and Roof related keywords in the Framework nodes of the RVM hierarchical structure, reading Floor and elevation information, and establishing Floor nodes of a 3D factory according to the relationship of the Floor nodes and the building nodes;
a room node construction step: in a SubFramework node of an RVM hierarchical structure, nodes with Slab and Panel related keywords are arranged, room information and bounding box information are read, and room nodes of a 3D factory are established according to the affiliated relationship with the floor nodes;
and (3) equipment node construction: traversing the query nodes of the RVM hierarchical structure, reading the equipment information and the bounding box information, and establishing the equipment nodes of the 3D factory according to the spatial topological relation of the room nodes;
a system node construction step: reading Zone nodes in the RVM hierarchical structure, identifying keywords related to Pipe, HVAC and Cable, analyzing electromechanical system information, and establishing system nodes of the 3D factory according to the relationship and the spatial topological relationship of the building nodes;
a branch node construction step: identifying nodes with System-related keywords in Pipe, HVAC and Cable nodes of an RVM hierarchical structure, analyzing branch node information, and establishing branch nodes of a 3D factory according to the affiliated relationship of the System nodes;
and (3) element node construction: and traversing Branch nodes of the RVM hierarchical structure and sub-nodes under the Branch, reading element node information, and establishing element nodes of the 3D factory according to the affiliated relationship of the Branch nodes.
The technical scheme of the invention has the following beneficial effects: as shown in fig. 3, all Box basic bodies in the model are multiplexed, and only one Box basic body is recorded during storage, so that corresponding transformation matrices are added, and the loading capacity is improved; as shown in fig. 4, the Valve classes belonging to the non-basic body in the model are multiplexed, only one part is recorded during storage, the corresponding transformation matrix is added, and the loading capacity is improved; as in fig. 5, a new model structure tree of buildings, floors, rooms, equipment is reconstructed. Referring to fig. 6, the pipes and the pipe fittings are uniformly classified into an electromechanical system.
The present invention also provides a RVM data-based 3D factory generation system, which adopts the RVM data-based 3D factory generation method, as shown in fig. 7, the system includes:
the data reading module 10: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
the hierarchical structure analysis module 20: analyzing hierarchical structure information of the RVM and objects of basic bodies and non-basic bodies of leaf nodes of the hierarchical structure based on the read RVM file, and acquiring attribute information of each three-dimensional model based on the read ATT file;
the three-dimensional model multiplexing judgment module 30: based on the objects of the basic body and the non-basic body, carrying out three-dimensional model multiplexing judgment according to the geometric type, the size or the type identification attribute information;
mesh data compression optimization module 40: based on the three-dimensional model multiplexing judgment result, only one piece of grid information is recorded for the multiplexed three-dimensional model after triangular surface tiling processing, and compression optimization is carried out by utilizing a MeshOpt algorithm;
3D factory build module 50: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
Preferably, the hierarchical structure analysis module 20 further includes:
RVM file structure analysis module: according to the geometric type, the three-dimensional model is divided into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of each three-dimensional model, and setting the ID as a unique identifier of the corresponding three-dimensional model;
ATT file structure analysis module: reading the identification ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, and reading the attribute of the three-dimensional model; and acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
Preferably, the three-dimensional model multiplexing determination module 30 includes:
the basic body multiplexing module: respectively selecting geometric type and size information as multiplexing basis to carry out multiplexing judgment aiming at basic bodies of Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models;
non-basic body multiplexing module: and aiming at the non-basic body of the facetGroup type model, the multiplexing judgment of the non-basic body is carried out by taking the type identifier as a multiplexing judgment basis.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described RVM data-based 3D factory generation method.
The invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the RVM data based 3D factory generation method as described above when executing the program.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one type of logical function division, and other division manners may be available in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
Compared with the prior art: the key point and the protection point of the invention lie in the processes of acquisition, analysis and call completing rate calculation of communication call records of the maritime satellite C system.
The above-mentioned embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for 3D factory generation based on RVM data, the method comprising:
a data reading step: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
analyzing the hierarchical structure: analyzing the hierarchical structure of the RVM and the objects of the basic bodies and the non-basic bodies of the leaf nodes of the hierarchical structure based on the read RVM file, and acquiring the attribute information of each three-dimensional model based on the read ATT file;
and (3) multiplexing and judging the three-dimensional model: based on the objects of the basic body and the non-basic body, carrying out multiplexing judgment on the three-dimensional model according to geometric type, size or type identification attribute information;
and (3) grid data compression optimization: based on the three-dimensional model multiplexing judgment result, recording a part of grid information on the multiplexed three-dimensional model after triangular surface tiling processing, and performing compression optimization by using a MeshOpt algorithm;
3D factory building steps: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
2. The RVM data based 3D factory generating method according to claim 1, wherein said data reading step further comprises:
RVM file reading step: traversing the RVM file, and taking leaf node data as three-dimensional model data; acquiring the ID and Name information of the three-dimensional model;
reading an ATT file: and traversing the ATT file, reading the attribute information of each three-dimensional model, and acquiring the geometric type, size, matrix, material and type identification of the three-dimensional model.
3. The RVM data based 3D factory generating method according to claim 1, wherein said hierarchy parsing step further comprises:
RVM file structure analysis step: according to the geometric type, dividing the three-dimensional model into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of each three-dimensional model, and setting the ID as a unique identifier of the corresponding three-dimensional model;
and (3) ATT file structure analysis step: reading the ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, and reading the attribute of the three-dimensional model; and acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
4. The RVM data-based 3D factory generating method according to claim 1, wherein said three-dimensional model reuse judging step comprises:
a basic body multiplexing step: respectively selecting geometric type and size information as multiplexing basis for the basic bodies of the Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models to carry out multiplexing judgment;
a non-basic body multiplexing step: and aiming at the non-basic body of the facetGroup type model, carrying out multiplexing judgment on the three-dimensional model by taking the type identifier as a multiplexing judgment basis.
5. The RVM data based 3D factory generating method according to claim 1, wherein said 3D factory building step comprises:
building nodes: reading Zone nodes in an RVM hierarchical Structure, identifying Building, Structure and Civil keywords, analyzing the Building distribution in a factory, and establishing Building nodes of a 3D factory according to the analysis result;
building floor nodes: identifying nodes with Floor and Roof keywords in the Framework nodes of the RVM hierarchical structure, reading Floor and elevation information, and establishing Floor nodes of a 3D factory according to the affiliated relationship with the building nodes;
a room node construction step: in a SubFramework node of an RVM hierarchical structure, nodes with Slab and Panel keywords are arranged, room information and bounding box information are read, and room nodes of a 3D factory are established according to the affiliated relationship with the floor nodes;
and (3) equipment node construction: traversing the query nodes of the RVM hierarchical structure, reading the equipment information and the bounding box information, and establishing the equipment nodes of the 3D factory according to the spatial topological relation of the room nodes;
a system node construction step: reading Zone nodes in the RVM hierarchical structure, identifying Pipe, HVAC and Cable keywords, analyzing electromechanical system information, and establishing system nodes of the 3D factory according to the relationship and the spatial topological relationship of the building nodes;
a branch node construction step: identifying nodes with System keywords in Pipe, HVAC and Cable nodes of the RVM hierarchical structure, analyzing branch node information, and establishing branch nodes of the 3D factory according to the affiliated relationship of the System nodes;
and (3) element node construction: and traversing Branch nodes of the RVM hierarchical structure and sub-nodes under the Branch, reading element node information, and establishing element nodes of the 3D factory according to the affiliated relationship of the Branch nodes.
6. A RVM data-based 3D factory generation system employing the RVM data-based 3D factory generation method according to any one of claims 1 to 5, the system comprising:
a data reading module: traversing all three-dimensional models, and reading a model data file and an attribute auxiliary file, wherein the model data file is an RVM file in a binary format, and the attribute auxiliary file is an ATT file in a Json format;
a hierarchical structure analysis module: analyzing the hierarchical structure of the RVM and the objects of the basic bodies and the non-basic bodies of the leaf nodes of the hierarchical structure based on the read RVM file, and acquiring the attribute information of each three-dimensional model based on the read ATT file;
the three-dimensional model multiplexing judgment module: based on the objects of the basic body and the non-basic body, carrying out multiplexing judgment on the three-dimensional model according to geometric type, size or type identification attribute information;
the grid data compression optimization module: based on the three-dimensional model multiplexing judgment result, only one piece of grid information is recorded for the multiplexed three-dimensional model after triangular surface tiling processing, and compression optimization is carried out by utilizing a MeshOpt algorithm;
3D factory building block: and adjusting the original RVM hierarchical structure and readjusting the original RVM hierarchical structure to the 3D factory model structure to be generated according to the scene construction and the service requirements of the 3D factory to be generated based on the hierarchical structure analysis of the RVM file and the ATT file and the grid information of the three-dimensional model.
7. The RVM data based 3D factory generation system of claim 6, wherein said hierarchy parsing module further comprises:
RVM file structure analysis module: according to the geometric type, dividing the three-dimensional model into a basic body and a non-basic body, wherein the basic body comprises: pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SphericalDish, Snout, Cylinder, and Sphere-like models; the non-basic body comprises a FacetGroup type model; reading the ID and the Name of each three-dimensional model, and setting the ID as a unique identifier of the corresponding three-dimensional model;
ATT file structure analysis module: reading the identification ID of each three-dimensional model, performing one-to-one matching with the unique identification ID in the RVM file reading result, and reading the attribute of the three-dimensional model; and acquiring the matrix and material information of the three-dimensional model, and acquiring the geometric type and dimension information of the basic body and the non-basic type identification.
8. The RVM data-based 3D factory generation system according to claim 6, wherein said three-dimensional model reuse determination module comprises:
the basic body multiplexing module: respectively selecting geometric type and size information as multiplexing basis for the basic bodies of the Pyramid, Box, rectangular Torus, circular Torus, EllipticalDish, SpheriticalDish, Snout, Cylinder and Sphere models to carry out multiplexing judgment;
non-basic body multiplexing module: and aiming at the non-basic body of the facetGroup type model, carrying out recombination multiplexing judgment on the RVM file and the ATT file by taking a type identifier as a multiplexing judgment basis.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, realizes the steps of the RVM data based 3D factory generation method of any of the claims 1-5.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the steps of the RVM data based 3D factory generation method according to any of the claims 1-5.
CN202210613280.8A 2022-05-31 2022-05-31 RVM data-based 3D factory generation method, system, medium and equipment Pending CN114882178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210613280.8A CN114882178A (en) 2022-05-31 2022-05-31 RVM data-based 3D factory generation method, system, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210613280.8A CN114882178A (en) 2022-05-31 2022-05-31 RVM data-based 3D factory generation method, system, medium and equipment

Publications (1)

Publication Number Publication Date
CN114882178A true CN114882178A (en) 2022-08-09

Family

ID=82678738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210613280.8A Pending CN114882178A (en) 2022-05-31 2022-05-31 RVM data-based 3D factory generation method, system, medium and equipment

Country Status (1)

Country Link
CN (1) CN114882178A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522687A (en) * 2023-06-28 2023-08-01 中船奥蓝托无锡软件技术有限公司 System-level target modeling and storage platform for scene modeling

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522687A (en) * 2023-06-28 2023-08-01 中船奥蓝托无锡软件技术有限公司 System-level target modeling and storage platform for scene modeling
CN116522687B (en) * 2023-06-28 2023-09-01 中船奥蓝托无锡软件技术有限公司 System-level target modeling and storage platform for scene modeling

Similar Documents

Publication Publication Date Title
CN102184299B (en) Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system
CN110059150A (en) Hydraulic engineering Digital Archives System based on BIM+GIS
CN113268531B (en) CIM system working method based on BIM and GIS technologies
CN109559069A (en) Production management method, apparatus and terminal device based on assembled architecture platform
CN110442913B (en) Thermal hydraulic three-dimensional real-time dynamic simulation method and system for nuclear power plant
CN109522661A (en) A kind of Building Information Model component and work breakdown structure (WBS) correlating method and system
CN104008218A (en) Electric power engineering three-dimensional integrated design platform
CN114882178A (en) RVM data-based 3D factory generation method, system, medium and equipment
CN103646091A (en) Generation method and device of grid graph data
JP2006164219A (en) Interface for analyzing finite-element, computer-readable storage medium which records program of interface for analyzing finite-element, method for analyzing finite-element using high value-added communication network, parallel processing computer for analyzing finite-element, and computer for analyzing finite-element
CN114253228A (en) Industrial equipment object modeling method and device based on digital twinning
CN111221514B (en) OsgEarth-based three-dimensional visualization component implementation method and system
CN105704184A (en) Power grid organization analysis system based on level framework and analysis method
CN103036705B (en) The visualization system of pipeline and fiber optic resource management system
CN115439618A (en) Intelligent park information model system
Ward et al. An optimized cellular automata approach for sustainable urban development in rapidly urbanizing regions
CN113609556A (en) GIM format and XDB format lossless conversion method of basic C #, and base XDB format lossless conversion method
CN115858498A (en) Five-dimensional space-time distributed database construction method and device
Fradin et al. A Hierarchical Topology‐Based Model for Handling Complex Indoor Scenes
CN102142000B (en) Multi-scale triangulated irregular network (TIN) library coupled storage method
Du Construction cost simulation based on artificial intelligence and BIM
Lam et al. Semantic 3D city model data visualization for smar t city digital twin
Fleischmann et al. Grid generation for three-dimensional process and device simulation
CN102968666B (en) Storage definition method for electric power system data holographic complete time domain management
KR20210099731A (en) System for providing information of 3D river and 3D waterfront

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