<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problem in sorting stripe hatches in ATU in Netfabb Forum</title>
    <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082680#M120</link>
    <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Sorry to forget. So now here is the picture.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 08:19:38 GMT</pubDate>
    <dc:creator>rasouliprs</dc:creator>
    <dc:date>2024-10-14T08:19:38Z</dc:date>
    <item>
      <title>problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082468#M118</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently decided to use the Stripe method to hatch a part in ATU. I have some limitations for using this method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Stripe boundaries and hatches should rotate 60 degrees in each layer (stripe and their hatches should be perpendicular to each other).&lt;/P&gt;&lt;P&gt;-Hatches always should be started from "bottom to top" of the part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To reach these goals, after rotating stripes and their hatches, I have used sorting methods (Bottom to Top) with the function "&lt;STRONG&gt;SORT_UTIL.nSortMinDistToSegmentsMethod_NearestSegments&lt;/STRONG&gt;" with "&lt;STRONG&gt;PerpendicularMeander&lt;/STRONG&gt;" filling mode. But in some layers, instead of hatching from bottom to top, I see some jumps like the picture. How can I solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parmida&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 05:56:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082468#M118</guid>
      <dc:creator>rasouliprs</dc:creator>
      <dc:date>2024-10-14T05:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082677#M119</link>
      <description>&lt;P&gt;Hello Parmida, could you please attach the picture you are referring to?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:17:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082677#M119</guid>
      <dc:creator>robert.weitzel</dc:creator>
      <dc:date>2024-10-14T08:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082680#M120</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Sorry to forget. So now here is the picture.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13082680#M120</guid>
      <dc:creator>rasouliprs</dc:creator>
      <dc:date>2024-10-14T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13083102#M121</link>
      <description>&lt;P&gt;You should use the function createStripesExt():&lt;BR /&gt;- Use fStripeAngle in the range of 0 to 180, or maybe 10 to 170 so that each stripe is going upwards.&lt;BR /&gt;- Set bStripeOrderLeft=true for angles &amp;lt; 90 and bStripeOrderLeft=false for angles &amp;gt; 90.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 12:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13083102#M121</guid>
      <dc:creator>robert.weitzel</dc:creator>
      <dc:date>2024-10-14T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13094790#M122</link>
      <description>&lt;P&gt;I appreciate your help, Robert.&lt;/P&gt;&lt;P&gt;I did what you said and the jumping problem was successfully fixed, but by forcing the stripes from left to right and vice versa, in some parts, I guess it could not guarantee to hatch from bottom to top of the part, like the picture that I have attached here. So, what can I do for these parts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your support.&lt;/P&gt;&lt;P&gt;Parmida&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9190282"&gt;@robert.weitzel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 08:58:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13094790#M122</guid>
      <dc:creator>rasouliprs</dc:creator>
      <dc:date>2024-10-19T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13102157#M123</link>
      <description>&lt;P&gt;To mitigate this problem you can limit the length of each stripe and then sort the resulting hatch blocks from bottom to top:&lt;/P&gt;
&lt;P&gt;1. Limit stripe length (e.g. 20mm):&lt;BR /&gt;Use &lt;STRONG&gt;bsIsland.createStripesExt&lt;/STRONG&gt; function with &lt;STRONG&gt;fStripeLength&lt;/STRONG&gt;=20.&lt;BR /&gt;(Controlling the stripe angle and stripe order as mentioned above will still be necessary to have the hatches within each hatch block in the upward direction)&lt;/P&gt;
&lt;P&gt;2. Sort the hatch blocks from bottom to top:&lt;BR /&gt;In your &lt;STRONG&gt;postprocessLayerStack&lt;/STRONG&gt; function do the following for each layer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;let exposure_array = modelData.getLayerPolylineArray(layer_nr, POLY_IT.nLayerExposure, "rw");&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;exposure_array.sort(function(a,b){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;let boundsA = a.getBounds2D();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;let boundsB = b.getBounds2D();&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;// sort by minY&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if(Math.abs(boundsA.minY - boundsB.minY) &amp;gt; 1)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return boundsA.minY - boundsB.minY;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;// a and b are roughly on the same Y&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;// -&amp;gt; sort by minX&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;return boundsA.minX - boundsB.minX;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;// Overwrite the "processing order" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;for(let i=0; i &amp;lt; exposure_array.length; ++i)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;exposure_array[i].setAttributeInt('_processing_order', i+1);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Instead of sorting by bounds minimum you could also sort by bounds center or whatever fits your requirements.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:35:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13102157#M123</guid>
      <dc:creator>robert.weitzel</dc:creator>
      <dc:date>2024-10-23T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13133166#M124</link>
      <description>&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;I have followed the steps you said and it seems that it works! Except for some geometries such as a cylindrical area. because minimum y is in the middle of the part, it is better to scan from left to right and vice versa ( in some stripes angle!)&lt;/P&gt;&lt;P&gt;Another exception is for example a cube. Where all y s are the same. Based on the angle of the stripes, min x is not always the right side or left side of the part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I believe that by knowing these rules, I can choose which one is better for different geometries.&lt;/P&gt;&lt;P&gt;I have attached some pictures to clarify the problems in the example geometries.&lt;/P&gt;&lt;P&gt;Thank you very much for your valuable guidance and support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parmida&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 08:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13133166#M124</guid>
      <dc:creator>rasouliprs</dc:creator>
      <dc:date>2024-11-06T08:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sorting stripe hatches in ATU</title>
      <link>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13133172#M125</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example2.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1430317i430FF80FAAB74919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example2.jpg" alt="example2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example1.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1430318i6EA8FC8A56AEE5E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example1.jpg" alt="example1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 08:48:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/netfabb-forum/problem-in-sorting-stripe-hatches-in-atu/m-p/13133172#M125</guid>
      <dc:creator>rasouliprs</dc:creator>
      <dc:date>2024-11-06T08:48:24Z</dc:date>
    </item>
  </channel>
</rss>

