CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | List of all members
OdGiVertexData Class Reference

#include <GiGeometry.h>

Inheritance diagram for OdGiVertexData:
OdGiVertexDataStorage

Public Types

enum  MapChannel { kAllChannels = 0 }
 

Public Member Functions

 OdGiVertexData ()
 
void setNormals (const OdGeVector3d *normals)
 
void setOrientationFlag (const OdGiOrientationType orientationType)
 
void setTrueColors (const OdCmEntityColor *colors)
 
void setMappingCoords (MapChannel channel, const OdGePoint3d *coords)
 
const OdGeVector3dnormals () const
 
OdGiOrientationType orientationFlag () const
 
const OdCmEntityColortrueColors () const
 
const OdGePoint3dmappingCoords (MapChannel channel) const
 

Detailed Description

This class contains arrays of vertex attributes for meshes and shells.

Remarks
VertexData objects are optional; they can be optionally passed to OdGiWorldGeometry and OdGiViewportGeometry when using their mesh and shell methods.

Setting an 'improper' size of any array will cause unpredictable or fatal results.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 548 of file GiGeometry.h.

Member Enumeration Documentation

◆ MapChannel

Enumerator
kAllChannels 

Definition at line 562 of file GiGeometry.h.

Constructor & Destructor Documentation

◆ OdGiVertexData()

OdGiVertexData::OdGiVertexData ( )
inline

Definition at line 555 of file GiGeometry.h.

Member Function Documentation

◆ mappingCoords()

const OdGePoint3d* OdGiVertexData::mappingCoords ( MapChannel  channel) const
inline

Returns the array of mapping coordinates used by this object.

Parameters
channel[in] Specifies mapping channel.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.

Definition at line 664 of file GiGeometry.h.

◆ normals()

const OdGeVector3d* OdGiVertexData::normals ( ) const
inline

Returns the array of vertex normal vectors used by this object.

Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.

Definition at line 629 of file GiGeometry.h.

◆ orientationFlag()

OdGiOrientationType OdGiVertexData::orientationFlag ( ) const
inline

Returns the direction of the normal at the vertices that is used by this object.

Remarks
orientationFlag must be one of the following:

Value kOdGiCounterClockwise -1 kOdGiNoOrientation 0 kOdGiClockwise 1

Definition at line 644 of file GiGeometry.h.

◆ setMappingCoords()

void OdGiVertexData::setMappingCoords ( MapChannel  channel,
const OdGePoint3d coords 
)
inline

Sets the mapping coordinates to be used by this object.

Parameters
channel[in] Specifies mapping channel.
coords[in] Array of OdGePoint3d objects.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.

Definition at line 618 of file GiGeometry.h.

◆ setNormals()

void OdGiVertexData::setNormals ( const OdGeVector3d normals)
inline

Sets the vertex normal vectors to be used by this object.

Parameters
normals[in] Array of normal vectors.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.

Definition at line 573 of file GiGeometry.h.

◆ setOrientationFlag()

void OdGiVertexData::setOrientationFlag ( const OdGiOrientationType  orientationType)
inline

Sets the orientation type to be used by this object.

Parameters
orientationFlag[in] Orientation type.
Remarks
The orientation type defines the positive direction of the normal at the vertices.

orientationFlag must be one of the following:

Value kOdGiCounterClockwise -1 kOdGiNoOrientation 0 kOdGiClockwise 1

Definition at line 593 of file GiGeometry.h.

◆ setTrueColors()

void OdGiVertexData::setTrueColors ( const OdCmEntityColor colors)
inline

Sets the vertex colors to be used by this object.

Parameters
colors[in] Array of OdCmEntityColor objects.
Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. An incorrect number of elements will have unpredictable or fatal consequences.

Definition at line 605 of file GiGeometry.h.

◆ trueColors()

const OdCmEntityColor* OdGiVertexData::trueColors ( ) const
inline

Returns the array of vertex colors used by this object.

Remarks
This function does not make a copy of the array, which should have the same number of elements as the mesh or shell with which it is used. Writing beyond the array bounds will have unpredictable or fatal consequences.

Definition at line 653 of file GiGeometry.h.


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