|
Action:
|
Compute convexity information at a point on an edge.
|
|
|
Filename:
|
intr/intr_scm/cvty_scm.cxx
|
|
|
Syntax:
|
(edge:pt-cvty-info edge param
|
|
|
[use-curvatures=#t])
|
|
|
Arg Types:
|
edge
|
edge
|
|
param
|
real
|
|
use-curvatures
|
boolean
|
|
|
Returns:
|
scm_pt_cvty_info
|
|
|
Description:
|
Compute convexity information at a specified parameter point (start-point) along an edge. This consists of an angle (the [sine of the] angle between surface normals there, +ve meaning convex), and the convexity of the edge here if viewed with an angle tolerance sufficiently large that we would regard this point as tangent.
|
|
|
Example:
|
; edge: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:pt-cvty-info (list-ref edge-list 0) 1)
|
|
;; #[pt_cvty_info: 1 [cvty: knf] (tol 1e-10)]
|