face:sphere-center
List of: Scheme Extensions
Subjects: Construction Geometry
Contents: Kernel

Action: Gets the center position of a spherical face.

Filename: kern/kern_scm/qfac_scm.cxx

Syntax: (face:sphere-center face)

Arg Types: face spherical-face

Returns: position

Description: This extension returns the position of the center of a spherical face.


face specifies a spherical face entity.

Example: ; face:sphere-center

; 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 center of the spherical face.

(face:sphere-center (car faces1))

;; #[position 0 0 0]
PDF/KERN/13SCF.PDF
HTM/DATA/KERN/KERN/13SCF/0012.HTM