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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions 05 - VerySimpleFixedPVC2_with_electrical_layout.pvc
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@
<mesh>
<source id="rack1MeshSource">
<float_array id="rack1FloatArray" count="12">
0 0 0
-1500 0 0
-1500 -500 200
0 -500 200
-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

</float_array>
<technique_common>
<accessor count="4" source="#rack1FloatArray" stride="3">
Expand Down Expand Up @@ -298,9 +298,6 @@
<!-- table tag, child tags for illustrative purpose only -->
<table>
<type>fixed</type>
<tilt>21.8</tilt>
<azimuth>0</azimuth>
<base_slope>0</base_slope>
</table>
</technique>
</extra>
Expand All @@ -321,6 +318,9 @@
</node>
<!-- We instantiate a first fixed tilt table, without any transformation -->
<node id="PVnode1" name="PVnode1" sid="PVnode1">
<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>
<instance_node url="#TableModel1">
<extra>
<technique profile="PVCollada-2.0">
Expand All @@ -337,6 +337,9 @@
<!-- We instantiate a second fixed tilt table (with a translation) -->
<node id="PVnode2" name="PVnode2" sid="PVnode2">
<translate>0 -800 0</translate>
<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>
<instance_node url="#TableModel1">
<extra>
<technique profile="PVCollada-2.0">
Expand All @@ -356,6 +359,9 @@
<!-- We instantiate a third fixed tilt table (with another translation) -->
<node id="PVnode3" name="PVnode3" sid="PVnode3">
<translate>0 -1600 0</translate>
<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>
<instance_node url="#TableModel1">
<extra>
<technique profile="PVCollada-2.0">
Expand Down