NL3D::CMRMEdge Struct Reference

#include <mrm_internal.h>

Inheritance diagram for NL3D::CMRMEdge:

NL3D::CMRMEdgeFace

Detailed Description

An internal mesh edge Index representation for MRM building.
Author:
Lionel Berenguier

Nevrax France

Date:
2000

Definition at line 149 of file mrm_internal.h.

Public Member Functions

 CMRMEdge (sint a, sint b)
 CMRMEdge ()
bool operator< (const CMRMEdge &o) const
bool operator== (const CMRMEdge &o) const

Data Fields

sint v0
sint v1


Constructor & Destructor Documentation

NL3D::CMRMEdge::CMRMEdge  )  [inline]
 

Definition at line 152 of file mrm_internal.h.

00152 {}

NL3D::CMRMEdge::CMRMEdge sint  a,
sint  b
[inline]
 

Definition at line 153 of file mrm_internal.h.

References sint, v0, and v1.

00153 {v0= a; v1=b;}


Member Function Documentation

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

Definition at line 159 of file mrm_internal.h.

References min, sint, v0, and 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]
 

Definition at line 154 of file mrm_internal.h.

References v0, and 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

sint NL3D::CMRMEdge::v0
 

Definition at line 151 of file mrm_internal.h.

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

sint NL3D::CMRMEdge::v1
 

Definition at line 151 of file mrm_internal.h.

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


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