curve:transform
List of: Scheme Extensions
Subjects: Modifying Models
Contents: Kernel

Action: Modifies a curve or edge by applying a transform.

Filename: kern/kern_scm/qgom_scm.cxx

Syntax: (curve:transform edge-or-curve transform)

Arg Types: edge-or-curve curve | edge

transform transform

Returns: curve | edge


edge-or-curve specifies a curve or an edge.


transform specifies a transformation to be applied to the curve.

Example: ; curve:transform

; Create a circular curve.

(define curve1


(curve:circular (position 0 0 0) 8))

;; curve1

; To view this curve, attach it to an entity.

(define edge1 (edge:from-curve curve1))

;; edge1

; Modify the curve with a transform

(curve:transform curve1


(transform:translation (gvector 0 5 0)))

;; #[curve 1075640854]

; OUTPUT Original


; To view this curve, attach it to an entity.

(define edge1 (edge:from-curve curve1))

;; edge1

; OUTPUT Result



Figure 12-2. curve:transform
PDF/KERN/12SCA.PDF
HTM/DATA/KERN/KERN/12SCA/0048.HTM