sch::S_PolyhedronVertex Class Reference

#include <sch/S_Polyhedron/S_PolyhedronVertex.h>

Inheritance diagram for sch::S_PolyhedronVertex:
Collaboration diagram for sch::S_PolyhedronVertex:

Public Member Functions

SCH_API S_PolyhedronVertex (void)
 
virtual SCH_API ~S_PolyhedronVertex (void)
 
SCH_API void addNeighbor (S_PolyhedronVertex *)
 
SCH_API Scalar supportH (const Vector3 &direction) const
 
SCH_CORE_DEPRECATED SCH_API void setCordinates (const Vector3 &v)
 
SCH_API void setCoordinates (const Vector3 &v)
 
SCH_CORE_DEPRECATED SCH_API void setCordinates (const Scalar &x, const Scalar &y, const Scalar &z)
 
SCH_API void setCoordinates (const Scalar &x, const Scalar &y, const Scalar &z)
 
SCH_CORE_DEPRECATED const SCH_API Vector3getCordinates () const
 
const SCH_API Vector3getCoordinates () const
 
virtual SCH_API S_PolyhedronVertexclone ()
 Gives a copy of the current vertex, without the neighbors array, keeping just the cordinates and the number. More...
 
SCH_API void clearNeighbors ()
 clears the Neighbors More...
 
virtual SCH_API bool isHere (const Vector3 &direction, const Scalar &currentsupportH)
 checks if this is the support point of the polyhedron in some given direction More...
 
virtual SCH_API bool isHere (const Vector3 &direction)
 checks if this is the support point of the polyhedron in some given direction More...
 
SCH_API void updateFastArrays ()
 updates fast access neighbors array, must be called at each neighbors modification More...
 
SCH_API void setNumber (unsigned int)
 sets the number of the vertex in the polyhedron More...
 
SCH_API unsigned int getNumber () const
 gets the number of the vertex in the polyhedron More...
 
SCH_API S_PolyhedronVertexgetNextVertex () const
 gets the next vertex in a support point search More...
 
SCH_API Scalar getNextVertexH () const
 gets the next vertex support height More...
 
SCH_API unsigned getNumNeighbors () const
 gets the number of neighbors More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Constructor & Destructor Documentation

◆ S_PolyhedronVertex()

SCH_API sch::S_PolyhedronVertex::S_PolyhedronVertex ( void  )

◆ ~S_PolyhedronVertex()

virtual SCH_API sch::S_PolyhedronVertex::~S_PolyhedronVertex ( void  )
virtual

Member Function Documentation

◆ addNeighbor()

SCH_API void sch::S_PolyhedronVertex::addNeighbor ( S_PolyhedronVertex )

◆ clearNeighbors()

SCH_API void sch::S_PolyhedronVertex::clearNeighbors ( )

clears the Neighbors

◆ clone()

virtual SCH_API S_PolyhedronVertex* sch::S_PolyhedronVertex::clone ( )
virtual

Gives a copy of the current vertex, without the neighbors array, keeping just the cordinates and the number.

◆ getCoordinates()

const SCH_API Vector3& sch::S_PolyhedronVertex::getCoordinates ( ) const

◆ getCordinates()

SCH_CORE_DEPRECATED const SCH_API Vector3& sch::S_PolyhedronVertex::getCordinates ( ) const

◆ getNextVertex()

SCH_API S_PolyhedronVertex* sch::S_PolyhedronVertex::getNextVertex ( ) const

gets the next vertex in a support point search

◆ getNextVertexH()

SCH_API Scalar sch::S_PolyhedronVertex::getNextVertexH ( ) const

gets the next vertex support height

◆ getNumber()

unsigned int S_PolyhedronVertex::getNumber ( ) const
inline

gets the number of the vertex in the polyhedron

◆ getNumNeighbors()

SCH_API unsigned sch::S_PolyhedronVertex::getNumNeighbors ( ) const

gets the number of neighbors

◆ isHere() [1/2]

virtual SCH_API bool sch::S_PolyhedronVertex::isHere ( const Vector3 direction)
virtual

checks if this is the support point of the polyhedron in some given direction

Parameters
directionthe direction vector
Returns
returns a boolean answer and stores the next vertex and its support height in case it is not the support

◆ isHere() [2/2]

virtual SCH_API bool sch::S_PolyhedronVertex::isHere ( const Vector3 direction,
const Scalar currentsupportH 
)
virtual

checks if this is the support point of the polyhedron in some given direction

Parameters
directionthe direction vector
cuurentsupportH,isthe support height of this points, usually given by a neighbor
Returns
returns a boolean answer and stores the next vertex and its support height in case it is not the support

◆ serialize()

template<class Archive >
void sch::S_PolyhedronVertex::serialize ( Archive &  ar,
const unsigned int   
)
inline

◆ setCoordinates() [1/2]

SCH_API void sch::S_PolyhedronVertex::setCoordinates ( const Scalar x,
const Scalar y,
const Scalar z 
)

◆ setCoordinates() [2/2]

SCH_API void sch::S_PolyhedronVertex::setCoordinates ( const Vector3 v)

◆ setCordinates() [1/2]

SCH_CORE_DEPRECATED SCH_API void sch::S_PolyhedronVertex::setCordinates ( const Scalar x,
const Scalar y,
const Scalar z 
)

◆ setCordinates() [2/2]

SCH_CORE_DEPRECATED SCH_API void sch::S_PolyhedronVertex::setCordinates ( const Vector3 v)

◆ setNumber()

SCH_API void sch::S_PolyhedronVertex::setNumber ( unsigned int  )

sets the number of the vertex in the polyhedron

◆ supportH()

SCH_API Scalar sch::S_PolyhedronVertex::supportH ( const Vector3 direction) const

◆ updateFastArrays()

SCH_API void sch::S_PolyhedronVertex::updateFastArrays ( )

updates fast access neighbors array, must be called at each neighbors modification


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