Greetings.
For example, if I need to change in a mesh quad face one vertex to another by swaping their indeces?
I’m trying to use this method MeshFace.Set Method (Int32, Int32, Int32, Int32)
Heres my code:
Mesh_Faces_list = My_Mesh_Ref.Faces
this_face = Mesh_Faces_list.GetFace(1)
print("Before:")
print(this_face)
print("Trying:")
this_face.Set(1, 2, 3, 4)
print(this_face)
print("After:")
Mesh_Faces_list = My_Mesh_Ref.Faces
this_face = Mesh_Faces_list.GetFace(1)
print(this_face)
But I get this result:
Before:
Q(5, 3, 2, 4)
Trying:
Q(1, 2, 3, 4)
After:
Q(5, 3, 2, 4)
Theres also Item method which seems may do the same
https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Geometry_MeshFace_Item.htm
print("Trying:")
this_face.Item[1] = 11
print(this_face)
But the result is the same
5 posts - 2 participants