How to fill holes in a mesh

Sorry to be a pita… but is there a simpme way to fill holes in a mesh in R5. I see it in R6 but cant find any example code for R5 implimentation?

Hi @ChristopherBotha,

I’ve split this into a new topic…

– Dale

@ChristopherBotha,

you might try what the V6 documentation explains in the FillHoles method’s helptext:

Get naked edges as polylines using Mesh.GetNakedEdges()
Get meshes from polylines using Mesh.CreateFromClosedPolyline()
Append new meshes to mesh with holes using Mesh.Append()
Orient new mesh normals using Mesh.Faces.ComputeFaceNormals()
Weld with 180 degree using Mesh.Weld()

Of course this only works with small openings and not with near adjacent naked edges but i guess you might figure out required checks between above steps.

_
c.

1 Like