SchemeExt:Edge:start-pt-cvty-info
From DocR23
Contents |
Action
Computes convexity information at start point of edge.
Filename
scm/scmext/intr/cvty_scm.cpp
APIs
None
Syntax
(edge:start-pt-cvty-info edge [use-curvatures=#t])
Argument Types
| Argument | Scheme Data Type |
|---|---|
| edge | edge |
| use-curvatures | boolean |
Returns
scm_pt_cvty_info
Description
This Scheme extension computes convexity information at a start point along the given edge. This consists of an angle (the sine of the angle between surface normals there, positive meaning convex). This also applies to the convexity of this edge if viewed with an angle tolerance large enough to regard it as "tangent". For tolerant edges, the "common range" of the edge is used and may differ slightly. This is the range over which the nominal edge curve and the coedge 3D curves appear to overlap "sensibly".
Arguments
- edge represents the given input edge.
- use-curvatures specifies whether to use curvatures.
Example
; edge:start-pt-cvty-info ; create a block (define block1 (solid:block (position 0 10 0)(position 10 20 20))) ;; block1 ; Define the edges of block1 (define edge-list (entity:edges block1)) ;; edge-list (edge:start-pt-cvty-info (list-ref edge-list 0)) ;; #[pt_cvty_info: 1 [cvty: knf] (tol 1e-10)]