Commit f2ec2d61 authored by Alexander Wiebel's avatar Alexander Wiebel

[DOC] corrected (copy and paste error)

parent 8d829cfc
......@@ -196,7 +196,7 @@ osg::Vec3 WTriangleMesh::getVertex( size_t index ) const
osg::Vec4 WTriangleMesh::getVertColor( size_t index ) const
{
WAssert( index < m_countVerts, "get vertex: index out of range" );
WAssert( index < m_countVerts, "get vertex color: index out of range" );
return ( *m_vertColors )[index];
}
......@@ -208,7 +208,7 @@ WPosition WTriangleMesh::getVertexAsPosition( size_t index ) const
WPosition WTriangleMesh::getNormalAsPosition( size_t index ) const
{
WAssert( index < m_countVerts, "get vertex as position: index out of range" );
WAssert( index < m_countVerts, "get normal as position: index out of range" );
return WPosition( ( *m_vertNormals )[index][0], ( *m_vertNormals )[index][1], ( *m_vertNormals )[index][2] );
}
......@@ -382,13 +382,13 @@ void WTriangleMesh::doLoopSubD()
osg::Vec3* newVertexPositions = new osg::Vec3[m_numTriVerts];
//std::cout << "loop subdivision pass 1" << std::endl;
//std::cout << "Loop subdivision pass 1" << std::endl;
for( size_t i = 0; i < m_numTriVerts; ++i )
{
newVertexPositions[i] = loopCalcNewPosition( i );
}
//std::cout << "loop subdivision pass 2" << std::endl;
//std::cout << "Loop subdivision pass 2" << std::endl;
for( size_t i = 0; i < m_numTriFaces; ++i )
{
loopInsertCenterTriangle( i );
......@@ -397,13 +397,13 @@ void WTriangleMesh::doLoopSubD()
std::vector< size_t >v;
m_vertexIsInTriangle.resize( ( *m_verts ).size(), v );
//std::cout << "loop subdivision pass 3" << std::endl;
//std::cout << "Loop subdivision pass 3" << std::endl;
for( size_t i = 0; i < m_numTriFaces; ++i )
{
loopInsertCornerTriangles( i );
}
//std::cout << "loop subdivision pass 4" << std::endl;
//std::cout << "Loop subdivision pass 4" << std::endl;
for( size_t i = 0; i < m_numTriVerts; ++i )
{
( *m_verts )[i] = newVertexPositions[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment