|
The following example shows how a shelling operation works by creating a hollow solid body.
|
|
|
Scheme Example
|
|
|
; shell:hollow-body
|
|
; Create a solid block.
|
|
(define my_block (solid:block (position -20 -20 -20)
|
|
(position 20 20 20)))
|
|
;; my_block => #[entity 1 1]
|
|
(define my_face (car (entity:faces my_block)))
|
|
;; my_face => #[entity 2 1]
|
|
; Hollow the body
|
|
(shell:hollow-body my_face 10)
|
|
(gvector 0 0 1))) 10)
|
|
;; #[entity 1 1]
|
|
; Save the results to an output file.
|
|
(part:save "tmpshell1.sat")
|
|
;; #t
|
|
|
|
|
Figure 8-9. Hollow Body
|