splsurf:set-u-knot-item
List of: Scheme Extensions
Subjects: Spline Interface
Contents: Constructors

Action: Modifies a single knot value, in u, for a spline surface.

Filename: cstr/cstr_scm/ssrf_scm.cxx

Syntax: (splsurf:set-u-knot-item surface index value)

Arg Types: surface splsurf

index integer

value real

Returns: splsurf

Description: The argument index specifies the index into the list of knots on the spline surface given by the argument surface. The argument value specifies the new knot value.


surface is an input surface argument.


index specifies the index into the list of knots on the spline surface given by the argument surface.


value specifies the new knot value.

Example: ; splsurf:set-u-knot-item

; Define a spline surface.

(define surface1 (splsurf))

;; surface1

; Define a list of knots.

(define knots1 (list 0 0 0 0 0.5 1 1 1 1))

;; knots1

; Set the list of knots for the spline surface.

(define surflist


(splsurf:set-u-knot-list surface1 knots1 9))

;; surflist

; Change a u-knot item.

(define surfitem


(splsurf:set-u-knot-item surface1 3 0.5))

;; surfitem

; Get the u-knot item.

(splsurf:u-knot-item surface1 3)

;; 0.5
PDF/CSTR/03SCN.PDF
HTM/DATA/CSTR/CSTR/03SCN/0043.HTM