Changeset 295 for osgVisual/trunk/src/util
- Timestamp:
- Jun 6, 2011, 11:16:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/util/visual_util.cpp
r293 r295 571 571 } 572 572 573 void util::AddCylinderBetweenPoints(osg::Vec3d StartPoint, osg::Vec3d EndPoint, float radius, float length,osg::Vec4d CylinderColor, osg::Group *pAddToThisGroup)573 void util::AddCylinderBetweenPoints(osg::Vec3d StartPoint, osg::Vec3d EndPoint, float radius, osg::Vec4d CylinderColor, osg::Group *pAddToThisGroup) 574 574 { 575 575 osg::ref_ptr<osg::Geode> geode = new osg::Geode; … … 580 580 osg::ref_ptr<osg::Material> pMaterial; 581 581 582 //height = (StartPoint-EndPoint).length(); 583 height = length; 582 height = (StartPoint-EndPoint).length(); 584 583 center = osg::Vec3( (StartPoint.x() + EndPoint.x()) / 2, (StartPoint.y() + EndPoint.y()) / 2, (StartPoint.z() + EndPoint.z()) / 2); 585 584
Note: See TracChangeset
for help on using the changeset viewer.