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

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

Filename: kern/kern_scm/ent_scm.cxx

Syntax: (wire:closed? 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 closed wire.

Example: ; wire:closed?

; 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:closed? wirebody1)

; Entity is not a wire.

;; #f
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0064.HTM