<?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: substract from block with help of revolve, if angle # 360 in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279267#M3311</link>
    <description>For some reason it won't work with REVOLVE.&lt;BR /&gt;
Instead use REVOLVE{2}, then everything is fine.</description>
    <pubDate>Tue, 29 Jun 2021 11:22:28 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2021-06-29T11:22:28Z</dc:date>
    <item>
      <title>substract from block with help of revolve, if angle # 360</title>
      <link>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279266#M3310</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I'm trying to make object with complex wholes. To simplify that made that with basic figures, but as i see subgroup works fine only when revolve's angle =360. Otherwise i see no effect. I was hoping that if j=1 in mask (closed top, side surfaces it), programme would consider that this object is closed/whole, same as when angle 180.&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;project2 3,270,2
!please in settings make 3D as wired - to see holes inside blocks

model solid
pen 1
building_material 10	!concrete - just to see fill in section view

group "solid block"
	add -0.25*a,-0.5*b,-0.5*zzyzx
	block A,B,ZZYZX
endgroup

group "revolve romb 360"	
	si=1
	put 0,0,si
	put A*0.25, B*0.25, si
	put A*0.5, 0, si
	j1=1:	j2=1:	j3=1:	j4=1:	j5=1:	j6=1:	j7=1:	j8=0:	j9=0
	maskRevolve = j1 + j2*2 + j3*4 + j4*8 + j5*16 + j6*32 + j7*64 + j8*128 + j9*256
	revolve nsp/3, 360, maskRevolve, get(nsp)
endgroup

result = subgroup ("solid block", "revolve romb 360")
placegroup result

group "revolve romb 180"	
	model solid
	si=1
	put 0,0,si
	put A*0.25, B*0.25, si
	put A*0.5, 0, si
	j1=01:	j2=01:	j3=01:	j4=01:	j5=01:	j6=01:	j7=01:	j8=01:	j9=01
	maskRevolve = j1 + j2*2 + j3*4 + j4*8 + j5*16 + j6*32 + j7*64 + j8*128 + j9*256
	revolve nsp/3, 180, maskRevolve, get(nsp)
endgroup

add A*2,0,0
result3 = subgroup ("solid block", "revolve romb 180")	! HAS NO EFFECT - second cube remains the same, without any hole
placegroup result3

del top
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:04:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279266#M3310</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2021-09-14T07:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: substract from block with help of revolve, if angle # 360</title>
      <link>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279267#M3311</link>
      <description>For some reason it won't work with REVOLVE.&lt;BR /&gt;
Instead use REVOLVE{2}, then everything is fine.</description>
      <pubDate>Tue, 29 Jun 2021 11:22:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279267#M3311</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-06-29T11:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: substract from block with help of revolve, if angle # 360</title>
      <link>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279268#M3312</link>
      <description>Yeah, you're right. Thank you</description>
      <pubDate>Tue, 29 Jun 2021 12:25:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/substract-from-block-with-help-of-revolve-if-angle-360/m-p/279268#M3312</guid>
      <dc:creator>A_ Smith</dc:creator>
      <dc:date>2021-06-29T12:25:53Z</dc:date>
    </item>
  </channel>
</rss>

