X/Y Axis?

This topic has been viewed 1429 times and has 8 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
A.D.STUDIO
Posts: 55
Joined: Wed Mar 06, 2024 8:00 am
Country: Australia

X/Y Axis?

Post by A.D.STUDIO »

I'm wondering why I can't rotate an object on both its X- and Y-axis.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: X/Y Axis?

Post by Puybaret »

Because it’s generally too complex to guess the result of two rotations.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: X/Y Axis?

Post by dorin »

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
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: X/Y Axis?

Post by Keet »

Because it’s generally too complex to guess the result of two rotations.
Mmmm, "guess"? [:)]

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
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: X/Y Axis?

Post by dorin »

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
A.D.STUDIO
Posts: 55
Joined: Wed Mar 06, 2024 8:00 am
Country: Australia

Re: X/Y Axis?

Post by A.D.STUDIO »

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...
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: X/Y Axis?

Post by Keet »

@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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: X/Y Axis?

Post by Puybaret »

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
A.D.STUDIO
Posts: 55
Joined: Wed Mar 06, 2024 8:00 am
Country: Australia

Re: X/Y Axis?

Post by A.D.STUDIO »

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.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest