- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgUtil/DelaunayTriangulator
r11704 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 26 26 #include <osgUtil/Export> 27 27 28 namespace osgUtil 28 namespace osgUtil 29 29 { 30 30 … … 44 44 DelaunayConstraint() { } 45 45 46 /** Each primitiveset is a list of vertices which may be closed by joining up to its start 46 /** Each primitiveset is a list of vertices which may be closed by joining up to its start 47 47 * to make a loop. Constraints should be simple lines, not crossing themselves. 48 48 * Constraints which cross other constraints can cause difficulties - see the example … … 57 57 /** Get the filling primitive. One: 58 58 * triangulate must have bneen called and 59 * two: triangle list is filled when 59 * two: triangle list is filled when 60 60 * DelaunayTriangulator::removeInternalTriangles is called. 61 * These return the triangles removed from the delaunay triangulation by 61 * These return the triangles removed from the delaunay triangulation by 62 62 * DelaunayTriangulator::removeInternalTriangles. */ 63 63 inline const osg::DrawElementsUInt *getTriangles() const { return prim_tris_.get(); } … … 82 82 */ 83 83 void removeVerticesInside(const DelaunayConstraint *dco); 84 84 85 85 /** return winding number as a float of loop around testpoint; may use multiple loops 86 86 * does not reject points on the edge or very very close to the edge */ … … 151 151 /** Get the generated primitive (call triangulate() first). */ 152 152 inline osg::DrawElementsUInt *getTriangles() { return prim_tris_.get(); } 153 153 154 154 /** remove the triangles internal to the constraint loops. 155 155 * (Line strips cannot remove any internal triangles). */
