Skip to content

Commit

Permalink
Freakier tubes in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyKLight committed Aug 3, 2023
1 parent 944be28 commit af8bb23
Show file tree
Hide file tree
Showing 7 changed files with 1,157 additions and 1,133 deletions.
2 changes: 1 addition & 1 deletion VL.PolyTools.vl
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@
<Pin Id="TSZo1XBE2AbP98U4Aj185G" Name="ContourPoints" Kind="OutputPin" />
<Pin Id="Echs8Iq2QIlLtYbz6C3vM8" Name="ContourIndex" Kind="InputPin" />
</Patch>
<Patch Id="HF3UwtcR8PjLDzgbeqhcQ7" Name="PointCount" ParticipatingElements="J3XmDAld5qWMy7Vh4HfVs2,AxHAConEattPnnOH1ehsOO">
<Patch Id="HF3UwtcR8PjLDzgbeqhcQ7" Name="PointCount" ParticipatingElements="AxHAConEattPnnOH1ehsOO,J3XmDAld5qWMy7Vh4HfVs2">
<Pin Id="IUzi624ZjBHPbMQqQoopRO" Name="OuterContourPointCount" Kind="OutputPin" />
<Pin Id="IbOaxZFpxFlLSat0UQPoBi" Name="HolesPointCounts" Kind="OutputPin" />
</Patch>
Expand Down
311 changes: 56 additions & 255 deletions VL.Polytools.Stride.PolygonTube.vl

Large diffs are not rendered by default.

707 changes: 0 additions & 707 deletions help/Stride 3D/HowTo 2D+Y Polygon Tube.vl

This file was deleted.

289 changes: 138 additions & 151 deletions help/Stride 3D/HowTo 3D Polygon Tube.vl

Large diffs are not rendered by default.

47 changes: 28 additions & 19 deletions help/Stride 3D/HowTo Generate 3D Polygons.vl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
</p:ValueBoxSettings>
</Pad>
<Pad Id="IxYKgE3NB4wOZkR0jNtW7O" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="781,916" />
<Pad Id="LCZWdXP5V3hOHFbLLbB6tn" Bounds="599,1042,341,152" ShowValueBox="true" isIOBox="true" Value="To start that third vector is set to zero. &#xD;&#xA;You can set some data in it to gve your polygon a height. Try different height mode above to see the difference.&#xD;&#xA;&#xD;&#xA;SetHeightFixed you provide a single value and all poitns set to same height">
<Pad Id="LCZWdXP5V3hOHFbLLbB6tn" Bounds="599,1042,341,137" ShowValueBox="true" isIOBox="true" Value="To start that third vector is set to zero. &#xD;&#xA;You can set some data in it to gve your polygon a height. Try different height mode above to see the difference.&#xD;&#xA;&#xD;&#xA;SetHeightFixed you provide a single value and all points set to same height.&#xD;&#xA;&#xD;&#xA;">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="TypeFlag" Name="String" />
</p:TypeAnnotation>
Expand Down Expand Up @@ -318,7 +318,7 @@
<Pin Id="Ptf7F2iMd2DM3FbSEhszjC" Name="Output" Kind="StateOutputPin" />
</Node>
<Overlay Id="U80z6ukp6ErLA8JKnboi1y" Name="Case4 Set Height AND Transform" Bounds="1860,990,533,407" />
<Pad Id="T965SdY2TodMavUeZOShHm" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="673,1224" />
<Pad Id="T965SdY2TodMavUeZOShHm" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="673,1188" />
<Node Bounds="1070,1293,82,26" Id="V0Mllv4xM6wMyS0SJGIZaA">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
Expand All @@ -331,7 +331,7 @@
<Pin Id="P6W8DNIj6YLOBG69weLkCm" Name="Output" Kind="StateOutputPin" />
</Node>
<Overlay Id="EoLUCioin5vLIIraoA4ujh" Name="Case2 Set All Heights " Bounds="999,989,420,407" />
<Node Bounds="672,1284,85,26" Id="J1EK2yKLvxkQK73aSmvsCv">
<Node Bounds="672,1216,85,26" Id="J1EK2yKLvxkQK73aSmvsCv">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="RecordType" Name="Polygon3D" />
Expand All @@ -341,7 +341,7 @@
<Pin Id="IjlmchEh5VwPIEcNvDAjS5" Name="Height" Kind="InputPin" />
<Pin Id="EnPs2oGwEYJNvwBC5SX95A" Name="Output" Kind="StateOutputPin" />
</Node>
<Pad Id="V7K2ZA4cLA8MGz7knoEd20" Comment="Height" Bounds="755,1235,35,15" ShowValueBox="true" isIOBox="true" Value="-0.3">
<Pad Id="V7K2ZA4cLA8MGz7knoEd20" Comment="Height" Bounds="754,1189,35,15" ShowValueBox="true" isIOBox="true" Value="-0.3">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="TypeFlag" Name="Float32" />
</p:TypeAnnotation>
Expand Down Expand Up @@ -373,9 +373,9 @@
</p:ValueBoxSettings>
</Pad>
<Pad Id="Es1NZpQlvAOQaB4FsQwSqw" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="1075,1114" />
<Overlay Id="LonL8Nbjk2lOBKvSHx1K8p" Name="Manipulating 2D polygons and returning to 3D" Bounds="2986,1006,563,482" />
<Pad Id="Eanzb9pV59PNNgXIiogg1U" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="3114,1091" />
<Node Bounds="3111,1113,65,26" Id="Mif2fGyPphALDXniszoLjH">
<Overlay Id="LonL8Nbjk2lOBKvSHx1K8p" Name="Manipulating 2D polygons and returning to 3D" Bounds="2952,990,563,482" />
<Pad Id="Eanzb9pV59PNNgXIiogg1U" SlotId="DSvWs5S051pLG4lw9tMZz4" Bounds="3080,1075" />
<Node Bounds="3077,1097,65,26" Id="Mif2fGyPphALDXniszoLjH">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="RecordType" Name="Polygon3D" />
Expand All @@ -388,7 +388,7 @@
<Pin Id="GJOwYyyezGcN8UlPxpT4Nd" Name="ThirdDimDataHoleContours" Kind="OutputPin" />
<Pin Id="EDbNTAX8M2zLKRnVTs4B7L" Name="HeightMode" Kind="OutputPin" />
</Node>
<Pad Id="HdlfQtd4vjbOV0wa7LFzoG" Bounds="3235,1094,294,191" ShowValueBox="true" isIOBox="true" Value="do this if you want to manipulate your polygon back in 2D space and return it to 3d.&#xD;&#xA;&#xD;&#xA;Note If the point count changed in your 2D operations then the height spread in the new Polygon3D will also get a new pointcount to match. It will either fill or cut values from the original height spread.">
<Pad Id="HdlfQtd4vjbOV0wa7LFzoG" Bounds="3201,1078,294,191" ShowValueBox="true" isIOBox="true" Value="do this if you want to manipulate your polygon back in 2D space and return it to 3d.&#xD;&#xA;&#xD;&#xA;Note If the point count changed in your 2D operations then the height spread in the new Polygon3D will also get a new pointcount to match. It will either fill or cut values from the original height spread.">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="TypeFlag" Name="String" />
</p:TypeAnnotation>
Expand All @@ -397,7 +397,7 @@
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
</p:ValueBoxSettings>
</Pad>
<Node Bounds="3111,1201,64,26" Id="TEqF7JRJLZmNJVm2GyDWWl">
<Node Bounds="3077,1185,64,26" Id="TEqF7JRJLZmNJVm2GyDWWl">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Polygon" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="RecordType" Name="Polygon" />
Expand All @@ -408,7 +408,7 @@
<Pin Id="OiAazGnXa2UP8fzKYVYK1H" Name="TransformHoles" Kind="InputPin" />
<Pin Id="BqMVHNUFet4O64PA2KXPz3" Name="Output" Kind="StateOutputPin" />
</Node>
<Node Bounds="3111,1295,55,26" Id="RtrcD8E2KuxNw5qCqxtKs9">
<Node Bounds="3077,1279,55,26" Id="RtrcD8E2KuxNw5qCqxtKs9">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="RecordType" Name="Polygon3D" />
Expand All @@ -419,7 +419,7 @@
<Pin Id="Nlp0V7wI6f9P54W43EELne" Name="HeightMode" Kind="InputPin" />
<Pin Id="CtwgqwBwNlHO6oox36qA5e" Name="Output" Kind="StateOutputPin" />
</Node>
<Node Bounds="3111,1367,65,26" Id="NMYylPxFQHJPsUQPm0cYA2">
<Node Bounds="3077,1351,65,26" Id="NMYylPxFQHJPsUQPm0cYA2">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
<CategoryReference Kind="RecordType" Name="Polygon3D" />
Expand All @@ -430,13 +430,13 @@
<Pin Id="KJuEP0EzuwIQUkuRnco5eR" Name="HoleContourHeights" Kind="InputPin" />
<Pin Id="JhgYkyXZrqBPNCBUDJEyOJ" Name="Output" Kind="StateOutputPin" />
</Node>
<ControlPoint Id="UmRIiEnste7OxSO72KMuxl" Bounds="3205,1185" />
<ControlPoint Id="HrzOujVDC5TQEfIebCiSw1" Bounds="3195,1185" />
<ControlPoint Id="FP67G79h2AKMeniXwIurnl" Bounds="3187,1185" />
<ControlPoint Id="DnmIeiuoMNRLZZKnnjMHWX" Bounds="3202,1284" />
<ControlPoint Id="IFeRcbDx3fcNwWjcphjboz" Bounds="3192,1348" />
<ControlPoint Id="BsyBXS3x2zmLbH0jAk54SF" Bounds="3182,1348" />
<Overlay Id="TN8bznGU5A9QRf45Dv9JGL" Name="2D edit" Bounds="3073,1161,149,103" />
<ControlPoint Id="UmRIiEnste7OxSO72KMuxl" Bounds="3171,1169" />
<ControlPoint Id="HrzOujVDC5TQEfIebCiSw1" Bounds="3161,1169" />
<ControlPoint Id="FP67G79h2AKMeniXwIurnl" Bounds="3153,1169" />
<ControlPoint Id="DnmIeiuoMNRLZZKnnjMHWX" Bounds="3168,1268" />
<ControlPoint Id="IFeRcbDx3fcNwWjcphjboz" Bounds="3158,1332" />
<ControlPoint Id="BsyBXS3x2zmLbH0jAk54SF" Bounds="3148,1332" />
<Overlay Id="TN8bznGU5A9QRf45Dv9JGL" Name="2D edit" Bounds="3039,1145,149,103" />
<Node Bounds="1115,1130,71,26" Id="AWn3yLq0BsDN05CSwqbGEn">
<p:NodeReference LastCategoryFullName="VL.PolyTools.Stride.Polygon3D" LastDependency="VL.PolyTools.vl">
<Choice Kind="NodeFlag" Name="Node" Fixed="true" />
Expand Down Expand Up @@ -501,7 +501,7 @@
</p:TypeArguments>
</p:TypeAnnotation>
</Pad>
<Pad Id="MTazG8BOS1DLrzA8eNX24d" Bounds="1512,1042,313,188" ShowValueBox="true" isIOBox="true" Value="Transform a Polygon in 3D, including holes.&#xD;&#xA;Note this transforms the polygon point data. (Eg If you split the poly after the transform you will have the permanently updated points)&#xD;&#xA;&#xD;&#xA;For many applications you may prefer to consider transforming the points of the polygon to be like editing the actual shape. To just move the shape within the scene use the transform on the drawing entity (in this case OutlinePolygon). &#xD;&#xA;.&#xD;&#xA;">
<Pad Id="MTazG8BOS1DLrzA8eNX24d" Bounds="1512,1042,313,188" ShowValueBox="true" isIOBox="true" Value="Transform a Polygon in 3D, including holes.&#xD;&#xA;Note this transforms the polygon point data. (Eg If you split the poly after the transform you will have the permanently updated points)&#xD;&#xA;&#xD;&#xA;This is like 'editing' the actual shape. To just move the shape within the scene use the transform on the drawing entity (in this case OutlinePolygon). &#xD;&#xA;">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="TypeFlag" Name="String" />
</p:TypeAnnotation>
Expand Down Expand Up @@ -623,6 +623,15 @@
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
</p:ValueBoxSettings>
</Pad>
<Pad Id="Lq7yja45TTtPlSFlAUAI9g" Bounds="598,1289,345,75" ShowValueBox="true" isIOBox="true" Value="You should consider the difference between setting height of the polygon3D vs just giving the draw entity a translation in XYZ space via its own transform input. &#xD;&#xA;See case 3 and 4 for more info.&#xD;&#xA; &#xD;&#xA;">
<p:TypeAnnotation LastCategoryFullName="Primitive" LastDependency="VL.CoreLib.vl">
<Choice Kind="TypeFlag" Name="String" />
</p:TypeAnnotation>
<p:ValueBoxSettings>
<p:fontsize p:Type="Int32">9</p:fontsize>
<p:stringtype p:Assembly="VL.Core" p:Type="VL.Core.StringType">Comment</p:stringtype>
</p:ValueBoxSettings>
</Pad>
</Canvas>
<Patch Id="FFe8F5Xj9ooLrkradwhxCU" Name="Create" />
<Patch Id="BabPoRNkHpoPXEi8DIygW3" Name="Update" />
Expand Down
Loading

0 comments on commit af8bb23

Please sign in to comment.