<?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: Can I cut the outer side of a polygon with the cutpolya? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394502#M500</link>
    <description>&lt;P&gt;cutpolya?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doesn't sound like an ArchiCAD command.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 03:04:41 GMT</pubDate>
    <dc:creator>Gerry Leonor</dc:creator>
    <dc:date>2023-08-08T03:04:41Z</dc:date>
    <item>
      <title>Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394501#M499</link>
      <description>&lt;P&gt;Can I cut the outer side of a polygon with the cutpolya command? I want to keep the inside of the polygon and trim off the outside of the polygon. How to do it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20230808104148.jpg" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/44347i689A33FDB326885F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20230808104148.jpg" alt="20230808104148.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 02:43:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394501#M499</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-08-08T02:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394502#M500</link>
      <description>&lt;P&gt;cutpolya?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;doesn't sound like an ArchiCAD command.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 03:04:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394502#M500</guid>
      <dc:creator>Gerry Leonor</dc:creator>
      <dc:date>2023-08-08T03:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394503#M501</link>
      <description>&lt;P&gt;&lt;STRONG&gt;It's GDL&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;command.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CUTPOLYA n, status, d,
x1, y1, mask1, ..., xn, yn, maskn [,
x, y, z]
[statement1
statement2
...
statementn]
CUTEND&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Similar to the CUTPOLY command, but with the possibility to control the visibility of the edges of the generated polygons. The cutting form&lt;BR /&gt;is a half-infinite tube with the defined polygonal cross-section. If the end of the cutting form hangs down into the body, it will cut out the&lt;BR /&gt;corresponding area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;status: controls the treatment of the generated cut polygons.&lt;BR /&gt;1: use the attributes of the body for the generated polygons and edges,&lt;BR /&gt;2: generated cut polygons will be treated as normal polygons.&lt;BR /&gt;d: the distance between the local origin and the end of the half-infinite tube.&lt;BR /&gt;0: means a cut with an infinite tube.&lt;BR /&gt;maski: similar to the PRISM_ command.&lt;BR /&gt;maski = j1 + 2*j2 + 4*j3 + 64*j7, where each j can be 0 or 1.&lt;/P&gt;
&lt;P&gt;…… ……&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But there is no status code to determine whether the cutting is on the inside or outside&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 11:59:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394503#M501</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-08-10T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394505#M502</link>
      <description>&lt;P&gt;CUTPOLYA uses mask values similar to PRISM_.&lt;/P&gt;
&lt;P&gt;So try adding a hole (mask -1) to it.&lt;/P&gt;
&lt;P&gt;So basically you will be making a hole inside a hole that hopefully won't cut the inside.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure it will work, but worth a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not you will have to use CUTPLANEs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 03:38:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394505#M502</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-08-08T03:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394525#M503</link>
      <description>&lt;DIV&gt;&lt;P&gt;It doesn't look good. It seems that we can only use &lt;STRONG&gt;cutplane&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This is a defect of &lt;STRONG&gt;GDL&lt;/STRONG&gt;, and the option of cutting the &lt;STRONG&gt;inner or outer sides of cutpolya&lt;/STRONG&gt; should be added.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20230808135231.jpg" style="width: 290px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/44351i34D16721E0A94094/image-dimensions/290x191?v=v2" width="290" height="191" role="button" title="20230808135231.jpg" alt="20230808135231.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cutpolya  8  ,1, 0 , 
   -2 , -2 , 15 ,
   2 ,  -2 , 15 ,
   0 , 2 , 15 ,
   -2 , -2 , -1 ,  

   -0.8 , -0.8 , 15 ,
   0.8 , - 0.8 , 15 ,
   0 , 0.8 , 15 ,
   -0.8 , -0.8 , -1  

prism_   5 , 0.1 , 
           -3 , -3 , 15,
        3 ,  -3 , 15,
        3 , 3 , 15,
         -3 ,  3 , 15,
         -3 , -3 , 15
cutend&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 06:01:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394525#M503</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-08-08T06:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394531#M504</link>
      <description>&lt;P&gt;It works, yes, but it depends on the direction of the points given in. I am not sure, which is the working direction. (You are moving from left to right, try the other direction, which is mathematical positive)&lt;BR /&gt;Another way would be to use 2 half Cutpolys.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 07:09:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394531#M504</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-08-08T07:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394533#M505</link>
      <description>&lt;P&gt;Sorry it didn't work.&lt;/P&gt;
&lt;P&gt;I guess looking at it, normally with a PRISM when you cut a hole.&lt;/P&gt;
&lt;P&gt;The connecting points are hidden inside the prism and you only see the whole in the centre.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But because you are connecting across a hole, you see the connection, and a hole inside another hole really makes no sense, which is probably why it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tried reversing the direction of the points as Joachim suggested, and had no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So CUTPLANEs or 2 CUTPOLYs it will have to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could play around with GROUPS.&lt;/P&gt;
&lt;P&gt;One group being a large outer PRISM_ with a hole the shape of your polygon.&lt;/P&gt;
&lt;P&gt;The other inner group the polygon elements.&lt;/P&gt;
&lt;P&gt;Then subtract the outer group from the inner group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 07:39:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394533#M505</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-08-08T07:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394536#M506</link>
      <description>&lt;P&gt;I looked at my script, which was working some years ago and made some tries.&lt;BR /&gt;It seems that what I said is a bit different: &lt;BR /&gt;Attached a working script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PUT 1, 1, 15, 
1, -3, 15,
-3, -3, 15,
-3, 1, 15, 
1, 1, -1,

- 0.5, - 0.5, 15,
- 1.5, - 0.5, 15,
- 1.5, - 1.5, 15,
- 0.5, - 1.5, 15,
- 0.5, - 0.5, -1

!ADDz - 0.1
!PRISM_ NSP/3, 0.1, USE(NSP)
!DEL 1
CUTPOLYa NSP/3, 1, 0, GET(NSP)

! ......................... !

PUT 0, 0, 15, 
-2, 0, 15, 
-2, -2, 15,
0, -2, 15,
0, 0, -1

ADDx 0
PRISM_ NSP/3, 0.1, GET(NSP)
DEL 1
! ......................... !

CUTEND&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I first moved the outer contour from left to right and then the inner contour from right to left.&lt;BR /&gt;The commented PRISM_ is for to see what shape the Cutpolya has.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:10:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394536#M506</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-08-08T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394539#M507</link>
      <description>&lt;P&gt;The GDL component has been made using &lt;STRONG&gt;CUTPLANE&lt;/STRONG&gt;. This allows you to freely drag and drop hotspots, freely design various shapes of exterior windows, and have a choice of 4-6 edges.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20230808160708.jpg" style="width: 487px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/44354iB24FF46E7FAC0139/image-dimensions/487x341?v=v2" width="487" height="341" role="button" title="20230808160708.jpg" alt="20230808160708.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:11:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/394539#M507</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-08-08T08:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I cut the outer side of a polygon with the cutpolya?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/396461#M508</link>
      <description>&lt;P&gt;I have found a better way to use CUTFORM.&lt;/P&gt;&lt;P&gt;The status code of CUTFORM allows for the selection of whether cutting is done externally or internally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 03:12:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-cut-the-outer-side-of-a-polygon-with-the-cutpolya/m-p/396461#M508</guid>
      <dc:creator>yongler</dc:creator>
      <dc:date>2023-08-29T03:12:27Z</dc:date>
    </item>
  </channel>
</rss>

