Keep Profile Face on Closed Sweep
List of: Discussion Topic
Subjects: Sweeping
Contents: Sweeping

The keep_start_face option specifies the profile face used to sweep remains available after the sweep operation. This is useful when the sweep path is a closed loop, or when selective Booleans will be used after the sweep.

For example, a circular profile can be swept around a circle, resulting in a torus. By default, once the torus is created, the start face is removed, along with information about where the torus surface starts and ends. When keep_start_face is turned on, the start face is left as part of the resulting model, as demonstrated in Example 1-29. This acts as a "handle" for the start and end location. If the swept torus were to be used in a selective boolean process, the handle would be necessary. For example, the API function api_boolean_tube_body makes use of the start face.

The sweep_to_body option should not be used with keep_start_face.

Scheme Example

; Keep start face
(option:set "sil" #t)
(define profile (edge:ellipse (position 10 0 0)

(gvector 0 0 1) 2.5))
(entity:set-color profile 2)
(define path (edge:ellipse (position 0 0 0) (gvector 0 1 0) 10))
(define torus1 (sweep:law profile path))
; OUTPUT Sweep to Body

(entity:check torus1)
;; checked:

1 lumps

1 shells

0 wires

1 faces

0 loops

0 coedges

0 edges

0 vertices

(part:clear)
(option:set "sil" #t)
(define profile2 (edge:ellipse (position 10 0 0)

(gvector 0 0 1) 2.5))
(entity:set-color profile2 2)
(define path2 (edge:ellipse (position 0 0 0) (gvector 0 1 0) 10))
(define torus2 (sweep:law profile2 path2 (sweep:options

"keep_start_face" #t)))
; OUTPUT Keep Start Face

(entity:check torus2)
;; checked:

1 lumps

1 shells

0 wires

2 faces

3 loops

3 coedges

1 edges

1 vertices

Example 1-29. Sweep with keep_start_face option


Figure 1-34. Keep Start Face
PDF/SWP/01CMP.PDF
HTM/DATA/SWP/SWP/01CMP/0038.HTM