SchemeExt:Face:spherical?
From DocR23
Contents |
Action
Determines if a Scheme object is a spherical face.
Filename
scm/scmext/kern/qfac_scm.cpp
APIs
None
Syntax
(face:spherical? object)
Argument Types
| Argument | Scheme Data Type |
|---|---|
| object | scheme-object |
Returns
boolean
Description
This extension returns #t if the specified object is a spherical face; that is, if the object is a face whose underlying geometry is a sphere.
Arguments
- 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