Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5786

Extract Mesh Faces with Naked Edges

$
0
0

@ccancino wrote:

@stevebaer could you help me with this:

#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)

same problem, I can’t run the ExtractFaces Method, what shoud I change/add? Thanks in advance!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5786

Trending Articles