Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
f2ec2d61
Commit
f2ec2d61
authored
Aug 22, 2011
by
Alexander Wiebel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC] corrected (copy and paste error)
parent
8d829cfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/core/graphicsEngine/WTriangleMesh.cpp
src/core/graphicsEngine/WTriangleMesh.cpp
+6
-6
No files found.
src/core/graphicsEngine/WTriangleMesh.cpp
View file @
f2ec2d61
...
...
@@ -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 << "
l
oop subdivision pass 1" << std::endl;
//std::cout << "
L
oop subdivision pass 1" << std::endl;
for
(
size_t
i
=
0
;
i
<
m_numTriVerts
;
++
i
)
{
newVertexPositions
[
i
]
=
loopCalcNewPosition
(
i
);
}
//std::cout << "
l
oop subdivision pass 2" << std::endl;
//std::cout << "
L
oop 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 << "
l
oop subdivision pass 3" << std::endl;
//std::cout << "
L
oop subdivision pass 3" << std::endl;
for
(
size_t
i
=
0
;
i
<
m_numTriFaces
;
++
i
)
{
loopInsertCornerTriangles
(
i
);
}
//std::cout << "
l
oop subdivision pass 4" << std::endl;
//std::cout << "
L
oop subdivision pass 4" << std::endl;
for
(
size_t
i
=
0
;
i
<
m_numTriVerts
;
++
i
)
{
(
*
m_verts
)[
i
]
=
newVertexPositions
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment