From 4be15d81cd7019671a2759652fe5440b97f1927d Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 14 Oct 2005 12:34:55 +0000 Subject: [PATCH] Added ordered constructor that build a edge with unique ordering among vertices (useful for edge-collapse simplification) --- vcg/simplex/edge/base.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcg/simplex/edge/base.h b/vcg/simplex/edge/base.h index cdbd07bc..817c6bd1 100644 --- a/vcg/simplex/edge/base.h +++ b/vcg/simplex/edge/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2005/10/01 09:22:51 cignoni +Major rewriting of the whole class edge. Removed default flags and nonsense attibutes. Given consistent naming to defines. + Revision 1.7 2005/07/15 15:45:51 ganovelli template parametere Scalar removed @@ -81,6 +84,12 @@ public: inline EDGE_TYPE(VertexType* v0,VertexType* v1){v[0]=v0;v[1]=v1;} + static inline EDGE_TYPE OrderedEdge(VertexType* v0,VertexType* v1){ + if(v0