[Bf-python] NURBS and python

Francesco Tamagni minchiahead at safe-mail.net
Sun Apr 4 02:28:54 CEST 2004


On Sat, 2004-04-03 at 18:34, Stephen Swaney wrote:
> While it may be programatically possible to reach
> inside a Curve and manipulate the second dimension
> of its control point array, I would be surprised
> if these changes showed up in Blender's GUI.  Allowing
> changes that have no effect violates the Principle
> of Least Astonishment.

I agree when you say that the user should use a different
interface in order to CHANGE and manipulate the control points
of Curves or Surfaces, but...

what I'm thinking of is a fast way to READ control points in a
raw way, that could facilitate the writing of exporters with the
capability of re-create surfaces in the output formats without the
need to convert them to meshes first.

Surely this aim will be reached when a proper Surface interface will be
implemented, and i'm interested in helping the development of such a 
clean interface.

By now, i easily produced a patch to add U and V read-only methods to
get knots and points and i think it's still quite a clean way to
reach above mentioned aim.

Ok, you convinced me. I'm starting by now to study in more depth the
surfaces and how could be made a Surface object interface. Are there
some aplha codes that tries to implement that interface?

Fra




More information about the Bf-python mailing list