NL3D::CMRMEdgeFace Struct Reference

#include <mrm_internal.h>

Inheritance diagram for NL3D::CMRMEdgeFace:

NL3D::CMRMEdge

Detailed Description

A tuple Edge/Face.
Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 182 of file mrm_internal.h.

Public Member Functions

 CMRMEdgeFace (const CMRMEdge &e, CMRMFaceBuild *f)
 CMRMEdgeFace (sint a, sint b, CMRMFaceBuild *f)
 CMRMEdgeFace ()
bool operator< (const CMRMEdge &o) const
bool operator== (const CMRMEdge &o) const

Data Fields

CMRMFaceBuildFace
sint v0
sint v1


Constructor & Destructor Documentation

NL3D::CMRMEdgeFace::CMRMEdgeFace  ) 
 

NL3D::CMRMEdgeFace::CMRMEdgeFace sint  a,
sint  b,
CMRMFaceBuild f
[inline]
 

Definition at line 186 of file mrm_internal.h.

References sint.

00187         {
00188                 v0=a; v1=b;
00189                 Face= f;
00190         }

NL3D::CMRMEdgeFace::CMRMEdgeFace const CMRMEdge e,
CMRMFaceBuild f
[inline]
 

Definition at line 191 of file mrm_internal.h.

00191                                                           : CMRMEdge(e)
00192         {
00193                 Face= f;
00194         }


Member Function Documentation

bool NL3D::CMRMEdge::operator< const CMRMEdge o  )  const [inline, inherited]
 

Definition at line 159 of file mrm_internal.h.

References min, sint, NL3D::CMRMEdge::v0, and NL3D::CMRMEdge::v1.

00160         {
00161                 // Order means nothing  ( (v0,v1) == (v1,v0) ).... Kick it.
00162                 sint max0= std::max(v0,v1);
00163                 sint min0= std::min(v0,v1);
00164                 sint max1= std::max(o.v0,o.v1);
00165                 sint min1= std::min(o.v0,o.v1);
00166                 if(max0!=max1)
00167                         return max0<max1;
00168                 else
00169                         return min0<min1;
00170         }

bool NL3D::CMRMEdge::operator== const CMRMEdge o  )  const [inline, inherited]
 

Definition at line 154 of file mrm_internal.h.

References NL3D::CMRMEdge::v0, and NL3D::CMRMEdge::v1.

00155         {
00156                 // Order means nothing  ( (v0,v1) == (v1,v0) ).... Kick it.
00157                 return (v0==o.v0 && v1==o.v1) || (v0==o.v1 && v1==o.v0);
00158         }


Field Documentation

CMRMFaceBuild* NL3D::CMRMEdgeFace::Face
 

Definition at line 184 of file mrm_internal.h.

sint NL3D::CMRMEdge::v0 [inherited]
 

Definition at line 151 of file mrm_internal.h.

Referenced by NL3D::CMRMEdge::CMRMEdge(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::collapseEdges(), NL3D::CMRMBuilder::computeEdgeCost(), NL3D::CMRMBuilder::edgeContinue(), NL3D::CMRMBuilder::edgeNearUniqueMatFace(), NL3D::CMRMFaceBuild::getAssociatedEdge(), NL3D::CMRMEdge::operator<(), and NL3D::CMRMEdge::operator==().

sint NL3D::CMRMEdge::v1 [inherited]
 

Definition at line 151 of file mrm_internal.h.

Referenced by NL3D::CMRMEdge::CMRMEdge(), NL3D::CMRMBuilder::collapseEdge(), NL3D::CMRMBuilder::collapseEdges(), NL3D::CMRMBuilder::computeEdgeCost(), NL3D::CMRMBuilder::edgeContinue(), NL3D::CMRMBuilder::edgeNearUniqueMatFace(), NL3D::CMRMFaceBuild::getAssociatedEdge(), NL3D::CMRMEdge::operator<(), and NL3D::CMRMEdge::operator==().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 06:56:49 2004 for NeL by doxygen 1.3.6