Previous Thread  Next Thread

chat icon Closing/triangulating an outline?

mmelo

Posted: Thu Oct 24, 2002 11:18 pm
Joined: 20 Oct 2002
Posts: 17
Hi,

I have a few outlines that I imported into blender via python. Basically they are made up of vertices connected by edges, that are cyclic (i.e. closed). If I extrude them, I'm able to create a cylinder'oid with the outline and that works great.

But what I need is to be able to cap the solid, i.e. close the top and/or bottom of the object. Now if the outlines were convex I just needed to extrude once again, scale the last extruded points to zero, remove duplicates and that would be it. Obviously this does not work on a concave outline as you get triangles covering the holes.

I read that you cannot create curves from Python, so I can't go via there. So is there a way to automatically triangulate an outline (which is, in blender terms, a mesh)? Does anyone maybe have a script that does that?

Please let me know...

Thanks in advance,


Miguel
Reply with quote


Anthony

Posted: Fri Oct 25, 2002 4:27 am
Joined: 25 Oct 2002
Posts: 16
I have python code to triangulate an n-sided convex polygon, but I don't think it will help you.

Why don't you just select your concave mesh outline, enter edit mode, and press shift-f? Then alt-f a few times to make it look better.

__
http://ourworld.compuserve.com/homepages/scorpius
Reply with quote


mmelo

Posted: Fri Oct 25, 2002 10:07 am
Joined: 20 Oct 2002
Posts: 17
Anthony wrote:
I have python code to triangulate an n-sided convex polygon, but I don't think it will help you.

Why don't you just select your concave mesh outline, enter edit mode, and press shift-f? Then alt-f a few times to make it look better.

__
http://ourworld.compuserve.com/homepages/scorpius


Well, as the other guy said "slap me with a trout"! I didn't know you could do that in Blender! I don't have my specific outlines here, but I knocked one together and it seems that this is just what I need!

Thanks a lot,


Miguel
Reply with quote


Anthony

Posted: Wed Oct 30, 2002 5:13 am
Joined: 25 Oct 2002
Posts: 16
By the way, what outlines are you importing? Adobe Illustrator? I'd be curious to have a look at your script.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group