27 #include "WVertexProperty.h"
42 for (
size_t index = 0; index <
m_newVertices.size(); index++ )
100 for (
size_t index = 0; index < size; index++ )
111 for (
size_t index = 0; index < size; index++ )
115 for (
size_t popIdx = index; popIdx < size-1; popIdx++ )
130 if (
id == triangleID )
138 while ( index < this->
m_newVertices.size() && this->m_newVertices[index]->getToID() != toID )
153 for (
size_t index = 0; index < this->
m_newVertices.size(); index++ )
161 for (
unsigned int index = 0; index < size; index++ )
186 for (
size_t index = 0; index <
getValence(); index++ )
size_t getTriangleCount()
Returns the attached triangle count to the current vertex.
vector< size_t > m_stencilOnNeighbours
List that keeps neighbour vertices IDs sorted by the circular order.
void setSumNeighbourDistance(float sumNeighbourDistance)
Sets the summed neighbor distance within the current vertex.
std::vector< WNewVertex * > getNewVerticesToHigherNeighborID()
Returns the properties of new registered vertices of the current vertex.
bool newVertexExists(size_t toID)
Checks whether the properties of a new vertex exists between the current vertex and toID.
void attachNewVertex(size_t toID)
Attachs properties of a new vertex on a line which lies between two original vertices.
void setMaxNeighbourDistance(float maxNeighbourDistance)
Sets maximal neighbor distance within the current vertex.
float m_maxNeighbourDistance
Maximal Neighbor vertex distance to the current vertex.
vector< size_t > getAttachedTriangles()
Get all triangle IDs attached to the current vertex.
bool containsTriangle(size_t triangleID)
Returns true if a triangle of the triangleID is connected to the vertex.
WNewVertex * getNewVertexProperty(size_t toID)
Returns properties of the new vertex between the current vertex ID and toID.
int getStencilNeighbourIndex(size_t neighbourID)
Returns the Stencil neighbor index of a particular vertex ID.
float getMaxNeighbourDistance()
Returns the maximal neighbor distance within the current vertex.
void setBoundClass(int boundCountClass)
Sets the bound count class of the stencil's center point.
size_t getStencilNeighbourID(size_t index)
Returns a neighbor ID within the stencil by the index.
void addStencilNeighbourIDToBack(size_t stencilNeighbourID)
Pushs a stencil neighbour vertex ID after the last Item of the list.
void attachTriangle(size_t triangleID)
Registers a triangle to the current vertex.
std::vector< WNewVertex * > m_newVertices
List of attached new vertices of the current vertex.
virtual ~WVertexProperty()
Destroys the vertex property object.
float m_sumNeighbourDistance
Sum of all Neighbor vertex distances to the current vertex.
void insertStencilNeighbourIDToFront(size_t stencilNeighbourID)
Pushes a stencil neighbor vertex ID before the first Item of the list.
size_t getValence()
Returns the Neighbor vertex count of the current vertex.
std::vector< size_t > m_attachedTriangle
List of attached triangles to the current vertex.
void detachTriangle(size_t triangleID)
Unregisters a triangle to the current vertex.
WVertexProperty()
Initializes a vertex property object and sets settings to defaults.
float getSumNeighbourDistance()
Returns summed neighbor distance within the current vertex.
int m_boundClass
Depicts the Vertex' kind of bound iit lies on <0: Extraordinary case.
int getBoundClass()
Returns the bound count class of the stencil's center point.
Depicts a point that is subdivided on a line between two vertices.