Ignore:
Timestamp:
Jun 6, 2011, 11:16:54 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/util/visual_util.cpp

    r293 r295  
    571571}
    572572
    573 void util::AddCylinderBetweenPoints(osg::Vec3d StartPoint, osg::Vec3d EndPoint, float radius, float length, osg::Vec4d CylinderColor, osg::Group *pAddToThisGroup)
     573void util::AddCylinderBetweenPoints(osg::Vec3d StartPoint, osg::Vec3d EndPoint, float radius, osg::Vec4d CylinderColor, osg::Group *pAddToThisGroup)
    574574{
    575575        osg::ref_ptr<osg::Geode> geode = new osg::Geode;
     
    580580        osg::ref_ptr<osg::Material> pMaterial;
    581581
    582         //height = (StartPoint-EndPoint).length();
    583         height  = length;
     582        height = (StartPoint-EndPoint).length();
    584583        center = osg::Vec3( (StartPoint.x() + EndPoint.x()) / 2, (StartPoint.y() + EndPoint.y()) / 2, (StartPoint.z() + EndPoint.z()) / 2);
    585584
Note: See TracChangeset for help on using the changeset viewer.