<?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 ClipPolyline -object study in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/ClipPolyline-object-study/m-p/273049#M1966</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all Polygon Operation masters.&lt;BR /&gt;
I tried GDL to Clip a polyline with another polyline but failed, Polyline offset works fine yet. Some other options also failed, please check the attacment.&lt;BR /&gt;
This function is great, but I can´t get it work.&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 18 Nov 2019 16:56:20 GMT</pubDate>
    <dc:creator>Pertti Paasky</dc:creator>
    <dc:date>2019-11-18T16:56:20Z</dc:date>
    <item>
      <title>ClipPolyline -object study</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ClipPolyline-object-study/m-p/273049#M1966</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all Polygon Operation masters.&lt;BR /&gt;
I tried GDL to Clip a polyline with another polyline but failed, Polyline offset works fine yet. Some other options also failed, please check the attacment.&lt;BR /&gt;
This function is great, but I can´t get it work.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Nov 2019 16:56:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ClipPolyline-object-study/m-p/273049#M1966</guid>
      <dc:creator>Pertti Paasky</dc:creator>
      <dc:date>2019-11-18T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: ClipPolyline -object study</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ClipPolyline-object-study/m-p/273050#M1967</link>
      <description>The problem is that you forgot to differentiate between polylines and polygons. The calls that save them should go something like this: 
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;PREPAREFUNCTION ch, "StorePolyline", "polyline1", nVertices4,vertArr4,defaultInhEdgeInfo, inhEdgeInfos
dim cont1[]
cont1[1]=vardim1(vertArr)  ! points to the last vertex of the contour
! Store = Store _polygon_
PREPAREFUNCTION ch, "Store", "poly1", nVertices,1,vertArr,cont1 
&lt;/PRE&gt; &lt;BR /&gt;
Similarly you need two versions of  "draw respolyarr" - one that draws polylines that &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;OffsetPolyline&lt;E&gt;&lt;/E&gt; and &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ClipPolyline&lt;E&gt;&lt;/E&gt; produce (with &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;GetPolylineVertices&lt;E&gt;&lt;/E&gt;), and another to draw the polygons that &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;PolyCut&lt;E&gt;&lt;/E&gt; and &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;CopyPolygon&lt;E&gt;&lt;/E&gt; produce:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! GetVertices = Get _polygon_ vertices
nVertices = CALLFUNCTION (ch, "GetVertices", polylineID, resPolylineVertices) 
&lt;/PRE&gt;
Polygon Operations sure is full of gotchas...</description>
      <pubDate>Tue, 05 May 2020 12:00:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ClipPolyline-object-study/m-p/273050#M1967</guid>
      <dc:creator>NBGheikki</dc:creator>
      <dc:date>2020-05-05T12:00:32Z</dc:date>
    </item>
  </channel>
</rss>

