How to Fix Flipped Normal in a FreeCAD Sketch
A flipped normal orientation in a FreeCAD sketch occurs when the local Z-axis of the sketch points in the opposite direction of your intended design, causing features like pads, pockets, and extrusions to generate backwards. This guide outlines how to identify inverted sketch normals and provides step-by-step methods to fix them using the Attachment properties, the Attachment Offset settings, or sketch reorientation tools without breaking existing geometry.
Understanding the Problem
Every sketch in FreeCAD contains a local coordinate system with its own normal vector (the local Z-axis). When a sketch is mapped to a face or a datum plane, FreeCAD determines which side is the "front" based on the underlying surface's normal. If the surface normal is inverted or referenced inconsistently, the sketch's normal will flip, causing operations like Pad to push into the model instead of out of it, or making sketch constraints behave unpredictably.
Method 1: Use the Attachment Dialog (Recommended)
The cleanest way to fix an inverted normal is through the Attachment task panel, which recalculates how the sketch binds to its support plane.
- Select the affected sketch in the Tree view.
- In the Data tab of the Properties panel, locate the Map Mode property under the Attachment group.
- Click the ellipsis button (
...) next toMap Modeto open the Sketch Attachment task panel. - Locate the Flip sides checkbox at the bottom of the Attachment dialog.
- Check (or uncheck) Flip sides to reverse the normal vector.
- Click OK to apply the change.
Method 2: Adjust Attachment Offset
If the "Flip sides" option does not achieve the desired orientation, you can manually rotate the sketch around its local axis.
- Select the sketch in the Tree view.
- Go to the Property view and select the Data tab.
- Expand the Attachment Offset property.
- Expand the Rotation sub-property.
- Set the rotation angle to
180°along either the X or Y axis (e.g., set the X-axis to1and the Angle to180°). - Press
Enterand recompute the model by clicking the Refresh button or pressingF5.
Method 3: Reorient the Sketch
If the sketch is attached to an ambiguous reference or is completely unmapped, you can reorient it from the menu.
- Select the sketch in the Tree view.
- In the top menu, go to Part Design (or Sketch) > Reorient sketch.
- A prompt may warn that reorienting will detach the sketch from its support; confirm to proceed if your sketch is not strictly dependent on face references.
- Choose the base plane (e.g., XY-Plane, XZ-Plane, or YZ-Plane) and toggle the Reverse direction option if prompted.
- Click OK to commit the orientation.
Workaround for Downstream Features
If changing the sketch normal breaks downstream constraints or referenced geometry:
- Select the dependent 3D feature (such as a Pad or Pocket) in the Tree view.
- In the Data tab, set the Reversed
property to
True(or toggle it back toFalse). - This forces the feature to extrude in the opposite direction without altering the sketch's underlying coordinates.