loop:type
List of: Scheme Extensions
Subjects: Debugging
Contents: Kernel

Action: Returns the type of given loop.

Filename: kern/kern_scm/loop_scm.cxx

Syntax: (loop:type loop)

Arg Types: loop entity

Returns: string

Description: This returns a string specifying the type of loop. This includes "Periphery loop", "Hole", "Separation loop", "Separation loop (U)", "Separation loop (V)", "Separation loop (UV)", and "Unknown type of loop"


loop is an entity representing a loop.

Example: ; loop:type

; Create a model with loops

(define profile1 (edge:linear


(position 5 0 0) (position 10 0 0)))

;; profile1

(is:helix profile1)

;; #f

(define path1(edge:helix


(position 0 0 0)


(position 0 40 0)


(gvector 1 0 0) 10 20 #t))

;; path1

(define helix1(sweep:law profile1 path1))

;; helix1

(define loop-list (entity:loops helix1))

;; loop-list

(loop:type (list-ref loop-list 0))

;; "Periphery loop"
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0032.HTM