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

Base geometry without any Additions or Subtractions ignores the scale

Open btjacker opened this issue 1 year ago • 4 comments

I dont know if this is a bug or expected bahaviour, but in this sandbox https://codesandbox.io/s/csg-house-forked-phdnhl?file=/src/App.js I conditionally add Subtractions only when there is enought space fore it. If the contion is true, everything is fine. But when it is false and only Base component remains, the scale of Base component is Ignored. Simple but stupid fix is to add Addition with zero scale. If this is no bug, how coul I do this in a proper way. Than you.

btjacker avatar Sep 22 '23 07:09 btjacker

Hey! did you solve this?

marcofiletto avatar Mar 21 '24 20:03 marcofiletto

No, still using something like<Addition geometry={box} scale={[0, 0, 0]} />when needed

btjacker avatar Mar 21 '24 20:03 btjacker

uhmm, annoying. I'm dealing with the position. If I try to use <Base position={position} geometry={geometry}> Base completely ignores the position and always aligns with the centre [0,0,0]. Any ideas on how I can solve this?

* I have tried to put a mesh as a parent with the position but it doesn't care either

marcofiletto avatar Mar 21 '24 20:03 marcofiletto

@drcmda @isaac-mason @Sam-Apostel

marcofiletto avatar Mar 21 '24 20:03 marcofiletto