From 3256d9517c08e551d2aa61e6cb25520964204fc3 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 18 Mar 2010 13:25:20 +0000 Subject: [PATCH] updated to the new definition of mesh type [with UsedTypes] --- apps/tridecimator/tridecimator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/tridecimator/tridecimator.cpp b/apps/tridecimator/tridecimator.cpp index a868ca52..6a530fe2 100644 --- a/apps/tridecimator/tridecimator.cpp +++ b/apps/tridecimator/tridecimator.cpp @@ -49,8 +49,9 @@ class MyVertex; class MyEdge; class MyFace; +struct MyUsedTypes: public UsedTypes::AsVertexType,Use::AsEdgeType,Use::AsFaceType>{}; -class MyVertex : public VertexSimp2< MyVertex, MyEdge, MyFace, +class MyVertex : public Vertex< MyUsedTypes, vertex::VFAdj, vertex::Coord3f, vertex::Normal3f, @@ -63,7 +64,7 @@ private: }; class DummyType; -class MyEdge : public EdgeSimp2 { +class MyEdge : public Edge { public: inline MyEdge() {}; inline MyEdge( MyVertex * v0, MyVertex * v1){V(0) = v0; V(1) = v1; }; @@ -76,7 +77,7 @@ public: }; -class MyFace : public FaceSimp2 < MyVertex, MyEdge, MyFace, +class MyFace : public Face< MyUsedTypes, face::VFAdj, face::VertexRef, face::BitFlags > {};