Hello,
I’m trying to use Rhino.Geometry.Collections.MeshFaceList.ExtractFaces method which asks for self: MeshFaceList, faceIndex: int as input. The script editor outputs that ExtractFaces method takes exactly 2 arguments, but I can’t get over with MeshFaceList type.
Here my script:
#python to extract mesh faces with naked edges
import rhinoscriptsyntax as rs
import os.path
from os import path
import Rhino
mesh = rs.GetObject(“Select mesh”, rs.filter.mesh)
vertices = rs.MeshVertices(mesh)
meshfaces = rs.MeshFaceVertices(mesh)
naked = rs.MeshNakedEdgePoints(mesh)
for i, vertex in enumerate(vertices):
if naked[i]:
rs.AddPoint(vertices[i])
vertex_faces = rs.MeshVertexFaces(mesh, i )
if vertex_faces:
for face_index in vertex_faces:
face = meshfaces[face_index]
Rhino.Geometry.Collections.MeshFaceList.ExtractFaces(something?,face)
Can you explain the construction of MeshFaceList to a beginner and give an example of python script which uses MeshFaceList please?
Thanks
Christian