Skip to content

Commit

Permalink
Better exception messages for breps that fail to meshify
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-Morgan committed Feb 27, 2025
1 parent af548ba commit f3c7f8f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public static RG.Mesh GetDisplayMesh(RhinoObject obj)
throw new ConversionException($"Unsupported object for display mesh generation {obj.GetType().FullName}");
}
}
if (renderMeshes == null)
{
//MeshingParametrs with small minimumEdgeLength often leads to `CreateFromBrep` returning null
throw new ConversionException($"Failed to meshify {obj.GetType()} (perhaps the brep is too small?)");
}

var joinedMesh = new RG.Mesh();
joinedMesh.Append(renderMeshes);
Expand Down

0 comments on commit f3c7f8f

Please sign in to comment.