Drawing Nurbs

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Tue Jul 19, 2005 9:20 pm
Location: Brasil

Drawing Nurbs

Post by mauricio » Tue Aug 09, 2005 11:44 pm

Hi, i am trying to make a nurbs surface from some points i have.
Can anyone tell me how can i do it? I can't figure it out from the Curve section in the python api documentation.
Thanks for reading :D

Posts: 0
Joined: Wed Mar 17, 2004 5:20 pm

Post by an-toni » Thu Aug 11, 2005 8:17 am

doesn't this cut it?

http://www.blender.org/modules/document ... tml#append
Appends a new point to a curve. This method appends points to both Bezier and Nurb curves. The type of the argument must match the type of the curve. List of 4 floats (optional 5th float is the tilt value in radians) for Nurbs or BezTriple for Bezier.

new_point - the new point to be appended to the curve. The new point can be either a BezTriple type or a list of 4 floats in x,y,z,w (optionally tilt in radians as 5th value) format for a Nurb curve.
(type=BezTriple or list of 4 floats (optional 5th float is the tilt value in radians))


Posts: 0
Joined: Tue Jul 19, 2005 9:20 pm
Location: Brasil

Post by mauricio » Fri Aug 12, 2005 1:01 am

I don't know if it works. I'm going to test it. I'm trying to model a surface, but i read somewhere that the same class Curve works for surfaces.
Has anyone used this class?

Posts: 53
Joined: Fri Oct 18, 2002 1:35 am
Location: Oceanside, California

Post by Sutabi » Sun Aug 14, 2005 12:52 am

the most you can do with that class is draw 3d curves. In Blender there are 2 type of curves, Bezier and Nurbs. There has yet been Nurb Surface added to the api (not sure why!!!)

Posts: 0
Joined: Mon Nov 07, 2005 12:57 am

Creating 3D Bezier with python

Post by rsz » Wed Nov 23, 2005 11:42 pm

I'm still puzzled, and is there any way to change the control points' types between "Vector" and "Aligned"? I tried blender 2.4 alpha 2, where BezTriple is unhidden, but it didn't help me any more. Can someone provide a script example to create a 3D Bezier in the 3D View from scratch using python?

I have procedural paths intended for 3D Beziers, hence fiddling with the UI is not an option.

Is this something that needs further code development? If so, any hints where to begin? I'd be happy to contribute.


Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Thu Nov 24, 2005 12:21 am

Hi rsz,

the nurbs expert is eman who has integrated the nurbana library to blender. Nurbana won't be included for this release, but I think will be for the next one.

eman doesn't read the forums much, so I suggest emailing the bf-committers mailing list with your question and offer to help.


Post Reply