List of: Scheme Extensions
Subjects: Model Geometry
Contents: Kernel

Action: Determines if a Scheme object is a face.

Filename: kern/kern_scm/qfac_scm.cxx

Syntax: (face? object)

Arg Types: object scheme-object

Returns: boolean

Description: The extension returns #t if the object is a face; otherwise, it returns #f.

object specifies the scheme-object that has to be queried for a face.

Example: ; face?

; Create a solid block.

(define block1

(solid:block (position -10 -5 -15)

(position 10 5 15)))

;; block1

; Get the block's faces.

(define faces1 (entity:faces block1))

;; faces1

(face? block1)

;; #f

; Determine if face 2 is a face.

(face? (car (cdr faces1)))

;; #t