CoACD icon indicating copy to clipboard operation
CoACD copied to clipboard

Can't apply convex decomposition to a hollow cylinder (STL file) in Python?

Open kurtenkera opened this issue 6 months ago • 1 comments

Hi,

I am trying to use the example script python/package/bin/coacd on an STL file of a hollow cylinder (attached: hollowcyl.zip).

image

I want to decompose this cylinder into a union of convex objects so I can accurately simulate collision detection in MuJoCo. The picture above shows the hollow cylinder in a MuJoCo simulation. The video below shows that a small sphere is unable to fall through the hollow cylinder as its convex hull doesn't allow this.

Screencast from 02-08-24 11:50:29.webm

When I execute the code:

cd python
python package/bin/coacd -i hollowcyl.stl -o hollowcyl_coacd.stl

I still get the same issues, whereas I was expecting this to produce an STL file that allows the sphere to fall through the cylinder? I have read the code in python/package/bin/coacd line-by-line and I don't know why I am encountering this issue. Can anyone help?

Thanks in advance!

kurtenkera avatar Aug 02 '24 01:08 kurtenkera