Mecway mesh - extraneous surface lines at bottom of drilled hole

I have a cylinder (1/2 3D) with a 12mm dia hole at the centerline. This hole ends in a cone which approximates how the hole would be machined with a drill bit. The model was constructed in FreeCAD 1.0.0.



Using the FreeCAD Netgen mesher with the max element size = 10 mm but other defaults, the hole has a nice, uniform mesh.





The FreeCAD unmeshed model was then exported as a step file. Note that the first item ("Write out curves in parametric space") is not checked here. (This is normally checked by default but leads to extra Mecway nodes at the cone point.)



This step file was then imported into Mecway. The following mesh settings were used for this topic (not necessarily optimum). The intent was to later manually refine the hole walls and cone (and other details not shown in this model) while allowing the overall mesh to remain relatively coarse.



The next image shows the hole mesh. Note the two short heavy surface lines from the tip of the cone.



If "Show model edges" is turned off then these lines disappear. Alternately, if "Show element edges" is turned off then these lines remain (next image).



If the mesh parameter "Min number of elements per edge" is increased from 1 to 5 then the hole elements become smaller but the extraneous surface lines remain, just shorter.



If the model is rotated to a new position then the extraneous surface lines remain. From all of the above it appears that these lines aren't just display artifacts but are actual surface lines. However, they don't actually define a surface.

Note - If the step file is opened in RhinoCAD surface modeler, it doesn't show these extraneous surface lines. In fact, Rhino's error checking shows that this model should be OK - i.e., there are no naked edges.

So are these extraneous surface lines real or not? What causes them?

FreeCAD model - Cyl_100_10a.FCStd (attached as Cyl_100_10a.7z compressed file)
FreeCAD step file - Cyl_100_10a_100-Body.step
Mecway model - Cyl_100_10a.liml

Mecway 27
FreeCAD 1.0.0
Windows 10

Thanks,
Don C.

Comments

  • Those thick lines in unexpected places can be a hint that the mesh is disconnected but they don't generally mean that. They're just placed where there's a large angle between adjacent faces. That's typically on actual edges but when the mesh is coarse relative to its curvature, as it is here, it also causes them to appear when there isn't any actual problem.

  • If the mesh parameter "Min number of elements per edge" is increased from 1 to 50 then the mesh is greatly refined relative to the curvature. However, the extraneous surface lines remain but shortened from 0.003 mm to 0.0002 mm. Thus, I suspect that these lines will remain no matter how fine the mesh is made relative to the curvature.



    Also, during generation of the surface mesh the scrolling text output says, "Singular Matrix - retry Surface 3". It then proceeds normally. (I suspect that surface 3 is the cone. Is there a way to check this?)



    This doesn't occur if the hole is eliminated (see attached model).
  • There are still only 3 elements around the 180 degree cone at the vertex so it's still coarse/highly curved there.

    To be honest, I never pay attention to the output of Netgen, nor understand it. It might just be saying that it found a special case which it handled correctly (mesh appears to be fine), or it might be something that went wrong.
  • When your algorithm identifies surface edges, perhaps it could run a final check on the identified edges to eliminate any disconnected lines such as these.
  • Interesting idea about open-ended edges. I wonder if there are cases where they'd still be useful though, like a square to round transition.
  • I think this wouldn't matter as long as you search for any "edges" that don't actually belong to an enclosed area that is defined by other edges.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!