Geometry Cleanup

The Geometry Cleanup tool lets you heal any faults in the solid bodies that you have created or remove small features that would complicate the analysis process. The Geometry Cleanup tool uses multiple methods to identify and potentially fix different types of geometric issues.

Advanced Options

Geometry Cleanup Methods

These methods specify the type of geometric issues to be identified and potentially repaired.

Non-General Body Simplify

This method removes mathematical problems with geometry that might not be obviously visible.

These problems may show up as faults, which can be identified using the Find Geometry Faults method, or just less efficient geometry representations.  This method does not support General Bodies (Non-manifolded surface bodies).  To perform this operation on General Bodies, use the Unstitch Method under the Stitch tool, perform the Geometry Clean, and then restitch the body again using the Stitch Method.

 It has two options which may be enabled independently with a separate tolerance value for each.

Clean Topology

The tool analyzes the given body and attempts to rectify any problems it may have. The problems that it will attempt to remove include:

  • Topology with invalid sense
  • Invalid edge and vertex tolerances
  • Invalid Geometry
  • Self-intersecting geometry
  • Non-G1 geometry
  • Missing edge or vertex geometry
  • Missing vertex
  • Vertices not on curve of edge
  • Edges and vertices not on surface of face
  • Reduced geometry model tolerances

The clean tolerance is the upper-bound on deviation between original and repaired geometry. It is also the modeling tolerance when repairing geometry. Selecting a larger value than necessary may cause a less accurate model, where the gap of the face/edge is larger after performing the clean topology operation.  

Optimize Geometric Representation

The tool optimizes model data in order to improve performance for subsequent modeling operations. Performing this operation makes the data as efficient as possible in terms of disk space usage and processing speed.

The optimization performs the following tasks:

  • Simplification of underlying geometry, including blend-specific optimization
  • Removal of redundant topology and duplicate geometry
  • Restoration of accuracy to tolerant edges (reduce geometry model tolerances)
  • Ensuring that no additional face-face inconsistencies are introduced into the resulting body

The Optimization Tolerance is a linear tolerance used by the surface simplification and edge healing operations performed during the optimization. This value has more of a physical meaning than the clean tolerance. If this value is set too high, you can damage your model; so you must be careful with this value and not set it larger than the length of important edges.

Find and Fix Small Features in Solids and Non-General Bodies

This method allows you to identify and repair features on Solids and Non-General surface bodies.  This tools is not intended to remove larger features, such as fillets, holes and chamfers. To remove those feature types, use the Defeature tool.  Selected features are removed based on the specified criteria. Once geometry is selected (with Auto Fix disabled) a list of identified small features will appear in the model browser. Clicking on a feature will highlight and center it in the model view, making it easy to locate the issue. You also have the option to select whether each feature will be fixed when you click the Auto Fix button.

You may remove features from the list by selecting them and clicking on the X icon of their callout, and you may repopulate the list at any time by activating feature types on the geometry cleanup form and reselecting the geometry, or selecting the refresh icon:

The Find and Fix Small Features tool does not support general (non-manifold) bodies. The following types of small features may be identified and fixed:

Small Edges

Detects and removes edges whose length is less than the specified value.

Small Face

Detects and removes faces which would fit within a sphere with a radius of the specified value.

Sliver Surface

Detects and removes surfaces which exceed a pre-set aspect ratio and have a maximum edge to edge distance between two edges of the same face that is less than the specified value.

Spike Surface

Detects and removes surfaces formed by two adjacent edges where the distance between a vertex and the other edge is less than the specified value.

Sheet Body Crack

Detects and removes cracks in sheet bodies with a maximum width less than the specified value.

The repairs are made by collapsing the edges within the specified tolerances.  This method of small feature removal may not always be desirable, especially if larger tolerances are used. For example, the starting geometry is shown in the following image…

If Auto-Fix is set, and the tolerance was set large enough, the following repairs might be made.  This may be only acceptable for very small features.

This method is very effective for solid bodies, as long as the tolerance is not set too high.

Find and Fix Small Surface/Wire Body Features

This method allows you to identify and remove small surface features such as gaps, overhangs, and small edges that might cause problems. This tool is not intended to remove larger features, such as fillets, holes and chamfers. To remove those feature types, use the Defeature tool.  Any type of surface is supported, including General Bodies. Once geometry is selected (with Auto Fix disabled) a list of identified small features will appear in the model browser. Clicking on a feature will highlight and center it in the model view, making it easy to locate the issue. You also have the option to select whether each feature will be fixed when you click the Auto Fix button. These fixes will be made by moving vertices and actually changing the geometry.  If auto fix is enabled, it loops through the small features found and tries to repair each one.  After complete, it will show a list of the remaining ones it could not fix, which you can then identify and correct manually using other geometry tools.

Geometry is edited using similar results as if the Vertex Drag tool was used.  This results in a cleaner edit than the tool “Find and Fix Small Features in Solids and Non-General Bodies“.  If the following geometry was the starting point.

If the tolerance was large enough, the repair would be the result below. This is closer to what a user would likely do with a manual edit using Vertex Drag.  It will work better for larger features, but is slower, and fixes few types of issues than the other small feature repair method.

Solid bodies are supported, but this method does not clean up as many small feature types as the other method.  As a general rule, use this method to clean up surfaces and wire bodies, especially manifolded, or general bodies, and use the other method for solid bodies.

Find and Display Geometry Faults

This method allows you to identify geometry faults in your model.

A body can have many types of faults, some can be serious, and prevent further operations until repaired, and some are minor, and may not cause any problems.  When operations continue to fail (meshing or Geometry) that seem unreasonable, the first thing to try is to check for faults.  The most serious faults are shown in the “High” level category.  The one exception is the Large Topology Tolerance fault. This is normally not as serious, and can often be ignored if they are hard to remove.

If meshing is the problem, it can be caused by very tiny edges, and not faults. This is best diagnosed using either of the two middle Geometry Cleanup methods.

The list of possible faults are shown in the table below. The name of the fault, the severity, and the description message is shown in the table.  Also included is a simple solution that can be attempted.   Most solutions recommend “Use Geometry Cleanup Non-General Body Simplify Tool to repair”.  This is the easiest solution if it works.

#

Name for Error

Level

Detailed User Message

1

Corrupt Body

High

Description: The data in this Body is corrupt beyond repair.  
Solution: Recreate the body to fix

2

Invalid point/ curve/ surface

High

Description: The entity is invalid.
Solution:  Delete the invalid entity or use Geometry Cleanup Non-General Body Simplify Tool to repair.

3

Self-Intersecting Body

High

Description: Faces of this body are intersecting in an invalid way.
Solution: Stitch or use Geometry Cleanup Non-General Body Simplify Tool to repair.

4

Missing curve/surface

High

Description:  Missing or invalid Curves or Surfaces.
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

5

Self-intersecting curve/surface

High

Description:  The surface or curve is intersecting itself in an invalid way. 
Solution:  Delete the self-intersect geometry or use Geometry Cleanup Non-General Body Simplify Tool to repair.

6

Degenerate curve/surface

High

Description:  The geometry has an invalid parametric degeneracy in the U or V parametric direction:
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

7

Missing Vertex

High

Description:  There are edge or curve intersections or singularities at locations where there is no vertex. 
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

8

Large Topology Tolerance

High

Description:  Topology has large tolerance 
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

9

Face and Surface are Mismatched

Low

Description:  Body is inside out, or there is other geometry directions that are inconsistent. 
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair.

10

Edge Off Face

High

Description:  Edge does not lie close enough to the faces surface.
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair.

11

Vertex off face

High

Description:  Vertex does not lie on faces surface or edge intersects face at a location with no vertex.
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair.

12

Vertex Off Edge

High

Description:  Vertex does not lie on its edges curvature. 
Solution:  Edit vertex using Vertex Drag or use Geometry Cleanup Non-General Body Simplify Tool to repair.

13

Edge and Curve are Mismatching

Low

Description:  Curve in wrong direction for the edge, or is not within tolerance of the edge. 
Solution:  Edit Edge using Edge Drag tool or use Geometry Cleanup Non-General Body Simplify Tool to repair.

14

Vertices are Touching

Low

Description:  Vertices of the same edge are touching. 
Solution:  Edit vertex using Vertex Drag or use Geometry Cleanup Non-General Body Simplify Tool to repair.

15

Bad B-Geometry due to close knots.

Low

Description:  B-geometry has knots that are closer than the allowed angular precision.
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

16

Bad Geometry Closure

Low

Description:  The topology’s geometry is closed, but not periodic
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

17

Not G1 continuous curve/surface

Low

Description:  The topologies geometry is not G1 continuous.
Solution:  Use Geometry Cleanup Non-General Body Simplify Tool to repair

The message is displayed when the cursor is hovered over the error in the output list.  A sample output result is shown below.

If the body with faults is a General body, use the Stitch tool, and set method to Unstitch. Selecting the body will unstitch it into non-general body surface bodies. Then the Simplify can be performed on the parts.  Once the fault is removed, using Simplify or other means, simply stitch it back together using the Stitch tool.

When Simplify does not solve the problem, other steps can be taken to resolve the issue. A subset of common faults is shown below in order from most critical to least critical.  For many cases, just a simple local use of Vertex / Edge Drag on the edge or vertex near the problem will fix it.

Self-Intersecting body:  This can happen as solid or surface bodies.  This is cause by a face or edge protruding into another face in an invalid way.  The model has to be locally rebuilt to remove this situation.  It is most often caused by solids being merged that were not touching properly, so the faces collide instead of being properly joined.  Vertex drag, or Push / Pull can usually be used to make the repair.  Until this fault is repaired, most geometry operations will fail.  In extreme cases, the face must be deleted, and rebuilt. Using filler to replace the face will turn it back into a solid.

Face or Edge Mismatch:  Geometry is locally incompatible.  Use Vertex Drag or Edge Drag to locally modify the geometry. Sometimes this requires unstitching faces on either side of the issue, then reconnecting using edge drag. Rebuild the face using filler as a last resort.

Large Tolerance Topology:  This is the most common issue seen. It usually will not cause problems.  When it does cause problems, they show up as collapsed edges that were not intended.  When this is discovered, use Geometry Cleanup Simplify as recommended. If a general body, first use Unstitch to convert the body into non-general body sections before using Simplify.  This will remove most issues.  For any remaining issues, either ignore, or use a combination of Unstitch, and Edge Drag to recreate the connection between faces where large tolerance shows up.



Click here to access the starting part file to import for this tutorial.

Multiple options to find and fix geometric issues using the Geometry Cleanup tool