loop?
List of: Scheme Extensions
Subjects: Model Topology
Contents: Kernel

Action: Determines if a Scheme object is a loop.

Filename: kern/kern_scm/ent_scm.cxx

Syntax: (loop? object)

Arg Types: object scheme-object

Returns: boolean

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


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

Example: ; loop?

; Create a solid cylinder.

(define cyl1 (solid:cylinder (position 0 0 0)


(position 8 8 8) 32))

;; cyl1

; Find the loops of the cylinder.

(define loops1 (entity:loops cyl1))

;; loops1

; Determine if the cylinder's loop is

; actually a loop.

(loop? (car (cdr loops1)))

;; #t

(loop? cyl1)

;; #f
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0033.HTM