Skip to content

Commit 4bef3c1

Browse files
committed
further cleanup
1 parent e2d582f commit 4bef3c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compas_rhino/conversions/meshes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ def vertices_and_faces_to_rhino(
148148
if len(vertices) != len(vertexcolors):
149149
raise ValueError("The number of vertex colors does not match the number of vertices.")
150150

151-
face_callback = face_callback or (lambda _: None)
152151
mesh = Rhino.Geometry.Mesh()
153152

153+
if not face_callback:
154+
155+
def face_callback(face):
156+
pass
157+
154158
if disjoint:
155159
vertexcolors = []
156160

@@ -202,7 +206,6 @@ def vertices_and_faces_to_rhino(
202206

203207
# if color:
204208
# mesh.VertexColors.CreateMonotoneMesh(SystemColor.FromArgb(*color.rgb255))
205-
206209
# else:
207210
if not color:
208211
if vertexcolors:

0 commit comments

Comments
 (0)