|
Use the Scheme extension
sweep:options with the
"draft_angle" option to sweep a wire. This example shows converting four wires into a wire body, creating a path to sweep, and then creating the final solid by sweeping the wire body.
|
|
|
Scheme Example
|
|
|
(define edge_1 (edge:circular (position 0 0 0) 25 0 180))
|
|
(define edge_2 (edge:circular (position 0 0 0) 25 180 270))
|
|
(define edge_3 (edge:linear (position 0 0 0) (position 25 0 0)))
|
|
(define edge_4 (edge:linear (position 0 0 0) (position 0 -25 0)))
|
|
(define w_body (wire-body (list edge_4 edge_3 edge_1 edge_2)))
|
|
(define path1 (edge:linear (position 0 0 0) (position 0 0 7.5)))
|
|
; OUTPUT Original
|
|
|
; Create a solid by sweeping the wire body.
|
|
(define sweep1 (sweep:law w_body path1
|
|
(sweep:options "draft_angle" -10)))
|
|
; OUTPUT Result
|
|
|
Example 1-5. Sweep a Wire
|
|
|
|
|
Figure 1-5. Sweeping a Wire
|