pmndrs / react-three-csg

🚧 Constructive solid geometry for React
https://csg.pmnd.rs
MIT License
289 stars 12 forks source link

TypeError: Cannot read properties of undefined (reading 'count') #4

Closed 1uciuszzz closed 1 year ago

1uciuszzz commented 1 year ago
<mesh>
  <Subtraction>
    <Brush
      a
      geometry={nodes.LOD3spShape.geometry}
      material={materials["blinn3-fx"]}
    />
    <Brush b>
      <mesh position={[x, y, z]}>
        <boxGeometry args={[w, h, d]} />
        <meshStandardMaterial color={"#2a8aff"} />
      </mesh>
    </Brush>
  </Subtraction>
</mesh>

Duck Model URL: https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/Duck/glTF-Embedded/Duck.gltf

Will-Wrightwa commented 1 year ago

I have this error too.

Will-Wrightwa commented 1 year ago

It looks like this is related to this: https://github.com/gkjohnson/three-bvh-csg/issues/94

1uciuszzz commented 1 year ago

I have this error too.

do you resolved? i resolved this in these days, i just forgetting to compute normal and my model doesnt has uv