Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I connect points with a plane?

Asked by 10 years ago

Basically, I have a file in Blender. View Image.

I have extracted all of the vertices from this file and marked them all with small dots in Roblox Studio. View Image.

I am trying to figure out a script to connect all of these points with Parts (with a "paper" mesh in them, of course). I have no clue where to start. How should I go about doing this?

1 answer

Log in to vote
1
Answered by
m0rgoth 75
10 years ago

You need to use a triangle algorithm. These algorithms connect 3 points with 2 wedge parts which is essentially creating the polygons which are seen in Blender. There are many tools existing in free models right now that allow you to do connect them manually, but if you want to do it with code, I would suggest taking the algorithm out of one of the tools and then writing your own code around it. Here are a couple tools/plugins I found quickly:

Databrain's plugin

blobbyblob's tool

0
I wrote myself a triangle plugin with your idea. I was going to use a script, but then I realized that there wouldn't have been a way for the script to "figure out" which points I didn't want connected, and vice versa. I guess I'll do it by hand, but thanks anyway. DiamondBladee 135 — 10y
0
Yeah, I figured it'd be rather difficult. I guess you would have to store the information of what connects to what when you export from Blender. Anyways, glad I could help. m0rgoth 75 — 10y
Ad

Answer this question