face:spherical?
List of: Scheme Extensions
Subjects: Model Geometry
Contents: Kernel

Action: Determines if a Scheme object is a spherical face.

Filename: kern/kern_scm/qfac_scm.cxx

Syntax: (face:spherical? object)

Arg Types: object scheme-object

Returns: boolean

Description: This extension returns #t if the specified object is a spherical face.


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

Example: ; face:spherical?

; Create a solid sphere.

(define sphere1 (solid:sphere (position 0 0 0) 20))

;; sphere1

; Determine if the solid sphere is a

; spherical face.

(face:spherical? sphere1)

;; #f

; Find the faces of the solid sphere.

(define faces1 (entity:faces sphere1))

;; faces1

; Determine if the face is actually a

; spherical face.

(face:spherical? (car faces1))

;; #t
PDF/KERN/13SCF.PDF
HTM/DATA/KERN/KERN/13SCF/0014.HTM