CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
OdGeShell Class Reference

#include <GeShell.h>

Public Member Functions

 OdGeShell ()
 
void addVertex (const OdGePoint3d &vertex)
 
void endFace ()
 
void startFace (bool bHole=false)
 
void addFaceVertex (int nVertexIndex)
 
void draw (OdGiGeometry &geometry)
 

Public Attributes

OdGePoint3dArray vertices
 
OdInt32Array faces
 
OdUInt16Array edgeColors
 
OdCmEntityColorArray edgeTrueColors
 
OdDbStubPtrArray edgeLayers
 
OdDbStubPtrArray edgeLinetypes
 
OdGsMarkerArray edgeSelectionMarkers
 
OdUInt8Array edgeVisibilities
 
OdUInt16Array faceColors
 
OdCmEntityColorArray faceTrueColors
 
OdDbStubPtrArray faceLayers
 
OdGeVector3dArray faceNormals
 
OdGsMarkerArray faceSelectionMarkers
 
OdUInt8Array faceVisibilities
 
OdDbStubPtrArray faceMaterials
 
OdArray< OdGiMapperfaceMappers
 
OdCmTransparencyArray faceTransparencies
 
OdGePoint3dArray textureCoords
 
OdGeVector3dArray vertexNormals
 

Protected Attributes

int m_nFaceStartIndex
 

Detailed Description

This class represents shell primitives.

Remarks
A shell is a set of faces, defined by a list of shell vertices. Shells can have regular faces and holes and disjoint regions. Shell objects contain vertex data, edge data and face data. Vertex data is defined by one array that is the list of face vertices. Edge data contains arrays of edge properties such as edge color, linetype, visibility etc. Face data is defined by an array of shell faces and arrays of face properties such as face color, normals, transparency, material etc.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 53 of file GeShell.h.

Constructor & Destructor Documentation

◆ OdGeShell()

OdGeShell::OdGeShell ( )
inline

Default constructor for the OdGeShell class.

Remarks
Constructs a shell with no valid data assigned.

Definition at line 65 of file GeShell.h.

Member Function Documentation

◆ addFaceVertex()

void OdGeShell::addFaceVertex ( int  nVertexIndex)
inline

Adds a face vertex with a specified index to the face array.

Parameters
nVertexIndex[in] The index from the shell vertices array.

Definition at line 204 of file GeShell.h.

◆ addVertex()

void OdGeShell::addVertex ( const OdGePoint3d vertex)
inline

Adds a vertex to the vertex array of the shell.

Parameters
vertex[in] The vertex to be inserted.

Definition at line 170 of file GeShell.h.

◆ draw()

void OdGeShell::draw ( OdGiGeometry geometry)
inline

Draws the shell using the specified vectorization context.

Parameters
geometry[in] The vectorization context.

Definition at line 215 of file GeShell.h.

◆ endFace()

void OdGeShell::endFace ( )
inline

Ends face assembling. Writes the number of face vertices that have been added by the addFaceVertex() method.

Definition at line 178 of file GeShell.h.

◆ startFace()

void OdGeShell::startFace ( bool  bHole = false)
inline

Starts face assembling. Sets the face index at the start position of a new face to be added and reserves place for the number of face vertices adding -1 or 1 values: -1 if a hole face is expected and 1 for a regular face.

Parameters
bHole[in] Indicates if a hole or regular face is expected. It's false by default.

Definition at line 192 of file GeShell.h.

Member Data Documentation

◆ edgeColors

OdUInt16Array OdGeShell::edgeColors

An array of edges colors.

Definition at line 83 of file GeShell.h.

◆ edgeLayers

OdDbStubPtrArray OdGeShell::edgeLayers

An array of edges layers.

Definition at line 93 of file GeShell.h.

◆ edgeLinetypes

OdDbStubPtrArray OdGeShell::edgeLinetypes

An array of edges linetypes.

Definition at line 98 of file GeShell.h.

◆ edgeSelectionMarkers

OdGsMarkerArray OdGeShell::edgeSelectionMarkers

An array of edges selection markers.

Definition at line 103 of file GeShell.h.

◆ edgeTrueColors

OdCmEntityColorArray OdGeShell::edgeTrueColors

An array of edges true colors.

Definition at line 88 of file GeShell.h.

◆ edgeVisibilities

OdUInt8Array OdGeShell::edgeVisibilities

An array of edges visibilities.

Definition at line 108 of file GeShell.h.

◆ faceColors

OdUInt16Array OdGeShell::faceColors

An array of faces colors.

Definition at line 113 of file GeShell.h.

◆ faceLayers

OdDbStubPtrArray OdGeShell::faceLayers

An array of faces layers.

Definition at line 123 of file GeShell.h.

◆ faceMappers

OdArray<OdGiMapper> OdGeShell::faceMappers

An array of faces mappers.

Definition at line 148 of file GeShell.h.

◆ faceMaterials

OdDbStubPtrArray OdGeShell::faceMaterials

An array of faces materials.

Definition at line 143 of file GeShell.h.

◆ faceNormals

OdGeVector3dArray OdGeShell::faceNormals

An array of faces normal vectors.

Definition at line 128 of file GeShell.h.

◆ faces

OdInt32Array OdGeShell::faces

An array of integer number that defines a list of shell faces. In a face list a particular face is defined be a set of number. The first number contains the number of vertices of the face and its sign indicates if the face is a hole or a regular face: if the face is a hole then its vertices number must be negative. A hole face must be coplanar and entirely in another face (not touching edges). For example, the face array {3,0,2,4,-3,1,0,5} represents two faces. The first is a regular face that consists of three vertices: vertex 0, vertex 2, and vertex 4. The second is the hole face having three vertices: vertex 1, vertex 0, and vertex 5.

Definition at line 78 of file GeShell.h.

◆ faceSelectionMarkers

OdGsMarkerArray OdGeShell::faceSelectionMarkers

An array of faces selection markers.

Definition at line 133 of file GeShell.h.

◆ faceTransparencies

OdCmTransparencyArray OdGeShell::faceTransparencies

An array of faces transparencies.

Definition at line 153 of file GeShell.h.

◆ faceTrueColors

OdCmEntityColorArray OdGeShell::faceTrueColors

An array of faces true colors.

Definition at line 118 of file GeShell.h.

◆ faceVisibilities

OdUInt8Array OdGeShell::faceVisibilities

An array of faces visibilities.

Definition at line 138 of file GeShell.h.

◆ m_nFaceStartIndex

int OdGeShell::m_nFaceStartIndex
protected

Definition at line 56 of file GeShell.h.

◆ textureCoords

OdGePoint3dArray OdGeShell::textureCoords

An array of texture coordinates.

Definition at line 158 of file GeShell.h.

◆ vertexNormals

OdGeVector3dArray OdGeShell::vertexNormals

An array of vertex normal vectors.

Definition at line 163 of file GeShell.h.

◆ vertices

OdGePoint3dArray OdGeShell::vertices

An array of vertices that are used to construct faces of the shell.

Definition at line 70 of file GeShell.h.


The documentation for this class was generated from the following file: