Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base geometry without any Additions or Subtractions ignores the scale #23

Open
btjacker opened this issue Sep 22, 2023 · 4 comments
Open

Comments

@btjacker
Copy link

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.

@marcofiletto
Copy link

Hey! did you solve this?

@btjacker
Copy link
Author

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

@marcofiletto
Copy link

marcofiletto commented Mar 21, 2024

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
Copy link

@drcmda @isaac-mason @Sam-Apostel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants