cvty:concave
List of: Scheme Extensions
Subjects: Model Geometry, Model Topology
Contents: Intersectors

Action: Determines whether a given cvty is concave or not.

Filename: intr/intr_scm/cvty_typ.cxx

Syntax: (cvty:concave cvty)

Arg Types: cvty scm_cvty

Returns: boolean

Description: This extension returns #t if the given cvty is concave and #f if it is not. Equivalent to the C++ cvty::concave.


Note Additional enquiry functions such as cvty:concave-tangent etc. are defined in scm/examples/cvty.scm


cvty represents the convexity at a point or along a single edge (or something equivalent), such as convex, tangent convex etc.

Example: ; cvty:concave

; 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

; Determine if an edge is concave

(cvty:concave (pt-cvty-info:instantiate


(edge:mid-pt-cvty-info


(list-ref edge-list 0)) -1))

;; #f
PDF/INTR/02SC.PDF
HTM/DATA/INTR/INTR/02SC/0002.HTM