proj home

Files   Classes   Functions   Hierarchy  

maxEdgeLength Class Reference

#include <d3tess.h>

Collaboration diagram for maxEdgeLength:

List of all members.

Public Member Functions

 maxEdgeLength (d3tess &_tess, double const _delta)
bool const eval (uintc s, uintc j)


Detailed Description

Definition at line 234 of file d3tess.h.


Constructor & Destructor Documentation

maxEdgeLength::maxEdgeLength ( d3tess _tess,
double const   _delta 
) [inline]

Definition at line 242 of file d3tess.h.

00243     : tess(_tess), vi(tess.vi), pt(tess.pt), delta(_delta) {}


Member Function Documentation

bool const maxEdgeLength::eval ( uintc  s,
uintc  j 
) [inline]

Definition at line 245 of file d3tess.h.

References simplexD2linked::pi, d3tess::splitmidpoint1D(), point3< T >::x, and point3< T >::y.

00246   {
00247     assert(j<3);
00248 
00249     simplexD2linked * x = & vi[s];
00250     pt3c & A(pt[ x->pi[(j+1)%3] ]);
00251     pt3c & B(pt[ x->pi[(j+2)%3] ]);
00252     if ( (A.x-B.x)*(A.x-B.x) + (A.y-B.y)*(A.y-B.y) > delta )
00253     {
00254       tess.splitmidpoint1D(s,x->pi[j]);
00255       return true;
00256     }
00257 
00258     return false;
00259   }


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:04 2011 for Chelton Evans Source by  doxygen 1.5.8