cancel
Showing results for
Did you mean:
Developer forum
cancel
Showing results for
Did you mean:

## substract from block with help of revolve, if angle # 360

Enthusiast
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.
```
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"
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
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
endgroup

result3 = subgroup ("solid block", "revolve romb 180")	! HAS NO EFFECT - second cube remains the same, without any hole
placegroup result3

del top
```
AC 22, 24 | Win 10
1 ACCEPTED SOLUTION
Solution
Ace
For some reason it won't work with REVOLVE.
Instead use REVOLVE{2}, then everything is fine.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
2 REPLIES 2
Solution
Ace
For some reason it won't work with REVOLVE.
Instead use REVOLVE{2}, then everything is fine.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Enthusiast
Yeah, you're right. Thank you
AC 22, 24 | Win 10

Latest solutions

Most liked posts