Changeset 10081 for OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfEntity.cpp
 Timestamp:
 04/22/09 18:50:50 (8 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfEntity.cpp
r9993 r10081 197 197 198 198 // We create an anglestep<=theta so that the line's points are evenly distributed around the circle 199 unsigned int numsteps= floor(osg::PI*2/theta);199 unsigned int numsteps=static_cast<unsigned int>(floor(osg::PI*2/theta)); 200 200 if (numsteps<3) numsteps=3; // Sanity check: minimal representation of a circle is a tri 201 201 double anglestep=osg::PI*2/numsteps;