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]
|