I have the following image (fig 1) with the extracted points from the geomagic software (Please see the point list in the attached link).
I would like to know how I can remove the indented boundaries of the shape to make it uniform.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI have the following image (fig 1) with the extracted points from the geomagic software (Please see the point list in the attached link).
I would like to know how I can remove the indented boundaries of the shape to make it uniform.
To my disappointment, I was unable to fix the mesh. Here's what did and maybe this will help somebody else. I generate the mesh and a bounding box. I then shrink the bounding box in the desired axis by 80% which is enough to level off the rough bits at the top and bottom. I then take the intersection of the mesh and the scaled box ... and nothing happens, because Mathematica's CSG / region handling is buggy and hard to use. My attempts to solidify the mesh, close the holes, RepairMesh
etc. were useless in the end.
ncvxh = ResourceFunction["NonConvexHullMesh"];
bbox = BoundingRegion[Data3D];
scaledbbox = ScalingTransform[{1, 0.8, 1}, Mean[Data3D]][bbox];
Graphics3D[{msh, Opacity[.8], scaledbbox}]
RegionIntersection[DiscretizeGraphics@scaledbbox, msh]
Instead of using Mathematica's RegionIntersection
I created the mesh as above and I then did Export["mesh.obj",msh]
which allowed me to edit it in other software. However the mesh produced by "NonConvexHullMesh"
has very poor topology and triangles going through each other. I suggest you look into geomagic's booleans and see if you can level off the top and bottom parts of the mesh using a cut.