mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-21 18:48:29 +00:00
allow createCollisionShape to load stl. Still, it is best to convert it to obj and use v-hacd for concave shapes.
This commit is contained in:
@@ -444,7 +444,12 @@ static void convertURDFToVisualShape(const UrdfShape* visual, const char* urdfPa
|
||||
break;
|
||||
}
|
||||
case UrdfGeometry::FILE_STL:
|
||||
glmesh = LoadMeshFromSTL(visual->m_geometry.m_meshFileName.c_str(), fileIO);
|
||||
|
||||
char relativeFileName[1024];
|
||||
if (fileIO->findResourcePath(visual->m_geometry.m_meshFileName.c_str(), relativeFileName, 1024))
|
||||
{
|
||||
glmesh = LoadMeshFromSTL(relativeFileName, fileIO);
|
||||
}
|
||||
break;
|
||||
case UrdfGeometry::FILE_COLLADA:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user