SchemeExt:Abl:blend-holdline
From DocR21
Contents |
Action
Creates a variable radius blend on a list of edges using a holdline.
Filename
scm/scmext/abl/abl_scm.cpp
APIs
Syntax
(abl:blend-holdline bl-ents hl-ents [find-smooth-bl = #t find-smooth-hl = #t acis-opts])
Argument Types
| Argument | Scheme Data Type |
|---|---|
| bl-ents | (entity ...) |
| hl-ents | (entity...) |
| find-smooth-bl | boolean |
| find-smooth-hl | boolean |
| acis-opts | acis-options |
Returns
body
Errors
Blend edges or holdlines are not specified correctly.
Description
This extension returns a list of entity owners of all the edges affected by the blend. In the case where all the affected edges belong to a single solid, this extension returns only one element (the solid).
Arguments
- bl-ents specifies edges to be blended.
- hl-ents specifies entities that define the holdline(s).
- Smooth sequences of edges will be found if find-smooth-bl is set to true (default).
- Smooth sequences of edges will be found if find-smooth-hl is set to true (default).
- acis-opts contains optional parameters that are specific to the component and general ACIS options such as the journal and version information. The option argument (must be the last argument) is a class derived from acis-options.
Example
; abl:blend-holdline (part:clear) ; Create the part (define c1(solid:cylinder (position 0 0 -10)(position 0 0 10) 20)) (define c2(solid:cylinder (position 6 0 -5) (position 6 0 50) 6)) (define prt (bool:unite c1 c2)) ; Pick the edge to be the holdline (ray:queue 10.8852 -404.643 294.282 -0.0489231 0.826696 -0.560517 1) (define ehold (pick-edge)) (entity:set-color ehold BLUE) ; Pick the edge to be blended. (ray:queue 31.7696 -410.036 284.506 -0.0489231 0.826696 -0.560517 1) (define eblend (pick-edge)) (entity:set-color eblend RED) ; blend the edge (abl:blend-holdline eblend ehold)
