Skip to content

Commit

Permalink
Move the rotations into the instance node
Browse files Browse the repository at this point in the history
  • Loading branch information
Michalzr committed Dec 18, 2024
1 parent 23615f0 commit 8dd3096
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions 05 - VerySimpleFixedPVC2_with_electrical_layout.pvc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@
<library_nodes>
<!-- We define the model for a table with 1 rack -->
<node id="TableModel1" sid="TableModel1">
<!-- We instantiate the rack model -->
<!-- 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>
<instance_geometry url="#RackModel1">
<bind_material>
<technique_common>
Expand Down Expand Up @@ -318,9 +321,6 @@
</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,9 +337,6 @@
<!-- 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 @@ -359,9 +356,6 @@
<!-- 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

0 comments on commit 8dd3096

Please sign in to comment.