<?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 Conversion: Region to Hatch in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174859#M19837</link>
    <description>Anyone know of a simple way to do it?  I know AutoCAD can do it internally cause in the Hatch interface you can select a region as an object to hatch.&lt;BR /&gt;
&lt;BR /&gt;
But I haven't seen anything exposed in ARX.  Of course I know I can explode the region and get its curves and yadayada, but it can get pretty complex what with islands, disparate areas, etc.  There's no guarantee that a region given to me will be nice and simple.&lt;BR /&gt;
&lt;BR /&gt;
So just wanted to see if there were a quick way to do it before I implement something extreme.

Message was edited by: dougk16</description>
    <pubDate>Fri, 08 Feb 2008 11:16:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-08T11:16:07Z</dc:date>
    <item>
      <title>Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174859#M19837</link>
      <description>Anyone know of a simple way to do it?  I know AutoCAD can do it internally cause in the Hatch interface you can select a region as an object to hatch.&lt;BR /&gt;
&lt;BR /&gt;
But I haven't seen anything exposed in ARX.  Of course I know I can explode the region and get its curves and yadayada, but it can get pretty complex what with islands, disparate areas, etc.  There's no guarantee that a region given to me will be nice and simple.&lt;BR /&gt;
&lt;BR /&gt;
So just wanted to see if there were a quick way to do it before I implement something extreme.

Message was edited by: dougk16</description>
      <pubDate>Fri, 08 Feb 2008 11:16:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174859#M19837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-08T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174860#M19838</link>
      <description>AcDbMPolygon class ?</description>
      <pubDate>Sat, 16 Feb 2008 16:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174860#M19838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-16T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174861#M19839</link>
      <description>Thanks for the suggestion, but is there any specific function of this class I should look at?  I didn't see anything useful in the docs.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I've since implemented my own function for this.  I may post it after it's seen more extensive testing.</description>
      <pubDate>Sun, 17 Feb 2008 12:32:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174861#M19839</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-17T12:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174862#M19840</link>
      <description>Well, I have used this class, for other purposes like testing if a point is inside of a closed polyline or when a polyline selfcross, etc... and noticed the use of hatch in them, so that's why I posted.&lt;BR /&gt;
&lt;BR /&gt;
But, for what I see now, there is no form of using as boundaries directly the regions.... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Sun, 17 Feb 2008 17:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174862#M19840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-17T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174863#M19841</link>
      <description>Yea, oddly enough you can convert from a hatch to a region using AcDbHatch::getRegionArea, but not vice versa.&lt;BR /&gt;
&lt;BR /&gt;
Just something that might be helpful for you, maybe you already know about it...but you could use getRegionArea and then do a Brep on the region to determine if a point is within any closed boundary.  It may be simpler for your needs than using AcDbMPolygon.&lt;BR /&gt;
&lt;BR /&gt;
Thanks anyway for your suggestion...I noticed some other things in AcDbMPolygon that might be useful for me for other things.</description>
      <pubDate>Sun, 17 Feb 2008 20:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174863#M19841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-17T20:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion: Region to Hatch</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174864#M19842</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Yes, I know about that and have used the Brep too, I end up writing my own function for the internal point testing, since there is a bug in the AcDbMPolygon class for AutoCAD 2007 by the way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Have fun.</description>
      <pubDate>Mon, 18 Feb 2008 17:14:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/conversion-region-to-hatch/m-p/2174864#M19842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-18T17:14:14Z</dc:date>
    </item>
  </channel>
</rss>

