Hello Friends
How do you know if a mesh has quad or triangular meshes?
roof.gh (32.5 KB)
Hello Friends
How do you know if a mesh has quad or triangular meshes?
roof.gh (32.5 KB)
Hi Eghbalpourf
try this:
import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
faces = mesh.Faces
a = [face.IsQuad for face in faces]
If you want to know if a mesh is consisting of only quads maybe easier to use TriangleCount
or QuadCount
:
a = mesh.Faces.TriangleCount == 0 # mesh has no (valid) triangles, only (valid) quads