|
The option
end_draft_dist specifies an offset distance (a real number) for the swept surface in the plane where the sweep ends. It is similar to
draft_angle, except that an offset distance is used instead of an angle. The larger the defined offset, the wider the draft distance. The default of 0 creates a swept surface parallel with the path. A negative offset creates a swept surface which is closer to the path at the end than at the beginning.
|
|
|
Scheme Example
|
|
|
; end_draft_dist
|
|
(define path (edge:linear (position 0 0 0) (position 0 0 10)))
|
|
(define profile (edge:circular (position 0 0 0) 5))
|
|
(roll:name-state "original")
|
|
(define opts (sweep:options "end_draft_dist" 5))
|
|
(define sweep (sweep:law profile path opts))
|
|
(entity:set-color sweep 3)
|
|
; OUTPUT Positive Draft
|
|
|
(roll "original")
|
|
(render:rebuild)
|
|
(define opts (sweep:options "end_draft_dist" -5))
|
|
(define sweep (sweep:law profile path opts))
|
|
(entity:set-color sweep 3)
|
|
(render:rebuild)
|
|
; OUTPUT Negative Draft
|
|
|
Example 1-13. Defining Offset Distance
|
|
|
|
|
Figure 1-18. Sweeping with positive and negative Offset Distances
|