Triangle add-on for Blender

UPDATE: Linux is now supported. :fireworks:

See first post for details and Github link.

Iā€™ve managed to compile Triangle for Linux and it seems to work OK. Download the latest mesh_triangle from the Github link. There is a new libtriangle.so in the folder as well as some small changes in triangle.py and __init__.py.

This addon isnā€™t appearing after installation for me. Iā€™ve tried both installing through user prefs and manually copying the `mesh_triangleā€™ folder as suggested further up this thread. Iā€™m running Blender 2.8 Beta but also tried in 2.79.

Can anyone suggest anything else worth trying?

Thanks.

For the GitHub version:
First you have to unzip the file. Then there is a folder called mesh_triangle which you need to zip. Then in Blender 2.79, you should see it in the preferences (addons). The script doesnā€™t seem to be for 2.8.

For the latest link: Triangle add-on for Blender - #48 by DaremoK3 :
Itā€™s for Blender 2.8, but gives an error related to depsgraph.

@anon72338821 Thanks for the advice, the version on GitHub has installed now for Blender 2.79. :grinning:

Couldnā€™t get DaremoK3ā€™s version for 2.8 to install though?

Iā€™ve got a version for 2.8 working at home. Iā€™ve just been away on holiday, so Iā€™ll try to update soon!

1 Like

Ok, Iā€™ve created a separate branch for the 2.8 version. Download the files from this link:

2 Likes

not working for meā€¦

error registering panel class ā€˜TRIANGLE_PT_Setttingsā€™ has category ā€˜Toolsā€™

Hi @wilBr did you download the latest version from the 2-80 branch?

2 Likes

I didā€¦ but I did again and working nice nowā€¦

are you thinking support 3d shapes some time?

In what way? Triangle works on 2d shapes. There is also Tetgen which can also produce a triangulated boundary of 3d mesh volumes.

Keeping 3d curves coordinatesā€¦ triangle addon is flatting 3d curves to 2d curves before convert to mesh, because it is 2d, alright, but if it can to do triangulade meshs from non flat curves new uses rise like make terrain from curves keeping boundary vertex count.

Sure, but the problem is what happens to the new generated verticesā€¦ Trick is to interpolate them somehow height-wise.

This would be cool, maybe eventually something could be done for it.

Or use smooth vertices operator for non boundary vertex :slight_smile:

Hello, folks! Can you please help me with the error? Iā€™m doing it in Blender 2.90, Windows 7.

Traceback (most recent call last):
File ā€œC:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\mesh_triangle_init_.pyā€, line 237, in execute
(verts, faces, N) = triangulate_object(o, args)
File ā€œC:\Users\Dell\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\mesh_triangle_init_.pyā€, line 75, in triangulate_object
mesh_in = obj_in.to_mesh(bpy.context.depsgraph, apply_modifiers=False, calc_undeformed=False) # dk3 change
AttributeError: ā€˜Contextā€™ object has no attribute ā€˜depsgraphā€™

location: :-1

triangle addon test.blend (586.5 KB)

The Blender Python API is constantly changing, I donā€™t think this add-on has been updated for the most recent version of Blender. Thereā€™s a fix for this error at

if you want to try and patch the add-on

1 Like

@ michalpe :

You are using my original port to 2.80 ā€“ I am the # dk3 you see in the error at the end of the code ā€“ That was the needed change at the time coding against the turbulently moving Blender API.

It was changed to not needing that shortly after, and Tom, the original author of this addon, has made all necessary changes for a working version.

Download and use his official addon ā€“ You can find it here :

  • Click on the 2.80 link for the 2.80 branch.

Hope this helpsā€¦

1 Like

Hi @michalpe, @DaremoK3 is right. If youā€™re not using the 2.80 version, give that a shot and let me know if it works.

In any case, I need to find some time to update the add-on and tidy up the repository. I donā€™t think it makes much sense to keep the original version for 2.79, and I need to see what else has changed since, up to 2.92.

Glad people are finding it useful :slight_smile:

1 Like

Hi @StompinTom @DaremoK3 Hope you are both doing well. Awesome job

Is this possible this can be added top your addon?
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Maya-Modeling/files/GUID-79763ED5-E7BD-408B-937B-92743EDDF57A-htm.html

Where edge loops are created at the boundary of the colors with triangles covering the entire mesh? Maybe a way to automatically create uv seams as well where the edge loops are formed so they can easily be selected if need be?

and thanks for making this addon available for other artists to use.

EDIT: This addon is excellent. Works in Blender 3.0.Faster too. Any chance we can get a quad option?

1 Like

If you want it to work with quads, try this addon:

Just remember that it works slightly different. You start from a mesh, not a curve, and it has to be filled first. The fill can be messy, and the addon will fix it, but still, there have to be faces as input.
I eventually settled myself on that addon and it works well. Just donā€™t use too high values on edge length and iterations, or youā€™ll freeze Blender.

2 Likes

Can you share it? Looks interesting to use it for cloth patterns. And I donā€™t understand the licensing? MIT license does it mean I can not take it for own addons?
It would be nice to integrate this triangulation to my addon.
Can somebody tell me how to understand the license?

I would like to test this in blender 3.0 in official version.

All the best
Vjaceslav T.

1 Like