creating the simplest NURBS cvSurface

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  06 June 2013
creating the simplest NURBS cvSurface

Hi everyone , I've just started to learn 3ds Max and maxscript and I try to write a script that creates a rectangular NURBScvSurface. There is no restriction, I've tried since this morning and through 8 hours, The viewport does not show me anything : ((

I found a script from help documents of autodesk which draws a cvCurve and , by imitating it, I tried to write my own script for NURBS cvSurface. Here is mine code :

sur=NURBSCVSurface name:"sample1-2" uorder:3 vorder:3 numCVs:[4,4] numUKnots:32 numVKnots:32
for k=1 to 16 do 
	setUKnot sur k 0
	setUKnot sur (k+16) 1
	setVKnot sur k 0
	setVKnot sur (k+16) 1

control_vertex=NURBSControlVertex [-50,-50,0]
setCV sur 1 1 control_vertex
setCV sur 1 2 control_vertex
setCV sur 1 3 control_vertex
setCV sur 1 4 control_vertex
setCV sur 2 1 control_vertex
setCV sur 2 2 control_vertex
setCV sur 2 3 control_vertex
setCV sur 2 4 control_vertex
setCV sur 3 1 control_vertex
setCV sur 3 2 control_vertex
setCV sur 3 3 control_vertex
setCV sur 3 4 control_vertex
setCV sur 4 1 control_vertex
setCV sur 4 2 control_vertex
setCV sur 4 3 control_vertex
setCV sur 4 4 control_vertex

appendObject deneme sur
n= NURBSNode sample name:"nurbs01"pos:[0,0,0]

My first question is that : How can I determine the number of numCVs and the number of numUKnots and numVKnots ???? I think numCVs should be 16 usually ? am I right ? But I have no Idea about number of knots and purpose of knots ? Please help me , I've found some documents about them but they dont simple to understand for me . thanks in advance
  06 June 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:39 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.