<?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: Voids in GDL in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572471#M5769</link>
    <description>&lt;P&gt;Pointing me in that direction, I managed to create a Block with a hole&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; But I do not know how to make the hole finite, so that there will be a "roof" in the Block. I tried with this script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Material 4

a=1.0
d=0.2

GOSUB "rect_cut"
DEL 1

BLOCK a, a, a
CUTEND


END
"rect_cut":
    CUTPOLY 4,
            d, d,
            a-d, d,
            a-d, a-d,
            d, a-d
    RETURN
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingolf_0-1698152333286.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47880i4777116E8F41AECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingolf_0-1698152333286.png" alt="Ingolf_0-1698152333286.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 13:00:23 GMT</pubDate>
    <dc:creator>Ingolf</dc:creator>
    <dc:date>2023-10-24T13:00:23Z</dc:date>
    <item>
      <title>Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572314#M5756</link>
      <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I want to make a Block in GDL with an internal hole, the object made in the simplest possible way.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Of course I can make four walls and a roof and make a Block with a hole that way, but I want to make two Blocks, one regular and one smaller void-Block.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Is there a command for void in GDL?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:48:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572314#M5756</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2024-09-26T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572318#M5757</link>
      <description>&lt;P&gt;Yes, that's possible. You should look in to the SUBGROUP command.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 21:02:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572318#M5757</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-10-23T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572319#M5758</link>
      <description>&lt;P&gt;Thanks for a swift answer. I suspected the Subgroup. But how to script a Block and a void with Subgroup?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 21:06:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572319#M5758</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2023-10-23T21:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572321#M5759</link>
      <description>&lt;P&gt;Here's a couple of links you might like to explore...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/gdl-basics/advanced-3d-components" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/advanced-3d-components&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gdl.graphisoft.com/reference-guide/solid-geometry-commands" target="_blank"&gt;https://gdl.graphisoft.com/reference-guide/solid-geometry-commands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 21:20:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572321#M5759</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-10-23T21:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572347#M5760</link>
      <description>&lt;P&gt;BLOCK and BRICK can not have a hole directly scripted in them.&lt;/P&gt;
&lt;P&gt;You can use GROUPs as others have suggested and SUBGROUP one from the other.&lt;/P&gt;
&lt;P&gt;Not hard, but you need to know how the grouping works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would just use the PRISM_ command (or its variations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PRISM_ 10, 1.0,

0.0, 0.0, 15,

1.0, 0.0, 15,

1.0, 1.0, 15,

0.0, 1.0, 15,

0.0, 0.0, -1,

0.2, 0.2, 15,

0.8, 0.2, 15,

0.8, 0.8, 15,

0.2, 0.8, 15,

0.2, 0.2, -1

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1698110212664.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47827i47DC86E952BF47EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1698110212664.png" alt="BarryKelly_0-1698110212664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The -1 mask means the following nodes will cut a hole.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 01:17:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572347#M5760</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-24T01:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572387#M5761</link>
      <description>&lt;P&gt;Thank you Barry. But: I need a script where the hole does not cut all the way through the cube. That will probably not be possible in your otherwise elegant solution?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:18:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572387#M5761</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2023-10-24T06:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572389#M5762</link>
      <description>&lt;P&gt;Ah, you want a hollow block with 6 sides still?&lt;/P&gt;
&lt;P&gt;You could add slabs (prisms) to the top and bottom to plug the hole.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But easy with GROUPs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GROUP "box"

BLOCK 1, 1, 1

ENDGROUP


GROUP "void"

ADD 0.2, 0.2, 0.2

BLOCK 0.6, 0.6, 0.6

DEL 1

ENDGROUP


result = SUBGROUP ("box","void")


PLACEGROUP result

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the wire frame view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1698128906630.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47850i3653403B630BE3DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1698128906630.png" alt="BarryKelly_0-1698128906630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:30:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572389#M5762</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-24T06:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572390#M5763</link>
      <description>&lt;P&gt;Hello DGSketcher&lt;/P&gt;
&lt;P&gt;The link&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/advanced-3d-components" target="_blank" rel="nofollow noopener noreferrer"&gt;https://gdl.graphisoft.com/gdl-basics/advanced-3d-components&lt;/A&gt; will probably help me on track. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:31:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572390#M5763</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2023-10-24T06:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572397#M5764</link>
      <description>&lt;P&gt;That worked well, and not a too complex formula. I changed it so I could see the void from the botom &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Material 4&lt;/P&gt;
&lt;P&gt;GROUP "box"&lt;/P&gt;
&lt;P&gt;BLOCK 1, 1, 1&lt;/P&gt;
&lt;P&gt;ENDGROUP&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;GROUP "void"&lt;/P&gt;
&lt;P&gt;ADD 0.2, 0.2, 0&lt;/P&gt;
&lt;P&gt;BLOCK 0.6, 0.6, 0.6&lt;/P&gt;
&lt;P&gt;DEL 1&lt;/P&gt;
&lt;P&gt;ENDGROUP&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;result = SUBGROUP ("box","void")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PLACEGROUP result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingolf_0-1698130093032.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47853iF91039BF14F27A4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingolf_0-1698130093032.png" alt="Ingolf_0-1698130093032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How did you do the list (with the GDL-script) in your answer? How did you place the list in a grey box with a slider?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:53:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572397#M5764</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2023-10-24T06:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572404#M5765</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expand the editing tool bar (3 dots) at the top where you type your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1698131155772.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47856i4EB6AC320494CE71/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1698131155772.png" alt="BarryKelly_0-1698131155772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will create the code box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 07:07:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572404#M5765</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-24T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572408#M5766</link>
      <description>&lt;P&gt;It can also be done with a BLOCK and a CUTPOLYA.&lt;/P&gt;
&lt;P&gt;The depth of the CUTPOLYA can be limited so it is not infinite.&lt;/P&gt;
&lt;P&gt;Just a matter of positioning it and rotating if necessary.&lt;/P&gt;
&lt;P&gt;A little harder to work with as you can't see it unless it is cutting something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 07:14:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572408#M5766</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-24T07:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572471#M5769</link>
      <description>&lt;P&gt;Pointing me in that direction, I managed to create a Block with a hole&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; But I do not know how to make the hole finite, so that there will be a "roof" in the Block. I tried with this script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Material 4

a=1.0
d=0.2

GOSUB "rect_cut"
DEL 1

BLOCK a, a, a
CUTEND


END
"rect_cut":
    CUTPOLY 4,
            d, d,
            a-d, d,
            a-d, a-d,
            d, a-d
    RETURN
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ingolf_0-1698152333286.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/47880i4777116E8F41AECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ingolf_0-1698152333286.png" alt="Ingolf_0-1698152333286.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 13:00:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572471#M5769</guid>
      <dc:creator>Ingolf</dc:creator>
      <dc:date>2023-10-24T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Voids in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572582#M5777</link>
      <description>&lt;P&gt;CUTPOLYA is a half infinite tube from the x-y plane, and you can set the length of that tube (0 is infinite length).&lt;/P&gt;
&lt;P&gt;You can also mask the edges of the cut as you would mask the edges of a PRISM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 01:38:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Voids-in-GDL/m-p/572582#M5777</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-25T01:38:23Z</dc:date>
    </item>
  </channel>
</rss>

