Issue
Users may encounter anomalies in the Signed Distance Field (SDF) of an implicit body, where the field value reads as zero (or near zero) at points that are clearly inside or outside the intended body, rather than on the true boundary. These are commonly referred to as "fake zeroes."
While invisible in the standard 3D view, these fake zeroes cause significant errors in downstream operations, particularly when using Shell, Mesh, or Slice blocks. The most common symptom is the generation of "fake walls" or internal geometry during a shelling operation.
Applies to
Implicit Modeling, Boolean Operations
Cause
"Fake zeroes" generally occur when performing boolean operations on objects that share an exact boundary (coplanar faces).
Boolean Union: Occurs when uniting two objects that touch each other externally (e.g., two cubes placed side-by-side).
Boolean Subtract: Occurs when subtracting an object that touches the primary body internally (e.g., subtracting a cylinder that is the same length as the hole it is creating).
nTop uses a min function to calculate booleans. At the points where the boundaries touch perfectly, the field value evaluates to zero, suggesting to the software that these points lie on the boundary of the object, even though they are internal. The field viewer shows the zero value as a yellow line. Below are some examples:
| 1. Boolean Union of touching Cubes | 2. Boolean Subtract of Internally Touching Objects |
|
|
Solution
To resolve this issue, you must modify the geometry construction to avoid Boolean operations on perfectly coplanar faces.
Method 1: Modify Geometry Generation (Recommended)
Whenever possible, create complex shapes using constructive modeling blocks rather than Boolean operations.
Use Extrude or Revolve to create the final shape in a single step rather than uniting multiple primitives.
Method 2: Adjust Boolean Operands
If you must use Boolean operations, ensure the operands intersect significantly or extend beyond the boundary of the primary body.
For Subtractions: Ensure the cutting tool (the object being subtracted) is larger/longer than the object it is cutting.
Example: When creating a pipe, subtract a Cylinder that is infinitely long (or significantly longer) than the outer pipe, rather than one of the exact same length.
For Unions: Ensure the bodies overlap slightly rather than touching face-to-face.
Left (Incorrect): Subtracting an inner cylinder of equal length creates fake zeroes. Center (Correct): Subtracting a longer inner cylinder avoids the issue. Right (Best Practice): Revolving a rectangle avoids booleans entirely.
Detection
You can detect fake zeroes using the Field Viewer (Press F while the block is selected):
Look for areas in the field where the color intensity changes (brightening or darkening) without transitioning between warm (positive) and cool (negative) colors.
Inspect internal regions where you expect a continuous solid field; if you see a "seam" of zero values, it is likely a fake zero.