Creating a Helix
List of: Discussion Topic
Subjects: Laws
Contents: Laws

Helixes can be created using api_edge_helix. This is part of the Constructors Component. It does not require that the helix be created by offsetting a line with a twist law.

Scheme Example

; edge:helix
; Create a helical edge.
(define axis_start1 (position 0 0 0))
;; axis_start1
(define axis_end1 (position 0 0 10))
;; axis_end1
(define start_dir1 (gvector 1 0 0))
;; start_dir1
(define radius1 5)
;; radius1
(define thread_distance1 2)
;; thread_distance1
(define helix1

(edge:helix axis_start1

axis_end1 start_dir1 radius1 thread_distance1))

;; helix1
; Create another helical edge.
(define helix2

(edge:helix (position -20 0 0)

(position -20 10 10) (gvector 0 1 0) 5 2 #f))
;; helix2
; And one more.
(define helix3

(edge:helix (position 20 0 0)

(position 20 0 10) (gvector 0 1 0) 5 2 #f))
;; helix3
; OUTPUT Example


Figure 1-6. Helix Examples
PDF/LAW/01CMP.PDF
HTM/DATA/LAW/LAW/01CMP/0027.HTM