react-three-csg icon indicating copy to clipboard operation
react-three-csg copied to clipboard

Not able to cut complex stl

Open LeoReubelt opened this issue 1 year ago • 2 comments

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>

Screenshot 2024-03-08 at 7 25 29 AM

LeoReubelt avatar Mar 08 '24 13:03 LeoReubelt

I am also getting TypeError: Cannot read properties of undefined (reading ‘count’)

LeoReubelt avatar Mar 11 '24 11:03 LeoReubelt

make sure your geometry has the boundingBox property defined

marcofiletto avatar Mar 12 '24 14:03 marcofiletto