CGTalk > Software > Autodesk 3ds max
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 06-26-2013, 11:56 AM   #1
New Member
Join Date: Jun 2013
Posts: 12
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 :

sample=NURBSSet() 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 control_vertex.pos=[-50,-25,0] setCV sur 1 2 control_vertex control_vertex.pos=[-50,25,0] setCV sur 1 3 control_vertex control_vertex.pos=[-50,50,0] setCV sur 1 4 control_vertex control_vertex.pos=[-25,-50,0] setCV sur 2 1 control_vertex control_vertex.pos=[-25,-25,0] setCV sur 2 2 control_vertex control_vertex.pos=[-25,25,0] setCV sur 2 3 control_vertex control_vertex.pos=[-25,50,0] setCV sur 2 4 control_vertex control_vertex.pos=[25,-50,0] setCV sur 3 1 control_vertex control_vertex.pos=[25,-25,0] setCV sur 3 2 control_vertex control_vertex.pos=[25,25,0] setCV sur 3 3 control_vertex control_vertex.pos=[25,50,0] setCV sur 3 4 control_vertex control_vertex.pos=[50,-50,0] setCV sur 4 1 control_vertex control_vertex.pos=[50,-25,0] setCV sur 4 2 control_vertex control_vertex.pos=[50,25,0] setCV sur 4 3 control_vertex control_vertex.pos=[50,50,0] 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
Old 06-26-2013, 11:56 AM   #2
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,479
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:11 PM.

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