toTriangles died a miserable death?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Posts: 20
Joined: Fri Oct 18, 2002 9:47 am

toTriangles died a miserable death?

Postby volcaino » Fri Jun 27, 2003 9:53 am

I was just wondering whether the python function Mesh.toTriangles(ngon) is supposed to be part of the current python system any more?

If it's supposed to still be there, I guess no-one has realised that it hasn't worked in a while? If it was removed on purpose then it hasn't been completely removed? or is it a problem with the compatability of newer versions of python?

When i try to use this function i get the error:

Traceback (most recent call last):
File "Text", line 5, in ?
File "../modules/Blender/", line 69, in toTriangles
ImportError: No module named utils

Can anyone shed any light on this for me? Or even better still - fix it if it is supposed to still be part of the python interpreter.

Thanks muchly


Posts: 20
Joined: Mon Jan 13, 2003 3:50 am

Postby willian » Sat Jun 28, 2003 4:38 am


The Mesh module was never completed, NaN went away before it was finished. In its state, it's just a wrapper in Python of NMesh. It would accept n-sided gons and have good tesselation in the Publisher version, probably, but that now is history.

The new implementation isn't part of official Blender versions yet, we expect to integrate it for 2.28. It will have NMesh with bug fixes (and people to regularly fix bugs in the Blender Python code), but not Mesh.

So, unlike what the 2.25 docs said: NMesh isn't going away -- Mesh is going away.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest