Action:
|
Gets the radius of a spherical face.
|
|
Filename:
|
kern/kern_scm/qfac_scm.cxx
|
|
Syntax:
|
(face:sphere-radius face)
|
|
Arg Types:
|
face
|
spherical-face
|
|
Returns:
|
real
|
|
Description:
|
This extension returns the radius of the spherical face.
|
|
|
face specifies a spherical face entity.
|
|
Example:
|
; face:sphere-radius
|
|
; Create a solid sphere.
|
|
(define sphere1 (solid:sphere (position 0 0 0) 38))
|
|
;; sphere1
|
|
; Find the faces of the solid sphere.
|
|
(define faces1 (entity:faces sphere1))
|
|
;; faces1
|
|
; Find the radius of a spherical face.
|
|
(face:sphere-radius (car faces1))
|
|
;; 38
|