|
Action:
|
Removes blend attributes, if any, from the input edge.
|
|
|
Filename:
|
blnd/blnd_scm/blnd_scm.cxx
|
|
|
Syntax:
|
(blend:remove-from-edge edge)
|
|
|
Arg Types:
|
edge
|
edge
|
|
|
Returns:
|
boolean
|
|
|
Description:
|
This extension removes any blend attributes from the input edge. This extension returns
#t if blend attributes exist and are removed; otherwise, it returns
#f.
|
|
|
edge is an input edge from which blend attributes are removed.
|
|
|
Example:
|
; blend:remove-from-edge
|
|
; Create a solid block.
|
|
(define block1
|
|
|
(solid:block (position -20 -20 -20)
|
|
|
(position 20 20 20)))
|
|
;; block1
|
|
; Create a list of edges.
|
|
(define list1 (entity:edges block1))
|
|
;; list1
|
|
; Set a constant blend radius for the block.
|
|
(blend:const-rad-on-edge list1 5)
|
|
;; (#[entity 3 1] #[entity 4 1] #[entity 5 1]
|
|
;; #[entity 6 1] #[entity 7 1] #[entity 8 1]
|
|
;; #[entity 9 1] #[entity 10 1] #[entity 11 1]
|
|
;; #[entity 12 1] #[entity 13 1] #[entity 14 1])
|
|
; Get blend information on the first edge.
|
|
(blend:edge-info (entity 3 1))
|
|
;; ("const radius" ("radius" . 5)
|
|
;; ("setback at start" . 0)
|
|
;; ("setback at end" . 0))
|
|
; Remove the blend attributes from the edge.
|
|
(blend:remove-from-edge (entity 3 1))
|
|
;; #t
|
|
; Verify that the blend has been removed.
|
|
(blend:edge-info (entity 3 1))
|
|
;; #f
|