Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I connect points with a plane?

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

✓ Accepted answer

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

2 comments

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.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.