What's the "syntax" to create a 3d-face?


This would be an example for creating a Cogo-Point using the CogoPoint.ByGeometry-node.

My goal is to create a 3d-face (many, in fact) using the Face.ByGeometry-node.
Unfortunately I’m unable to find the correct syntax to create the correct input for this node.

Let’s assume I have four points (X,Y,Z) and also the correct indices to connect them, how do I have to type this to create a valid input?

Is there any documentation for cases like this?

Any input is highly appreciated! :slight_smile:

Hi @pumpaij,

The necessary geometry type here is an Autodesk.DesignScript.Geometry.Face. You can’t create a face directly, but rather get the face geometry from some other type of topology. Here’s an example using a surface:

Look under the Geometry → Topology and Geometry → Face shelves. More info here.

1 Like

Thank you for your quick reply! :slight_smile:
So there isn’t really a “direct” way to input a face and I’d have to do something like this?

Is there a way to convert geometry of the Mesh-Toolkit back to something that can be drawn in Modelspace?

And if I had a .txt-file that would look something like this:


Would there be a way using Python to convert them into faces directly?

No, I don’t believe so.

How about just using Surface.ByPerimeterPoints instead of creating all of the curves and patching them? You could sort the points by indices using List.SortByKey to get them in the correct order.

I believe that the Springs package has a TKMeshToMesh node for converting to a Dynamo native object.