How do I create a Part from a set of vertices/faces in FeatureScript?

greg_frost204
greg_frost204 Member Posts: 12 ✭✭
edited May 2020 in Community Support
I want to be able to create a solid part from a set of mathematically computed vertices.
I know how to associate the vertices into faces that form a closed volume, but I'm unsure of how best to use feature script to generate the solid.
Fumbling about trying things, I have found that I can generate the points as a set of vectors and organise these into sets that represent triangular faces.
I was able to create surfaces for each face by using opCreateBSplineCurve and opPoint for opposing sides of the triangle and then opLoft to create the flat surface of each face.
At that point I am a bit stuck.
How do I combine all of these surfaces into a solid?
Or is this the complete wrong way to go about this? If so what is a better way?

It seems a bit wrong to be using a spline to create straight lines and a loft to create a flat surface, but it is the best I could manage as a NOOB.

Here is a cut down example of what I have been trying which attempts to create an icosahedron:
https://cad.onshape.com/documents/dc3ef29e02d8dd0f85f142fe/v/2c50a0693a9ca9e82418b66b/e/ec766863895ec061f4d699ef
Tagged:

Answers