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

Use rotation to represent azimuth tilt and base slope #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Michalzr
Copy link

No description provided.

-750 -250 0
750 -250 0
750 250 0
-750 250 0
Copy link

@MichalZru MichalZru Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The geometry of a rack will always be a rectangle in XY plane, with center in 0,0,0

<!-- We instantiate the rack model -->
<rotate sid="azimuth">0 0 1 45</rotate>
<rotate sid="base slope">0 1 0 10</rotate>
<rotate sid="tilt">1 0 0 21.8</rotate>
Copy link

@MichalZru MichalZru Dec 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tilt, base_slope and azimuth are <rotate> elements recognized by collada.

Benefits:

  • they are understood by a non-pv 3d software
  • PV software can easily read the last number and based on the sid indentify that tilt is 21.8, azimuth is 45 and base_slope is 10

Notes:

  • the order is important
  • the axis (first three numbers in the element), is constant

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

Successfully merging this pull request may close these issues.

2 participants