face = Rhino.Geometry.MeshFace(0, 1, 2)
msh = Rhino.Geometry.Mesh()
msh.Vertices.Add(P0)
msh.Vertices.Add(P1)
msh.Vertices.Add(P2)
msh.Faces.AddFace(face)
a = pt_to_insert = Rhino.Geometry.Point3f(0.0,0.0,0.0)
msh.Vertices.Insert(3, pt_to_insert)
msh.Faces.Item[0].D = 4
msh.Faces.AddFace(Rhino.Geometry.MeshFace(2, 3, 4))
print msh.Faces.TriangleCount
b = msh
This above doesn’t seem to work.
Scenario:
I wish to start with a triangular single face mesh. then insert one point making another triangle.
subsequently I wish to be able to move each vertex by entering coordinates.
Thanks in advance.