Skip to content

projection2d

Carsten Arnholm edited this page Aug 18, 2019 · 2 revisions

projection2d

The boolean operator <projection2d> specifies the projection of a 3d shape into the XY-plane. The result is a new 2d shape.

Example with a rotated cylinder projected into the xy-plane to create a 2d shape. Result extruded slightly for easy visualisation in 3d.

<?xml version="1.0" encoding="utf-8"?>
<xcsg version="1.0">
   <metadata>
      <software name="angelcad" version="v1.3-02"/>
      <model name="projection2d" created="2019-08-18T09:12:39"/>
   </metadata>
   <linear_extrude dz="0.01">
      <projection2d>
         <cylinder h="100" r="30" center="false">
            <tmatrix>
               <trow c0="0.86602540378443871" c1="0" c2="0.49999999999999994" c3="0"/>
               <trow c0="0" c1="1" c2="0" c3="0"/>
               <trow c0="-0.49999999999999994" c1="0" c2="0.86602540378443871" c3="0"/>
               <trow c0="0" c1="0" c2="0" c3="1"/>
            </tmatrix>
         </cylinder>
      </projection2d>
   </linear_extrude>
</xcsg>

Original cylinder before projection:

Clone this wiki locally