2 #include <vcg/simplex/vertex/base.h>
3 #include <vcg/simplex/vertex/component_ocf.h>
4 #include <vcg/simplex/face/base.h>
5 #include <vcg/simplex/face/component.h>
7 #include <vcg/complex/complex.h>
9 #include<vcg/complex/algorithms/create/platonic.h>
14 class MyVertex:
public vcg::VertexSimp2<MyVertex,MyEdge,MyFace, vcg::vert::InfoOcf,vcg::vert::Coord3d, vcg::vert::Normal3fOcf>{};
15 class MyFace:
public vcg::FaceSimp2<MyVertex,MyEdge,MyFace,vcg::face::VertexRef>{};
16 class MyMesh:
public vcg::tri::TriMesh< vcg::vert::vector_ocf<MyVertex>, std::vector<MyFace> >{};
22 MyMesh::VertexIterator vi = m.vert.begin();
24 (*vi).N() = vcg::Point3f(1.0,1.0,1.0);
25 m.vert.EnableNormal();
26 (*vi).N() = vcg::Point3f(1.0,1.0,1.0);
27 m.vert.DisableNormal();
29 (*vi).N() = vcg::Point3f(1.0,1.0,1.0);