Triangle add-on for Blender

add-ons
(StompinTom) #28

Yeah, that could be easier, though clunkier :slight_smile: I’m quite busy at the moment, but perhaps there can be an alternate option to use the command-line version. The beauty of a library and ctypes is that it’s fast and integrated.

With regard to the name ‘bpy_triangle’, that is the name of the add-on, which is separate from the actual lib. In descriptions and publications, the capitalized ‘Triangle’ name is appropriate when referring to the lib, of course, as per the author’s wishes.

0 Likes

(StompinTom) #29

Does it warn you of any mismatches between x86 and x64 platforms? I’m a bit stumped about that… and you have MSVC redistributables installed and everything?

0 Likes

(Popi) #30

Hello! I’m very interested in trying that addon, but I can’t get it installed… I have been into “User preferences” and clicked on “Install Add-on from file” and been selecting the ZIP downloaded from github, but then it is just impossible to find in the list of addons, even by typing “triangle”. Could you please help me?

Thanks!

0 Likes

(ps8) #31

Unzip the file and place the folder “mesh_triangle” in C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons

0 Likes

(StompinTom) #32

@Popi did that work for you?
Thanks @ps8!

0 Likes

(ps8) #33

I do get an error though:

Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\mesh_triangle_init_.py”, line 231, in execute
(verts, faces, N) = triangulate_object(o, args)
File “C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\mesh_triangle_init_.py”, line 80, in triangulate_object
res = triangulate(verts, faces, border, args)
File “C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\mesh_triangle\triangle.py”, line 153, in triangulate
in_mesh = createTriangleIO(verts, faces, border)
File “C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\mesh_triangle\triangle.py”, line 107, in createTriangleIO
io.trianglelist = (c_int * (NF * 3))(*faces_raw)
IndexError: invalid index

location: :-1

0 Likes

(Tristan) #34

I can’t get this to work, getting the same errors as the ones mentioned above. Any solutions? Or is there an alternative for this? Thanks!

0 Likes

(Dito) #35

Hi StompinTom,

do you plan to update to Blender 2.8?
As others have already written, it would be a fantastic tool for text, clothing and softbodys.

0 Likes

(spiderbrigade) #36

I have the same errors others have posted - I have the 2015 Visual C++ installed (I even uninstalled the more recent 2017 redist and ran the 2015 installer to make sure).

This seems like a really useful addon if we could get it working…

0 Likes

(Tristan) #37

For anyone still looking for simple triangulation tesselation, Loïc Norgeot’s BakeMyScan-addon comes with a Blender integrated UI interface for MMGtools, which was exactly was I was looking for. The only downside is there is no 2.80 support yet, but it works perfectly with 2.79!

0 Likes

(StompinTom) #38

Eventually, yes. I haven’t had time to look into the 2.8 API, but hopefully will get around to it!

0 Likes

(StompinTom) #39

Thanks for this, looks super useful! Triangle is small and light, so maybe someone finds it useful, but MMG looks fantastic and really powerful.

0 Likes

(StompinTom) #40

I need to find time to look more into this. It seems a bit bizarre and hard to narrow down, but I need to do some debugging to figure out what the issue is.

0 Likes

(Dito) #41

Great to hear.
I’m really looking forward to it.

0 Likes

(DaremoK3) #42

@StompinTom
Glad to see you are still around, and thank you for creating this addon.

I modified it a little for my cloth sim needs, but I am still trying to work out how to code the hole function for darts in cloth.

Are all of the command line switches compiled into the DLL?

Here is example mod version so far:

Thanks again Tom - I am ‘someone (who) finds it useful’.

7 Likes

(StompinTom) #43

Looks great!

Yes, I’m still around, but super busy with life at the moment… :confused: I do intend to revisit this though, when things settle down a bit!

0 Likes

(Alberto Gonzalez(afx)) #44

amazing, do you mind sharing this?

1 Like

(NinthJake) #45

I am also very interested in this.

0 Likes

(Jeacom) #46

Woah, that’s intresting.

0 Likes

(DaremoK3) #47

Thanks for the interest…

I am working to polish it up, but I keep implementing, so the dirty code keeps getting away from me – still have several issues to solve.

This was just something I did for myself, but I would love to share when I am at a good state – I have a whole cloth sim tools panel with a couple of different remeshing tools modified from original authors.

  • No, Jeacom, your work is interesting – you busted out your version overnight after seeing this – I love your work, and am trying to learn all I can from your coding when I have time.
1 Like