react-three-csg
react-three-csg copied to clipboard
Not able to cut complex stl
I have an stl of a bone that I am trying to cut with a sphere as shown below. The image is what i see with showOperations=true. But without that, all i get is a blank screen. I have tried it with a box and a sphere and it worked fine. Is the bone model just too complex?
<mesh>
<Geometry>
<Base geometry={geometry}>
<meshPhysicalMaterial color={`green`} />
</Base>
<Subtraction position={[0, -150, 900]}>
<sphereGeometry args={[50, 64, 64]} />
<meshPhysicalMaterial color={`red`} />
</Subtraction>
</Geometry>
</mesh>
I am also getting TypeError: Cannot read properties of undefined (reading ‘count’)
make sure your geometry has the boundingBox property defined