I am trying to import an .stl file in Matlab et set it up as a collisionBox for robot path planning.
My current code is:
cagePosition=[1 1 1];
cage = collisionMesh(cagedata.Points);
The problem is that the collisionMesh function only takes the vertices as argument and creates a convex shape based on those. It doesn't take each point as being part of the shape but puts some of them inside the shape so it can be convex. I know that some functions can read .stl files properly but this one seems to be the only one I can use to create a collisionBox from the .stl file.
Can someone find an alternate way of doing this ?