surface:from-face
List of: Scheme Extensions
Subjects: Model Geometry
Contents: Kernel

Action: Creates a surface from a face.

Filename: kern/kern_scm/surf_scm.cxx

Syntax: (surface:from-face face)

Arg Types: face face

Returns: surface


face specifies a face.

Example: ; surface:from-face

; Create a solid block.

(define block1


(solid:block (position 0 0 0)


(position 20 30 40)))

;; block1

; Get a list of the block's faces.

(define entities1


(entity:faces block1))

;; entities1

; Convert one of the block's faces to a surface.

(surface:from-face (car (cdr entities1)))

;; #[plane surface 401c2310]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0015.HTM