Revision: 8187
http://playerstage.svn.sourceforge.net/playerstage/?rev=8187&view=rev
Author: hsujohnhsu
Date: 2009-08-09 22:13:06 +0000 (Sun, 09 Aug 2009)
Log Message:
-----------
comments on assert in SetGeom for trimesh class.
Modified Paths:
--------------
code/gazebo/trunk/server/physics/Geom.cc
Modified: code/gazebo/trunk/server/physics/Geom.cc
===================================================================
--- code/gazebo/trunk/server/physics/Geom.cc 2009-08-08 01:44:39 UTC (rev
8186)
+++ code/gazebo/trunk/server/physics/Geom.cc 2009-08-09 22:13:06 UTC (rev
8187)
@@ -249,7 +249,7 @@
if (this->placeable && !this->IsStatic())
{
- /// Not sure why this if statement was here
+ /// @todo: Not sure why this if statement was here
/// trimesh loading works fine without it
/// commenting out for now
//if (dGeomGetClass(geomId) != dTriMeshClass)
@@ -257,7 +257,9 @@
this->transId = dCreateGeomTransform( this->spaceId );
dGeomTransformSetGeom( this->transId, this->geomId );
dGeomTransformSetInfo( this->transId, 1 );
- assert(dGeomGetSpace(this->geomId) == 0);
+ /// @todo: this assert seems to break when geom is a trimesh, why?
+ if (dGeomGetClass(geomId) != dTriMeshClass)
+ assert(dGeomGetSpace(this->geomId) == 0);
}
}
else if ( dGeomGetSpace(this->geomId) == 0 )
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit