CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
FacetModeler::Vertex Class Reference

#include <FMMdlVertex.h>

Inheritance diagram for FacetModeler::Vertex:
FacetModeler::Entity

Public Member Functions

 Vertex (const OdGePoint3d &ptPoint, Body *pBody)
 
const OdGePoint3dpoint () const
 
Vertexprev () const
 
Vertexnext () const
 
void setPoint (const OdGePoint3d &ptPoint)
 
void addNext (Vertex *pNext)
 
void set (Vertex *pPrev, Vertex *pNext)
 
void setNext (Vertex *pNext)
 
void setPrev (Vertex *pPrev)
 
bool at (const Surface *pSurface) const
 
void normal (const Face &atF, OdGeVector3d &normal) const
 
void addSurfaceData (Surface *pSurface)
 
void removeSurfaceData (Surface *pSurface)
 
 ~Vertex ()
 
- Public Member Functions inherited from FacetModeler::Entity
 Entity ()
 
 Entity (const Entity &ent)
 
Entityoperator= (const Entity &entity)
 
OdUInt32 flags () const
 
void setFlags (OdUInt32 iFlags)
 
bool isFlagOn (OdUInt32 iFlag) const
 
void setIsFlagOn (OdUInt32 iFlag, bool bOn)
 
TagType tag () const
 
void setTag (TagType nTag)
 
virtual ~Entity ()
 

Friends

class Body
 
class BodyImpl
 
class BodyCustom
 

Detailed Description

Represents facet body vertex objects.

Definition at line 37 of file FMMdlVertex.h.

Constructor & Destructor Documentation

◆ Vertex()

FacetModeler::Vertex::Vertex ( const OdGePoint3d ptPoint,
Body pBody 
)

Constructor. Creates a vertex with the specified point position and owner body.

Parameters
ptPoint[in] Vertex point coordinates.
pBody[in] Pointer to the body to which the vertex will be added.

◆ ~Vertex()

FacetModeler::Vertex::~Vertex ( )

Destructor.

Member Function Documentation

◆ addNext()

void FacetModeler::Vertex::addNext ( Vertex pNext)

Adds a new vertex to the bidirectional list.

Parameters
pNext[in/out] Vertex to add.

◆ addSurfaceData()

void FacetModeler::Vertex::addSurfaceData ( Surface pSurface)

Adds new surface data to this vertex object.

Parameters
pSurface[in] The surface data to add.

◆ at()

bool FacetModeler::Vertex::at ( const Surface pSurface) const

Checks whether the specified surface owns this vertex.

Parameters
pSurface[in] Surface for checking.
Returns
true if the specified surface owns this vertex, false otherwise.

◆ next()

Vertex * FacetModeler::Vertex::next ( ) const

Gets the next vertex in the body.

Returns
The next vertex in the body as an OdGePoint3d object.

◆ normal()

void FacetModeler::Vertex::normal ( const Face atF,
OdGeVector3d normal 
) const

Gets the normal vector at this vertex on the specified face.

Parameters
atF[in] Face for normal calculation.
normal[out] Resulting normal as OdGeVector3d.

◆ point()

const OdGePoint3d & FacetModeler::Vertex::point ( ) const

Gets point coordinates of the vertex.

Returns
Vertex position as an OdGePoint3d object.

◆ prev()

Vertex * FacetModeler::Vertex::prev ( ) const

Gets the previous vertex in the body.

Returns
The previous vertex in the body as an OdGePoint3d object.

◆ removeSurfaceData()

void FacetModeler::Vertex::removeSurfaceData ( Surface pSurface)

Removes existing surface data.

Parameters
pSurface[in] The surface data to remove.

◆ set()

void FacetModeler::Vertex::set ( Vertex pPrev,
Vertex pNext 
)

Sets pointers to the previous and next vertices.

Parameters
pPrev[in] Previous vertex to set.
pNext[in] Next vertex to set.

◆ setNext()

void FacetModeler::Vertex::setNext ( Vertex pNext)

Sets the pointer to the next vertex.

Parameters
pNext[in] Next vertex to set.

◆ setPoint()

void FacetModeler::Vertex::setPoint ( const OdGePoint3d ptPoint)

Sets the vertex position to the specified point.

Parameters
ptPoint[in] New vertex position to set.

◆ setPrev()

void FacetModeler::Vertex::setPrev ( Vertex pPrev)

Sets the pointer to the previous vertex.

Parameters
pPrev[in] Next vertex to set.

Friends And Related Function Documentation

◆ Body

friend class Body
friend

Definition at line 176 of file FMMdlVertex.h.

◆ BodyCustom

friend class BodyCustom
friend

Definition at line 178 of file FMMdlVertex.h.

◆ BodyImpl

friend class BodyImpl
friend

Definition at line 177 of file FMMdlVertex.h.


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