CN102339476A - Method for describing three-dimensional lightweight model - Google Patents

Method for describing three-dimensional lightweight model Download PDF

Info

Publication number
CN102339476A
CN102339476A CN2010102284902A CN201010228490A CN102339476A CN 102339476 A CN102339476 A CN 102339476A CN 2010102284902 A CN2010102284902 A CN 2010102284902A CN 201010228490 A CN201010228490 A CN 201010228490A CN 102339476 A CN102339476 A CN 102339476A
Authority
CN
China
Prior art keywords
information
node
file
light quantitative
description
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
CN2010102284902A
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 RAINFE TECHNOLOGY CO LTD
Original Assignee
BEIJING RAINFE 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 RAINFE TECHNOLOGY CO LTD filed Critical BEIJING RAINFE TECHNOLOGY CO LTD
Priority to CN2010102284902A priority Critical patent/CN102339476A/en
Publication of CN102339476A publication Critical patent/CN102339476A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for describing a three-dimensional lightweight model. The method comprises the following steps that: step one, nodes are generated, wherein node information is composed of basic attribute information and basic figure information; step two, basic attribute information are established for all nodes; step three, basic figure information are established for all the nodes; step four, it is determined whether all the nodes have been processed; if so, turn to a step five; if not, jump to the first step and the above-mentioned steps are repeated; step five, a lightweight data file is generated, wherein the generated file comprises two parts: a file head and a file body. According to the invention, a method for describing a three-dimensional lightweight model is provided; a product principle can be displayed; and the method can be applied to application maintenance of products.

Description

A kind of method of describing the D light quantitative model
Technical field
The present invention relates to computer realm, particularly the method for a kind of description of electronic 3-D model and demonstration.
Background technology
Industry does not have clear and definite definition to the notion of D light quantitative model at present; Particular content according to the present invention is defined as it and is satisfying under the prerequisite of display requirement; Product model has been realized the compression of data volume and the rejecting of redundant information substantially, and product model can fast browsing.
The accurate mathematical form of the general employing of three-dimensional CAD model is expressed the geological information of model, and the geological information and the topology information of part model can be provided, and makes things convenient for the deviser that product model is accurately analyzed.Be included in that engineering design information can make things convenient for the deviser to catch and information such as maintenance items design idea and product design constraint in the product model, even also comprise the historical process information of modeling rendering.
Had several kinds of lightweight model data forms at present, like STL, OBJ etc. do following brief introduction respectively.
(1) STL form
The stl file form is a kind of file layout that U.S. 3DSystem company at first proposes; Thought the standardized element description file format in present rapid shaping field by industry member; This file layout is with the discrete triangle surface that turns in three-dimensional model surface; Each triangle surface is described by three apex coordinates and a face normal vector, and " the triangle size is optional, and triangle surface is divided more for a short time, to the approximation accuracy of solid object surface just high more " the CAD software such as the Solidworks of current trend; UG, Pro/e etc. provide the output interface to formatted file.
(2) obj file form
The obj file form is a kind of file layout that Warefont company overlaps based on the modeling and the animation software functional development of workstation for its; The OBJ form is supported polygon (Polygon); Straight line (lines), surface (surfaces) and free form curve (Frea-Form Curves).The characteristics of obj file are following: (1) is a kind of 3D model file, does not therefore comprise animation, material characteristic, pinup picture path, dynamics, information such as particle.(2) file is mainly supported polygon family model (Polygons).(3) obj file is supported the face that three points are above.(4) file is supported normal and pinup picture coordinate.
Remove STL, also have 3dxml beyond the obj file form, vrml etc. can express the D light quantitative model.
But; This how much cad models of expressing with mathematical form need the time of labor to be used for the demonstration of model in the prior art; Be difficult to realize true-time operation, particularly in parts assembling planning, must call in its sub-part continually large-sized model; With position, attitude, the sequential scheduling of expression assembling, and in this operating process, need not make amendment to part itself.For reaching the true-time operation in the assembling planning, must adopt model lightweight technology, promptly model is simplified and compressed, to improve its loading and display speed.Mainly abandon the geological information and the moulding historical information of its accurate mathematical expression, only keep its tri patch information in order to show, after handling through such lightweight, the volume of model file becomes littler, is about 10% of master mould.
Summary of the invention
To the defective of above-mentioned prior art, the purpose of this invention is to provide a kind of method of describing the D light quantitative model, but the principle of exhibiting product is applied to the applicating maintenance of product.
For achieving the above object, the present invention adopts following technical scheme:
A kind of method of describing the D light quantitative model comprises the steps:
The first step generates node; The information of said node is made up of two parts: base attribute information and fundamental figure information;
Second step is for each node is set up base attribute information;
The 3rd step is for each node is set up fundamental figure information;
The 4th step judged whether to handle all said nodes that is over, if dispose, then forwarded for the 5th step to, if do not have, then jumped to the first step, repeatedly above-mentioned steps;
The 5th step generated the lightweight data file, and the file content that is generated comprises two parts: file header and file body.
The method of description of the invention D light quantitative model, wherein said base attribute information comprises code name, title, description, local coordinate system, color, transparency.
The method of description of the invention D light quantitative model, wherein said fundamental figure information comprises solid object surface information, three-dimensional contour line information, markup information, other category information.
The method of description of the invention D light quantitative model, wherein said fundamental figure information can be described with element figure.
The method of description of the invention D light quantitative model, wherein said fundamental figure information is used for presentation-entity, curved surface, curve.
The method of description of the invention D light quantitative model comprises products-tree, node, primitive information in the wherein said file body.
The method of description of the invention D light quantitative model, wherein for each node distribute one unique ID number.
The method of description of the invention D light quantitative model wherein all be written to together in the data file of said generation with the information of this node itself for ID number of the child node number of each node and each node, and the ID of root node is write at first.
The method of description of the invention D light quantitative model, the data that wherein said method forms exist with the form of file.
The method of description of the invention D light quantitative model has very powerful advantage in the network application field.By the file that three-dimensional model lightweight data layout is generated, volume, the abundant information of expression.In concrete application process, can the lightweight data be passed to client from service end through network.Because its volume is little, the time of data transmission is short, can be implemented in a little displaying live views.
Description of drawings
Fig. 1 is the process flow diagram that the present invention describes the method for D light quantitative model;
Fig. 2 is the structural drawing that the present invention describes D light quantitative model in the method for D light quantitative model;
Fig. 3 is the structural drawing that the present invention describes the data file that method generated of D light quantitative model.
Embodiment
Below in conjunction with accompanying drawing the embodiment that the present invention describes the method for D light quantitative model is elaborated.
Referring to Fig. 1, the method that the present invention describes the D light quantitative model comprises:
The first step: generate node; Nodal information is made up of two parts: base attribute information, fundamental figure information.
Second step: for each node is set up base attribute information; Base attribute information comprises code name, title, description, local coordinate system, color, transparency etc.These information are essential informations of descriptive model, in the operation model process, can use these information afterwards.
The 3rd step: for each node is set up fundamental figure information; Comprise solid object surface information, three-dimensional contour line information, markup information, other category information etc.These information can be described with element figure.Main element figure has:
1.DRAW_Tree, be used to describe products-tree.
2.DRAW_Node, be used to describe the product node.
3.LFRAME, be used to define the parameter of coordinate transform.Utilize LFRAME just can carry out rigid body translation arbitrarily, and be mapped in the 3d space model.
4.PNT3D, be used for defining the point and the vector of 3d space.
5.COLOR_DEF, the structure that is used to store colouring information.
6.BOX3D, be used to store bounding box information.
7.LOD_DRAW_DATA, be used for the access level data of description.
8.DRAW_DATA_GROUP, be used for the descriptive model geological information.
9.SQLine, be used to store a line.
10.FACE_ELEMENT_F, be used for the geological information of storage surface.
11.STriangle16, be used to store the index value on an Atria summit.
12.Note, be used for the markup information of memory node.
The 4th step: judge whether to handle all nodes,, then carried out for the 5th step, if not then repeat the first step if handle.
The 5th step: generate the lightweight data file, the file content of generation constitutes as shown in Figure 3; This document content comprises two parts, the one, and file header, the 2nd, file body comprises products-tree, node, primitive information in the file body.
Referring to Fig. 2, the present invention describes the method for D light quantitative model and describes a D light quantitative model through products-tree, node, pel.Wherein:
(1) products-tree; Products-tree is made up of leaf node by set membership.
(2) node; Each node is made up of base attribute information and fundamental figure information.Wherein base attribute information comprises code name, title, description, local coordinate system, color, transparency; Fundamental figure information is made up of element figure.
(3) pel; It is that element figure consists of the following components by the combining of element figure that the fundamental figure of node is described:
The 3D solid surface is meant discrete triangular plate;
Three-dimensional contour line is meant discrete space line-segment sets, with expressing entity, curved surface, curve;
Markup information is meant local coordinate and inner line-segment sets and text description thereof;
Other type is meant the segment that the space line segment is formed.
Inventive point of the present invention is the description and the organizational form of products-tree, node, pel, and is as shown in Figure 2, and the application sees products-tree, node, pel and the relation each other how described of having established from application point.In the application's embodiment, the formed data of method that propose through the application exist with the form of file.
Below will be with the implementation procedure of the form DETAILED DESCRIPTION The present application of pseudo-code: wherein,
The pseudo-code of products-tree, node, pel general data type is described below.
(1.DRAW_Tree products-tree)
Products-tree is made up of node, and node can comprise the next stage child node.Pseudo-code is following:
Struct?Tree
{
DRAW_NODE?nodes[];
}
(2.DRAW_Node node)
When reading file, the information of acquisition at first stores in the DRAW_NODE structure, and the content according to information copies them in other corresponding with it data structures to then.Pseudo-code is following:
struct?DRAW_NODE
{
int32 nNodeId;
LFRAME lframe;
COLOR_DEF color;
BOX3D boxNode;
PNT3D pntCenter;
rea164 fRadius;
LOD_DRAW_DATA* lodDrawData[10];
int32 m_nLodTolLevel;
CString m_strName;
Cstring note;
};
Wherein nNodeId is ID number of node; Lframe is the local coordinate frame of node, the coordinate conversion parameter that storage need be carried out from upper layer node to this node; Color is the color of this node itself; BoxNode is for being the bounding box of all models on the subtree of root node with this node; Correspondingly, pntCenter and fRadius constitute the encirclement ball; LodDrawData has stored the pointer that points to LOD data at all levels, and it is coarse more to number high more, corresponding LOD data, 10 layers of LOD of definable at most at present, and correspondence position is a null value in the lodDrawData array that less than is 10 layers; The LOD number of plies that m_nLodTolLevel has for this node; M_strName is the title of present node; Note is an endorsement information.
3.LFRAME
Defined the parameter of coordinate transform.The concrete definition as follows:
struct?LFRAME
{
PNT3D?O;
PNT3D?OX,OY,OZ;
};
Wherein O is the coordinate of local coordinate initial point in the coordinate system of upper strata, and OX, OY, OZ are respectively the vector of unit length of 3 coordinate axis of local coordinate system correspondence in the coordinate system of upper strata.These 3 vector of unit length that vector must be a pairwise orthogonal, and constitute right-handed coordinate system.Utilize LFRAME just can carry out rigid body translation arbitrarily, and be mapped in the 3d space model.
4.PNT3D
Point and vector in the definition 3d space comprise x, y, three components of z, define as follows:
struct?PNT3D
{
rea164x,y,z;
};
5.COLOR_DEF
Be used to store the structure of colouring information, the concrete definition as follows:
typedef?struct?colordef_tag
{
uchar r,g,b;
uchar reserved;
}
COLOR_DEF;
Wherein r, g, b represent three color components of red, green, blue respectively, and reserved is for keeping component.
6.BOX3D
Storage AABB bounding box information, the concrete definition as follows:
struct?BOX3D
{
rea164?xl,yl,zl;
rea164?xh,yh,zh;
};
Xl, yl, zl are the minimum value of bounding box summit coordinate components on 3 directions; Xh, yh, zh be representative coordinates component maximal value then.
7.LOD_DRAW_DATA
Through this structural reference LOD data, the concrete definition as follows:
struct?LOD_DRAW_DATA
{
rea164 fTol;
int32 nTri;
DrawDataGroupArray?drawDataGroupArr;
};
Wherein ftol characterizes the degree that discrete data departs from model; NTri has the sum of triangular plate for this LOD; The grouping geometric data of drawDataGroupArr storage LOD, wherein DrawDataGroupArray is the array of CArray packing DRAW_DATA_GROUP structure.
8.DRAW_DATA_GROUP
Packed model geometric information, the concrete definition as follows:
struct?DRAW_DATA_GROUP
{
FaceElementFArray?faceElementArr;
QLineArray boundaryWireArr;
};
Wherein faceElementArr has comprised the geological information of each face of model body; BoundaryWireArr is the boundary line of model.FaceElementFArray is the CArray array of having packed the FACE_ELEMENT_F structure, and QLineArray is the array of having packed the SQLine structure.
9.SQLine
This structure is used to store a line, defines as follows:
struct?SQLine
{
int32 nCount;
PNT3D *pPntArr;
};
Wherein nCount is the number of putting on this line; PPntArr points to the first address of memory point coordinate information.
10.FACE_ELEMENT_F
Stored the geological information of face, the concrete definition as follows:
struct?FACE_ELEMENT_F
{
int32 face_id;
int32 nVertCount;
int32 nNormalCount;
int32 nTriangleCount;
float *pPntArr;
float *pNormalArr;
STriangle16 *pTriangleArr;
};
Wherein face_id is the sign of face; NVertCount is the summit number of face; NNormalCount is the normal vector number of face; NTriangleCount is the triangular plate number of face; PPntArr points to the first address of memory point coordinate information; PNormalArr points to the first address of storage method vector information; PTriangleArr points to the first address of triangle index information.
Because apex coordinate and normal vector all have 3 components in the 3d space, so the float data number of storing in the internal memory that pPntArr and pNormalArr point to is to be respectively nVertCount and nTriangleCount 3 times.Index value is the point of i, and x, y, z coordinate figure are stored in pPntArr [3*i], pPntArr [3*i+1], PntArr [3*i+2] respectively and locate.When this face was the plane, the normal vector on all summits was all identical, so normal vector has only 1; When this face was curved surface, the number of normal vector was identical with the number on summit, normal vector and summit one correspondence.
10.STriangle16
The index value on a storage Atria summit defines as follows:
struct?STriangle16
{
GLushort m_p1,m_p2,m_p3;
};
Wherein m_p1, m_p2, m_p3 represent the index value of an Atria summit in the array of summit respectively, because same summit often belongs to a plurality of triangles simultaneously, use the mode of number of vertex combined triangular shape index can save a lot of memory headrooms.
Above embodiment describes preferred implementation of the present invention; Be not that scope of the present invention is limited; Design under the prerequisite of spirit not breaking away from the present invention; Various distortion and improvement that the common engineering technical personnel in this area make technical scheme of the present invention all should fall in the definite protection domain of claims of the present invention.

Claims (9)

1. a method of describing the D light quantitative model is characterized in that, comprises the steps:
The first step generates node; The information of said node is made up of two parts: base attribute information and fundamental figure information;
Second step is for each node is set up base attribute information;
The 3rd step is for each node is set up fundamental figure information;
The 4th step judged whether to handle all said nodes that is over, if dispose, then forwarded for the 5th step to, if do not have, then jumped to the first step, repeatedly above-mentioned steps;
The 5th step generated the lightweight data file, and the file content that is generated comprises two parts: file header and file body.
2. the method for description D light quantitative model according to claim 1 is characterized in that, said base attribute information comprises code name, title, description, local coordinate system, color, transparency.
3. the method for description D light quantitative model according to claim 1 is characterized in that, said fundamental figure information comprises solid object surface information, three-dimensional contour line information, markup information, other category information.
4. according to the method for claim 1 or 3 described description D light quantitative models, it is characterized in that said fundamental figure information can be described with element figure.
5. according to the method for claim 1,3 or 4 described description D light quantitative models, it is characterized in that said fundamental figure information is used for presentation-entity, curved surface, curve.
6. according to the method for any described description D light quantitative model among the claim 1-5, it is characterized in that, comprise products-tree, node, primitive information in the said file body.
7. according to the method for any described description D light quantitative model among the claim 1-6, it is characterized in that, for each node distribute one unique ID number.
8. the method for description D light quantitative model according to claim 7; It is characterized in that; All be written to together in the data file of said generation, and the ID of root node is write at first with the information of this node itself the child node number of each node and each node ID number.
9. according to the method for any described description D light quantitative model among the claim 1-8, it is characterized in that the data that said method forms exist with the form of file.
CN2010102284902A 2010-07-16 2010-07-16 Method for describing three-dimensional lightweight model Pending CN102339476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102284902A CN102339476A (en) 2010-07-16 2010-07-16 Method for describing three-dimensional lightweight model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102284902A CN102339476A (en) 2010-07-16 2010-07-16 Method for describing three-dimensional lightweight model

Publications (1)

Publication Number Publication Date
CN102339476A true CN102339476A (en) 2012-02-01

Family

ID=45515188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102284902A Pending CN102339476A (en) 2010-07-16 2010-07-16 Method for describing three-dimensional lightweight model

Country Status (1)

Country Link
CN (1) CN102339476A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217049A (en) * 2013-05-31 2014-12-17 北京空间技术研制试验中心 Lightweight display method of complex system three-dimensional model
CN106846460A (en) * 2016-12-30 2017-06-13 译筑信息科技(上海)有限公司 The implementation method and device of a kind of three-dimensional BIM images
CN106919728A (en) * 2015-12-28 2017-07-04 上海核工程研究设计院 It is a kind of by DGN model conversations into light weight model method
CN107610217A (en) * 2017-08-22 2018-01-19 中广核工程有限公司 A kind of nuclear power generating equipment virtually identifies display systems and method
CN112330811A (en) * 2019-07-20 2021-02-05 杨雪峰 Data lightweight storage method and device for three-dimensional model

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706838A (en) * 2009-11-20 2010-05-12 国营长空精密机械制造公司 Method and system for simulating gear profile used in computer aided design (CAD)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706838A (en) * 2009-11-20 2010-05-12 国营长空精密机械制造公司 Method and system for simulating gear profile used in computer aided design (CAD)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹德君 等: "基于轻量化三维产品模型的装配建模技术研究", 《机床与液压》, vol. 37, no. 11, 30 November 2009 (2009-11-30), pages 173 - 176 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217049A (en) * 2013-05-31 2014-12-17 北京空间技术研制试验中心 Lightweight display method of complex system three-dimensional model
CN106919728A (en) * 2015-12-28 2017-07-04 上海核工程研究设计院 It is a kind of by DGN model conversations into light weight model method
CN106919728B (en) * 2015-12-28 2021-10-12 上海核工程研究设计院 Method for converting DGN model into lightweight model
CN106846460A (en) * 2016-12-30 2017-06-13 译筑信息科技(上海)有限公司 The implementation method and device of a kind of three-dimensional BIM images
CN106846460B (en) * 2016-12-30 2020-07-14 译筑信息科技(上海)有限公司 Method and device for realizing three-dimensional BIM image
CN107610217A (en) * 2017-08-22 2018-01-19 中广核工程有限公司 A kind of nuclear power generating equipment virtually identifies display systems and method
CN112330811A (en) * 2019-07-20 2021-02-05 杨雪峰 Data lightweight storage method and device for three-dimensional model
CN112330811B (en) * 2019-07-20 2022-11-01 北京圜晖科技有限公司 Data lightweight storage method and device for three-dimensional model

Similar Documents

Publication Publication Date Title
CN102236910B (en) Automatic generation of 3D models from packaged goods product images
CN110245368A (en) A kind of the structuring processing and storage method of BIM data
Zlatanova et al. Trends in 3D GIS development
McHenry et al. An overview of 3d data content, file formats and viewers
JP3829972B2 (en) 3D CAD system
CN108595858B (en) BIM-based lightweight advanced treatment working method
CN107609268B (en) TIN-based three-dimensional geological model and BIM model coupling method
CN100527169C (en) Three-dimensional scene real-time drafting framework and drafting method
Shi et al. An object-oriented data model for complex objects in three-dimensional geographical information systems
CN113593051B (en) Live-action visualization method, dam visualization method and computer equipment
CN102339476A (en) Method for describing three-dimensional lightweight model
CN110489692B (en) WebGL instantiation-based method and system for realizing component-level operation
Li et al. Geometry synthesis on surfaces using field-guided shape grammars
CN109118588B (en) Automatic color LOD model generation method based on block decomposition
CN103309943A (en) Three-dimensional geographic information platform and topographic data processing method thereof
CN109859318A (en) Threedimensional model towards safety in production makes loaded and displayed system and method
CN115345107A (en) Method for converting ODB + + file into three-dimensional geometric model
CN116484446A (en) Digital twin model construction method for automobile manufacturing workshop production line
CN111339599A (en) Conversion method from BIM model to GIS model
CN114756555A (en) Multi-source heterogeneous three-dimensional model data processing method and system
CN101609565A (en) 3D solid boolean operation method based on the L-Rep model
Du et al. Management and 3D visualisation of pipeline networks using DBMS and AEC software
CN111967066B (en) Modeling method for three-dimensional microscopic structure of polymorphic particle reinforced composite material
CN100440258C (en) System and method for automatic creating data gridding of stratum and fault
CN103093496B (en) A kind of graphics Simulation method and system

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Bai Yun

Document name: Notification of Passing Examination on Formalities

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120201