law:end
List of: Scheme Extensions
Subjects: Laws
Contents: Kernel

Action: Returns the end of the domain for a law.

Filename: kern/kern_scm/law_scm.cxx

Syntax: (law:end in-law [term])

Arg Types: in-law law

term integer

Returns: real

Description: Returns the end of the domain of a law.


in-law specifies a law.


The optional term argument could be used to localize which term in the law is used.

Example: ; law:end

; Define a profile to sweep for interesting shape

(define profile1 (wire-body:points


(list (position 5 0 0)


(position 10 0 0)


(position 10 5 0)


(position 5 5 0)


(position 5 0 0))))

;; profile1

(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 edge-list(entity:edges helix1))

;; edge-list

(define law1


(law "cur(EDGE1)"


(list-ref edge-list 3)))

;; law1

(law:start law1)

;; 0

(law:end law1)

;; 12.5663706143592
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0008.HTM