#include <face.hpp>
Definition at line 53 of file face.hpp.
typedef Seq<Point*>::const_iterator const_iterator |
const_iterator begin | ( | ) | const [inline] |
Definition at line 70 of file face.hpp.
References Seq< C, R >::begin().
const_iterator end | ( | ) | const [inline] |
Definition at line 71 of file face.hpp.
References Seq< C, R >::end().
void insert | ( | Point * | p | ) | [inline] |
Definition at line 77 of file face.hpp.
Referenced by voronoi2dimpl< C, V >::run(), voronoi2d< C, V >::run(), semialgebraic2d< C, V >::run(), and arrangement2d< C, V >::run().
bool is_ccw | ( | ) | [inline] |
Definition at line 187 of file face.hpp.
References face< C, V, POINT >::size().
00188 { 00189 double z(0); 00190 int n=this->size(); 00191 00192 if (n < 3) 00193 return(0); 00194 n--; 00195 for (int i=0;i<n;i++) 00196 { 00197 z+= m_points[i ]->x() * m_points[i+1]->y() - 00198 m_points[i+1]->x() * m_points[i ]->y() ; 00199 } 00200 z+= m_points[n]->x() * m_points[0]->y() - 00201 m_points[0]->x() * m_points[n]->y() ; 00202 00203 return (z>0); 00204 }
Refine face.
Definition at line 91 of file face.hpp.
References edge< C, V, POINT >::destination(), and edge< C, V, POINT >::source().
00092 { 00093 foreach( Point * p, m_points) 00094 if ( !equal( a->destination(), p ) && 00095 !equal( a->source() , p ) ) 00096 return p; 00097 std::cout<<" ! not_on(Edge) not found"<<std::endl; 00098 return NULL;};
Point* operator[] | ( | int | i | ) | [inline] |
Point* points | ( | int | i | ) | [inline] |
Definition at line 74 of file face.hpp.
Referenced by use< tpl3d_def >::print_as_graphic().
void push_vertex | ( | Point * | p | ) | [inline] |
void reverse | ( | ) | [inline] |
void set_index | ( | const int & | i | ) | [inline] |
Definition at line 80 of file face.hpp.
Referenced by voronoi2dimpl< C, V >::run(), and voronoi2d< C, V >::run().
unsigned size | ( | void | ) | const [inline] |
Definition at line 73 of file face.hpp.
References Seq< C, R >::size().
Referenced by face< C, V, POINT >::is_ccw(), and use< tpl3d_def >::print_as_graphic().