[Bf-python] Nurb Curve default resolution patch

Gergely Erdelyi gergely.erdelyi at gmail.com
Mon Mar 7 16:39:45 CET 2005


Hello,

Here comes a simple two-line fix for the default resolution values of NURB.
Right now the resolu and resolv values of appended NURBs is set to 12, which
produces nice and smooth curves but eats memory pretty badly if you have a
lot of them.

This patch makes the appendNurb() method to use resolu and resolv values
of the Curve object when appending a new NURB. This allows the user to
control the resolution values. It must be set before the first NURB is added
to the curve. In the long run it would probably make sense to give access 
to the resolution values of the CurNurb object as well.

Please check the patch and apply it if you think it makes sense.

Gergo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Curve.c-resol.patch
Type: application/octet-stream
Size: 614 bytes
Desc: not available
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20050307/d028ac81/attachment.obj>


More information about the Bf-python mailing list