wire-body?
List of: Scheme Extensions
Subjects: Physical Properties
Contents: Kernel

Action: Determines if a Scheme object is a wire body.

Filename: kern/kern_scm/ent_scm.cxx

Syntax: (wire-body? object)

Arg Types: object scheme-object

Returns: boolean

Description: This extension returns #t if the specified object is a wire body; otherwise, it returns #f.


object specifies the scheme-object that has to be queried for a wire body.

Example: ; wire-body?

; Create an edge.

(define edge1 (edge:circular


(position 0 0 0) 25 180 270))

;; edge1

; Check to see if the edge is a wire-body.

(wire-body? edge1)

;; #f

; Create a wire-body from the edge.

(define wirebody1 (wire-body edge1))

;; wirebody1

; Check to see if the wire-body is a wire-body.

(wire-body? wirebody1)

;; #t
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0063.HTM