!Пример 1
GROUP "box"
BRICK 1, 1, 1
ENDGROUP
GROUP "sphere"
ADDZ 1
SPHERE 0.45
DEL 1
ENDGROUP
GROUP "semisphere"
ELLIPS 0.45, 0.45
ENDGROUP
GROUP "brick"
ADD -0.35, -0.35,0
BRICK 0.70, 0.70, 0.35
DEL 1
ENDGROUP
! Вычитание "sphere" из "box"
result_1=SUBGROUP("box","sphere")
! Пересечение "semisphere" с "brick"
result_2=ISECTGROUP("semisphere","brick")
! Объединение ранее созданных элементов
result_3=ADDGROUP(result_1,result_2)
PLACEGROUP result_3
KILLGROUP "box"
KILLGROUP "sphere"
KILLGROUP "semisphere"
KILLGROUP "brick"
!Пример 2
halb= 0.5
GROUP "Kugel"
ADDZ halb/3
MULY 0.25
MATERIAL Glas Normalglas
SPHERE halb
ENDGROUP
GROUP "Kiste"
ADD -halb,-halb/4,-2*halb/3
MATERIAL Natur Eis
BLOCK 2*halb,halb/2,2*halb/3
ENDGROUP
differenz1=SUBGROUP("Kugel","Kiste")
differenz2=SUBGROUP("Kiste","Kugel")
PLACEGROUP differenz1
ADDY halb
PLACEGROUP differenz2