nurbs

Help Contents graphix nurbs
styled clearcolor

graphix.nurbs :u1 :u2 :v1 :v2 :ucount :vcount :points :u :v :dimu :dimv{:ru1 :ru2 :rv1 :rv2}


Definition of general purpose NURBS

Definition:

to graphix.nurbs :u1 :u2 :v1 :v2 :ucount :vcount :points :u :v :dimu :dimv{:ru1 :ru2 :rv1 :rv2}

	make local "type "spline
	make local "focus vector 0 0 1
	make local "mode 2
	make local "color rgb 128 120 112

	to ondrawimage 
		output dll.graphix.drawnurbs 
	end
end

lookat (vector 3 0 4) (vector 0 0 0) (vector 0 0 2)
setmatrix [[1 0 0 0][0 1 0 0][0 0 1 0][0 0 0 1]]

Example:

Reference:

styled clearcolor