Print at Dec 18, 2025, 10:30:05 AM View all posts in this thread on one page
Posted by A.D.STUDIO at May 29, 2024, 2:55:22 PM
X/Y Axis?
I'm wondering why I can't rotate an object on both its X- and Y-axis.

Posted by Puybaret at May 29, 2024, 4:33:08 PM
Re: X/Y Axis?
Because it’s generally too complex to guess the result of two rotations.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by dorin at May 29, 2024, 5:00:58 PM
Re: X/Y Axis?
Not ALL but furniture EXCEPT doors, windows and staircases.
Could be rotated on X, Y & Z axis.
Look at the piano .
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law

Posted by Keet at May 29, 2024, 5:29:24 PM
Re: X/Y Axis?
Because it’s generally too complex to guess the result of two rotations.
Mmmm, "guess"? smile

Separately the X and Y calculations are possible. Perform the Y calculation on the result of the X-calculation. You already have the code for both calculations. The only difference is that the Y calculation is done on the in-memory result of the X calculation. Or am I thinking too simple here?
That's basically what I do when needed: set the X angle, export, import, set the Y angle.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by dorin at May 29, 2024, 6:45:52 PM
Re: X/Y Axis?
I'm sorry!
You've right, I'm wrong!
When set X the Y become 0 and the opposite. Only Z (Angle) keep the value.
So, my answer is wrong. Sorry!
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law

Posted by A.D.STUDIO at May 30, 2024, 1:11:12 AM
Re: X/Y Axis?
Thanks for the replies. Is there some technical reason why not? There's definitely use cases for it. I have a trapezoidal shaped box, need to lean it on its side and angle it up (it's an audio foldback wedge). Can't do it.

@Keet: are you saying I can set one axis, export and import and it's normalised at that position, then set the other axis? As a workaround...

Posted by Keet at May 30, 2024, 7:38:08 AM
Re: X/Y Axis?
@Keet: are you saying I can set one axis, export and import and it's normalised at that position, then set the other axis? As a workaround...
Yes, that is what I do when I need a tilt on both X and Y. I first do one, export, import, and then do the other. It's not perfect because you have to export and import but the result is what you want with both tilts.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by Puybaret at May 30, 2024, 8:52:57 AM
Re: X/Y Axis?
Is there some technical reason why not?
It's not a technical reason, it's for ergonomics reasons. Sweet Home 3D audience targets also people who don't understand how orientation around 3 axes work, moreover since these operations are not commutative.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by A.D.STUDIO at May 30, 2024, 8:56:44 AM
Re: X/Y Axis?
OK – I'd err on the side of offering complete functionality as opposed to crippling it to cater for the lowest common denominator, I don't think there's ever a good case for going that way. I think the picture you show of the three axes is pretty clear, too.