CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
DbSubDMesh.h File Reference
#include "TD_PackPush.h"
#include "DbEntity.h"
#include "DoubleArray.h"
#include "DbSurface.h"
#include "Db3dSolid.h"
#include "CmEntityColorArray.h"
#include "Int32Array.h"
#include "Gi/GiGeometry.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

class  OdDbSubDMesh
 
struct  MeshFaceterSettings
 

Typedefs

typedef OdSmartPtr< OdDbSubDMeshOdDbSubDMeshPtr
 
typedef struct MeshFaceterSettings OdDbFaceterSettings
 

Functions

DBENT_EXPORT OdResult oddbGetObjectMesh (OdDbObject *pObj, const OdDbFaceterSettings *faceter, OdGePoint3dArray &vertexArray, OdInt32Array &faceArray, OdGiFaceData *&faceData)
 

Typedef Documentation

◆ OdDbFaceterSettings

Definition at line 1022 of file DbSubDMesh.h.

◆ OdDbSubDMeshPtr

This template class is a specialization of the OdSmartPtr class for OdDbSubDMesh object pointers.

Definition at line 978 of file DbSubDMesh.h.

Function Documentation

◆ oddbGetObjectMesh()

DBENT_EXPORT OdResult oddbGetObjectMesh ( OdDbObject pObj,
const OdDbFaceterSettings faceter,
OdGePoint3dArray vertexArray,
OdInt32Array faceArray,
OdGiFaceData *&  faceData 
)

Creates a mesh from the specified object based on the specified mesh faceter settings.

Parameters
pObj[in] Pointer to the object from which the mesh will be generated.
faceter[in] Parameters that specify the rules for creating the mesh. Optional.
vertexArray[out] Array of vertex points.
faceArray[out] Array of integers describing the face definition based on the input vertex array.
faceData[out] Pointer to the array of properties for each face.
Returns
eNullObjectPointer — if the pointer to the object is null; eNotThatKindOfClass — if the object is not a Polyline/3dSolid/Surface/Region or their direct inheritor; eDegenerateGeometry — if an error occurred while getting the mesh; eOk — if 3dSolid created successfully.
Remarks
The modeler of the object (ModelerGeometry, SpaModeler or C3dModeler) affects the result of the method. Current triangulation settings also affect the result, as MeshFaceterSettings may not override all of them.
If the faceter parameter is set to NULL, the current triangulation parameters of the modeler are used.
If the value of the faceData pointer is non-null, a new OdGiFaceData array is not created. It's created only if at least one of the properties is redefined: color, material or materialMapper.
If the method is called for the OdDbPolyline, it will attempt to create a region and get a mesh from it, therefore the curve should be closed and without self-intersections.