|
shape_doc 0.1
|
#include <face.hpp>
| typedef Seq<Point*>::const_iterator const_iterator |
| const_iterator begin | ( | ) | const [inline] |
| const_iterator end | ( | ) | const [inline] |
| void insert | ( | Point * | p | ) | [inline] |
Definition at line 77 of file face.hpp.
Referenced by voronoi2d< C, V >::run(), semialgebraic2d< C, V >::run(), mesher3d_dual< C, V, Shape, Cell >::run(), and arrangement2d< C, V >::run().
{ m_points<<p; } ;
| bool is_ccw | ( | ) |
Definition at line 187 of file face.hpp.
{
double z(0);
int n=this->size();
if (n < 3)
return(0);
n--;
for (int i=0;i<n;i++)
{
z+= m_points[i ]->x() * m_points[i+1]->y() -
m_points[i+1]->x() * m_points[i ]->y() ;
}
z+= m_points[n]->x() * m_points[0]->y() -
m_points[0]->x() * m_points[n]->y() ;
return (z>0);
}
Refine face.
Definition at line 91 of file face.hpp.
References edge< C, V, POINT >::destination(), and edge< C, V, POINT >::source().
{
foreach( Point * p, m_points)
if ( !equal( a->destination(), p ) &&
!equal( a->source() , p ) )
return p;
std::cout<<" ! not_on(Edge) not found"<<std::endl;
return NULL;};
| Seq<Point*>& points | ( | ) | [inline] |
Definition at line 74 of file face.hpp.
Referenced by use< tpl3d_def >::as_graphic(), and use< tpl3d_def >::print_as_graphic().
{return m_points;}
| void reverse | ( | ) | [inline] |
| void set_index | ( | const int & | i | ) | [inline] |
| unsigned size | ( | void | ) | const [inline] |
Definition at line 73 of file face.hpp.
Referenced by use< tpl3d_def >::as_graphic(), use< tpl3d_def >::print_as_graphic(), voronoi2d< C, V >::run(), semialgebraic2d< C, V >::run(), and arrangement2d< C, V >::run().
{return m_points.size();}