Simox  2.3.74.0
GraspStudio::MeshConverter Class Reference

Static Public Member Functions

static EIGEN_MAKE_ALIGNED_OPERATOR_NEW VirtualRobot::ManipulationObjectPtr CreateManipulationObject (const std::string &name, VirtualRobot::MathTools::ConvexHull3DPtr hull)
 
static VirtualRobot::TriMeshModelPtr CreateTriMeshModel (VirtualRobot::MathTools::ConvexHull3DPtr hull)
 
static VirtualRobot::ObstaclePtr RefineObjectSurface (VirtualRobot::ObstaclePtr object, float maxDist, bool verbose=true)
 
static int hasVertex (std::vector< Eigen::Vector3f > &vectList, Eigen::Vector3f &obj)
 Returns -1 if obj is not part of vectList, otherwise the index of vectList is returned. More...
 
static void checkAndSplitVertex (VirtualRobot::TriMeshModelPtr tm, int faceIdx, float maxDist)
 
static float getMaxVertexDistance (VirtualRobot::TriMeshModelPtr tm)
 

Member Function Documentation

◆ checkAndSplitVertex()

void GraspStudio::MeshConverter::checkAndSplitVertex ( VirtualRobot::TriMeshModelPtr  tm,
int  faceIdx,
float  maxDist 
)
static

◆ CreateManipulationObject()

VirtualRobot::ManipulationObjectPtr GraspStudio::MeshConverter::CreateManipulationObject ( const std::string &  name,
VirtualRobot::MathTools::ConvexHull3DPtr  hull 
)
static

Create an object. The visualization and collision model is created from the convex hull.

◆ CreateTriMeshModel()

VirtualRobot::TriMeshModelPtr GraspStudio::MeshConverter::CreateTriMeshModel ( VirtualRobot::MathTools::ConvexHull3DPtr  hull)
static

◆ getMaxVertexDistance()

float GraspStudio::MeshConverter::getMaxVertexDistance ( VirtualRobot::TriMeshModelPtr  tm)
static

◆ hasVertex()

int GraspStudio::MeshConverter::hasVertex ( std::vector< Eigen::Vector3f > &  vectList,
Eigen::Vector3f &  obj 
)
static

Returns -1 if obj is not part of vectList, otherwise the index of vectList is returned.

◆ RefineObjectSurface()

VirtualRobot::ObstaclePtr GraspStudio::MeshConverter::RefineObjectSurface ( VirtualRobot::ObstaclePtr  object,
float  maxDist,
bool  verbose = true 
)
static