96 void CalcVertexNormal(
int aIndex, std::list< FACET* >& aFacetList,
float aCreaseAngle );
124 bool GetData( std::vector< WRLVEC3F >& aVertexList, std::vector< WRLVEC3F >& aNormalsList,
125 std::vector< SGCOLOR >& aColorsList,
WRL1_ORDER aVertexOrder );
137 void CollectVertices( std::vector< std::list< FACET* > >& aFacetList );
150 float aCreaseLimit = 0.74317,
bool isVRML2 =
false );
SGNODE * CalcShape(SGNODE *aParent, SGNODE *aColor, WRL1_ORDER aVertexOrder, float aCreaseLimit=0.74317, bool isVRML2=false)
void AddVertex(WRLVEC3F &aVertex, int aIndex)
Function AddVertex adds the vertex and its associated index to the internal list of polygon vertices.
void Renormalize(float aMaxValue)
void CollectVertices(std::vector< std::list< FACET * > > &aFacetList)
Function CollectVertices adds a pointer to this object at each position within aFacetList referenced ...
The base class of all Scene Graph nodes.
collects header files for all SG* wrappers and the API
void AddColor(const SGCOLOR &aColor)
Function AddColor adds the given RGB color to the internal list.
bool GetWeightedNormal(int aIndex, WRLVEC3F &aNorm)
Function GetWeightedNormal retrieves the angle weighted normal for the given vertex index.
bool GetFaceNormal(WRLVEC3F &aNorm)
Function GetFaceNormal retrieves the normal for this facet.
An abstract shape on 2D plane.
std::vector< SGCOLOR > colors
std::vector< WRLVEC3F > norms
void CalcVertexNormal(int aIndex, std::list< FACET * > &aFacetList, float aCreaseAngle)
Function CalcVertexNormal calculates the weighted normal for the given vertex.
std::vector< WRLVEC3F > vertices
std::list< FACET * > facets
float CalcFaceNormal()
Function CalcFaceNormal calculates the normal to the facet assuming a CCW orientation and performs th...
bool GetData(std::vector< WRLVEC3F > &aVertexList, std::vector< WRLVEC3F > &aNormalsList, std::vector< SGCOLOR > &aColorsList, WRL1_ORDER aVertexOrder)
Function GetData packages the internal data as triangles with corresponding per-vertex normals.
std::vector< WRLVEC3F > vnweight
std::vector< int > indices
declares some compound types used for VRML