fix code snippets
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1243 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -17,7 +17,6 @@ data and the functions in the vertex itself
|
|||||||
\dontinclude 07-traits/smooth.cc
|
\dontinclude 07-traits/smooth.cc
|
||||||
\skipline MyTraits
|
\skipline MyTraits
|
||||||
\until };
|
\until };
|
||||||
\until };
|
|
||||||
|
|
||||||
Note the definition of the vertex entity. We use the supplied define
|
Note the definition of the vertex entity. We use the supplied define
|
||||||
\c VertexTraits (which resolves in a rather inconvenient template
|
\c VertexTraits (which resolves in a rather inconvenient template
|
||||||
@@ -29,11 +28,11 @@ the get/set-method pair to access the new member.
|
|||||||
As before we compute in a first loop the barycenters for all vertices
|
As before we compute in a first loop the barycenters for all vertices
|
||||||
and store the information at the vertices
|
and store the information at the vertices
|
||||||
|
|
||||||
\skipline mesh.data(v_it).set_cog
|
\skipline mesh.data(*v_it).set_cog
|
||||||
|
|
||||||
In the second pass we set the new position of each vertex
|
In the second pass we set the new position of each vertex
|
||||||
|
|
||||||
\skipline mesh.data(v_it).cog
|
\skipline mesh.data(*v_it).cog
|
||||||
|
|
||||||
It looks neat, but on the other hand we can't remove the data anymore
|
It looks neat, but on the other hand we can't remove the data anymore
|
||||||
as we could do with properties! By using traits one creates a 'static'
|
as we could do with properties! By using traits one creates a 'static'
|
||||||
|
|||||||
Reference in New Issue
Block a user