Changeset 13041 for OpenSceneGraph/trunk/src/osgShadow/ConvexPolyhedron.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgShadow/ConvexPolyhedron.cpp
r12292 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 * … … 33 33 #if defined( DEBUG ) || defined( _DEBUG ) || defined( _DEBUG_ ) 34 34 // ConvexPolyhedron may produce tons of warnings when it becomes non convex. 35 // Unfortuantely this condition often happens in daily routine of shadow usage 35 // Unfortuantely this condition often happens in daily routine of shadow usage 36 36 // due precision errors mixed with repeating frustum cuts performed by MinimalShadowClasses. 37 37 // However, in most of above cases this condition is not fatal 38 38 // because polyhedron becomes concave by very small margin (mesuring deep the hole). 39 // Unfortunately warnings are produced even for such small margin cases and can 39 // Unfortunately warnings are produced even for such small margin cases and can 40 40 // easily flood the console. 41 // So I leave MAKE_CHECKS commented out. Its really useful only for a guy who debugs 41 // So I leave MAKE_CHECKS commented out. Its really useful only for a guy who debugs 42 42 // larger concaveness issues which means most developers will want to keep it commented. 43 43 // #define MAKE_CHECKS 1 … … 1616 1616 { 1617 1617 Face & face = createFace(); 1618 char ac[40] = "Side plane from edge extrude "; 1618 char ac[40] = "Side plane from edge extrude "; 1619 1619 sprintf(ac + strlen(ac), "%d", new_face_counter++); 1620 1620 face.name = ac;
