28 #ifndef TRIANGULATION_H
29 #define TRIANGULATION_H
53 typedef CGAL::Simple_cartesian<Real>::Segment_2
SegmentS2;
97 tri->resize(0); tri->reserve( n-2);
107 tri->push_back(
Triangle( v1->id(), it->id(), v3->id()));
167 if ( u!=
i && u!=j && v!=
i && v!=j &&
std::list< Node > Node_list
Triangulation()
A constructor.
bool is_diagonalie(Node_const_iterator u, Node_const_iterator v) const
Node_const_iterator get_next(Node_const_iterator i) const
bool in_cone(Node_const_iterator u, Node_const_iterator v) const
void triangulate(const Point_2 *ps, int n, Connectivity *tri)
Main entry for triangulation.
Node_list::const_iterator Node_const_iterator
CGAL::Simple_cartesian< Real >::Segment_2 SegmentS2
bool do_intersect(const Segment_2< R > &seg1, const Segment_2< R > &seg2)
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
const PointS2 & get_point(const Node &v) const
#define RFC_END_NAME_SPACE
bool rightturn(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)
Node_const_iterator get_prev(Node_const_iterator i) const
Three_tuple< int > Triangle
Connectivity for a triangle.
#define RFC_BEGIN_NAME_SPACE
Triangulating a convex polygon by ear-removal.
bool is_diagonal(Node_const_iterator u, Node_const_iterator v) const
CGAL::PointS2< Real > PointS2
Node_iterator get_prev(Node_iterator i)
Node_iterator get_next(Node_iterator i)
bool leftturn(const Point_2< R > &p, const Point_2< R > &q, const Point_2< R > &r)
Node_list::iterator Node_iterator
std::vector< Triangle > Connectivity
Element connectivity table.
Node(short int i)
A constructor.