|Path → 3D Surface|
|Introduced in version|
This tool creates a newoperation which is capable of generating G-Code paths for the entire top surface of a 3D model (or is able to work with selected faces) and allows for faces to be avoided. This operation offers multiple cut patterns: Line, Zigzag, Circular, Circular Zigzag, Offset, and Spiral (similar to an adaptive pattern). As of version 0.19, this operation offers many customizations to allow for greater productivity.
Theoperation is also capable of generating basic rotational 3D surfacing paths. The rotational capabilities are limited to the entire model, and do not allow for specific faces or regions to be isolated. The rotational paths are also limited to line cut patterns.
The 3D Surface Tool interfaces to OCL.pyd, a 3rd party Open Source module titled OpenCamLib, that generates tool paths from a 3D model. OpenCamLib is not integrated directly into FreeCAD.
Note: In order to use the 3D Surface operation you must:
- Properly install OpenCamLib.
- Enable Experimental Features for the Path Workbench.
- Check Edit → Preferences... → Path → Advanced → Enable OCL dependent features.
Usage instructions for multiple variations of the 3D Surface operation are presented here.
- Press the icon, or select Path → 3D Surface from the dropdown menu.
- Select the tool controller for the Operation from the Tool controller dialogue pop up window, if presented.
- In the Base Geometry tab, select any specific faces you wish to focus on and/or avoid for the operation.
- Adjust the operation depths as needed in the Depths tab: Start Depth, Finish Depth, Step Down.
- Make adjustments in Heights tab if needed.
- Configure settings in the Operations tab as needed:
- Choose your Coolant Mode.
- Choose the BoundBox: Stock or BaseBoundBox
- Set the Scan Type for the operation: Planar or Rotational
- Select the Layer Mode for the operation: Single-pass or Multi-pass
- Single-pass is for a finishing pass
- Multi-pass could be used for clearing in combination with the use of Depth Offset to leave a thin surface layer for a finish pass
- Add additional BoundBox Extra Offset to X and Y as desired (Rotational scans only)
- Set the Drop Cutter Direction: X or Y. This is the linear direction the cutter(spindle) will travel. (Rotational scans only)
- Add a Depth Offset value if you wish to leave a specified thickness of material on the surface, for say a final finish pass
- Set the Sample Interval used for the OCL scan.
- Set the Step Over value as a percentage of the diameter of the Tool.
- Check the Use Start Point box if you wish to provide a start point for the operation in the properties view of the data tab for the operation.
- Boundary Enforcement is enabled by default. This forces the cutter to remain inside the boundaries of the feature geometry for the operation, like a pocketing operation. Disable to allow the cutter to extend to the outside of the feature geometry. The Boundary Adjustment property supersedes this property.
- Optimize Linear Paths is enabled by default. Disabling will yield a longer gcode result and likely increase cut time.
- If you wish to preview the result before accepting the settings, click
- Click button to confirm and generate paths.
To achieve different, or more complex, effects, adjust additional operation properties within the Data tab of the Properties View for the operation.
Rotational Scans (4th-axis)
- Initiate a Basic Operation as described above and set the Scan Type to Rotational.
- Note: Face selection is unavailable for Rotational scans, so changes to Base Geometry are ignored.
- Locate the Data tab and Properties View for the new 3D Surface operation. A Rotation section should be available with additional properties to adjust, listed below.
It is recommended that you set the desired rotation properties all at once before recomputing. This is done by clicking the ENTER key immediately after changing a property setting. This process will allow you to change and save multiple properties before recomputing the operation.
- Adjust the following settings as needed:
- Set DadosCutter Tilt to the offset index(angle) [0-90]. (Used for ball mill cutters)
- Change DadosDrop Cutter Dir to the axis of travel for the cutter(spindle).
- Change DadosDrop Cutter Extra Offset to extend the BoundBox in the X and Y directions.
- Set DadosRotation Axis to the desired axis.
- Adjust DadosStart Index to start index(angle) [0-360].
- Adjust DadosStop Index to stop index(angle) [0-360].
- Click the icon in the tool bar.
- Wait for the results...
Notes About Rotational Scans
- Rotational scans require much more time and processing than Planar scans. Factors affecting processing time include: Sample Interval, Step Over, tool diameter, and model size. Again, rotational scans can take a long time. Some might take 3, 5 or 10 minutes or longer.
- For time purposes, it is better that you not recompute a rotational scan after every property change; rather, consider one of the following:
- use the ' change all settings with ENTER key ' technique mentioned in Step 2 above, then the operation.
- deactivate the operation with the toggle tool, make your changes to the operation's properties, then click the icon again to re-activate the operation - which triggers a recompute internally.
- The FreeCAD Path/CAM Forum. operation is still considered an experimental feature as of 2019-06-25. As such, it may contain a few bugs yet to be clearly identified. Please report bugs and issues in the
- The built in Resources section below for suggestions. does NOT support 4th-axis simulation. You will need to use a third party simulator to inspect or verify paths visually. See the
- You will likely see red rotational lines around your model in the viewport. This is normal in FreeCAD for the time being.
Notes About Scans of complex models
Excessively long processing times (longer than 10 minutes) can occur when processing large complex models. In addition to the factors already mentioned the following steps could help identify potential causes and solutions.
Check how much memory is available while the scan is running using a tool such as the Windows Task Manager, Memory tab. If more than 90% of memory is consistently being used then a small Linear Deflection parameter could be generating a mesh that is too large for the available memory.
To confirm this ...
- Create a new operation.
- Switch to the Model tab and increase the DadosLinear Deflection value. For example change from 2.5um to 20um
- Switch back to the Tasks tab to complete setting up the operation.
To make this value the default for all new
Tools → Edit Parameters ... → Preferences → Mod → Path → GeometryTolerance .
Note as of version 0.19 the DadosLinear Deflection default = GeometryTolerance / 4
- Switch to the Part Workbench and select the model to check
- Click on the Check geometry entry from the top menu. button available in the Part workbench toolbar OR use the Part →
- Click the Run Check button and review the results.
If the results includes items like BOPAlgo SelfIntersect then the geometry is invalid and should be corrected by adjusting the model.
(Hint: Boolean operations and Loft commands can sometimes introduce Self Intersections)
Available Tool (Cutter) Shapes
This 3D Surface op currently uses OpenCamLib to extract paths from the part base. As such, a tool setting translation is required between the FreeCAD tool controller and OCL in order to complete the scan with your chosen tool(cutter) shape.
These tool shapes are respected and available for this 3D Surface operation:
- End mill
- Ball end mill
- Bull nose end mill
- Chamfer bit
Should you choose to run the path simulator in the Path Workbench, it only uses the standard end mill to simulate paths. Therefore, you will not see tool-shape-specific material removal. Material removal is shown using the end mill shape.
NOTE: As of May 2019, only the End Mill has any type of testing to determine accuracy of the FreeCAD-to-OCL tool settings translation. Please post any feedback for non-end-mill usage to the Path/CAM section in the FreeCAD forums.
Properties: Version 0.19
Note : Not all of these Properties are available in the Task Window Editor. Some are only accessible in the Data tab of the Properties View panel for this Operation.
Note: It is suggested that you do not edit the Placement property of path operations. Rather, move or rotate the Path Job model as needed.
- DadosPlacement: Overall placement[position and rotation] of the object - with respect to the origin (or origin of parent object container)
- DadosAngle: Angle in degrees applied to rotation of the object around Axis property value
- DadosAxis: Axis(one or multiple) around which to rotate the object, set in sub-properties: x, y, z
- DadosX: x axis value
- DadosY: y axis value
- DadosZ: z axis value
- DadosPosition: Position of the object, set in sub-properties: x, y, z - with respect to the origin (or origin of parent object container)
- DadosX: x distance value
- DadosY: y distance value
- DadosZ: z distance value
- DadosLabel: User-provided name of the object (UTF-8)
- DadosBound Box: Should the operation be limited by the stock object or by the bounding box of the base object
- DadosCut Mode: The direction that the toolpath should go around the part: Climb(ClockWise) or Conventional(CounterClockWise)
- DadosCut Pattern: Clearing pattern to use
- DadosCut Pattern Reversed: Reverse the cut order of the stepover paths. For circular cut patterns, begin at the outside and work toward the center
- DadosDepth Offset: Z-axis offset from the surface of the object
- DadosLayer Mode: The completion mode for the operation: single or multi-pass
- DadosPattern Center At: Choose location of the center point for starting the cut pattern
- DadosPattern Center Custom: Set the start point for the cut pattern
- DadosProfile Edges: Profile the edges of the selection
- DadosSample Interval: The Sample Interval. Small values cause long wait times
- DadosStep Over: Step over percentage of the drop cutter path
- DadosClearance Height: The height needed to clear clamps and obstructions
- DadosFinal Depth: Final Depth of Tool- lowest value in Z
- DadosSafe Height: The above which Rapid motions are allowed.
- DadosStart Depth: Starting Depth of Tool- first cut depth in Z
- DadosStep Down: Incremental Step Down of Tool
- DadosAngular Deflection: Smaller values yield a finer, more accurate mesh. Smaller values increase processing time a lot
- DadosLinear Deflection: Smaller values yield a finer, more accurate mesh. Smaller values do not increase processing time much but can increase memory comsumption
- DadosCircular Use G2 G3: Convert co-planar arcs to G2/G3 gcode commands for `Circular` and `CircularZigZag` cut patterns
- DadosGap Sizes: Feedback: three smallest gaps identified in the path geometry
- DadosGap Threshold: Collinear and co-radial artifact gaps that are smaller than this threshold are closed in the path
- DadosOptimize Linear Paths: Enable optimization of linear paths (co-linear points). Removes unnecessary co-linear points from G-Code output
- DadosOptimize Step Over Transitions: Enable separate optimization of transitions between, and breaks within, each step over path
- DadosActive: make False, to prevent operation from generating code
- DadosBase: The base geometry for this operation
- DadosComment: An optional comment for this Operation
- DadosCoolant Mode: Coolant mode for this operation
- DadosCycle Time: Operations Cycle Time Estimation
- DadosTool Controller: Defines the Tool controller used in the Operation
- DadosUser Label: User assigned label
- DadosCutter Tilt: Set the cutter (spindle) tilt angle.
- DadosDrop Cutter Dir: The direction along which dropcutter lines are created
- DadosDrop Cutter Extra Offset: Additional offset to the selected bounding box - use sub-properties to set values
- DadosX: x distance value
- DadosY: y distance value
- DadosZ: z distance value
- DadosRotation Axis: Set the axis for model rotation.
- DadosStart Index: Start index(angle) for rotation
- DadosStop Index: Stop index(angle) for rotation
Selected Geometry Settings
- DadosAvoid Last X Faces: Avoid cutting the last 'N' faces in the Base Geometry list of selected faces
- DadosAvoid Last X Internal Features: Do not cut internal features on avoided faces
- DadosBoundary Adjustment: Positive values push the cutter toward, or beyond, the boundary. Negative values retract the cutter away from the boundary
- DadosBoundary Enforcement: If true, the cutter will remain inside the boundaries of the model or selected face(s)
- DadosHandle Multiple Features: Choose how to process multiple Base Geometry features
- DadosInternal Features Adjustment: Positive values push the cutter toward, or into, the feature. Negative values retract the cutter away from the feature
- DadosInternal Features Cut: Cut internal feature areas within a larger selected face
- DadosStart Point: The custom start point for the path of this operation, set in sub-properties: x, y, z
- DadosX: x axis value
- DadosY: y axis value
- DadosZ: z axis value
- DadosUse Start Point: Make True, if specifying a Start Point
- DadosScan Type: Planar: Flat, 3D surface scan. Rotational: 4th-axis rotational scan.
- DadosIgnore Waste: Ignore areas that proceed below specified depth.
- DadosIgnore Waste Depth: Depth used to identify waste areas to ignore.
- DadosRelease From Waste: Cut through waste to depth at model edge, releasing the model.
Tasks Window Editor Layout
Descriptions for the settings are provided in the Properties list above. This section is simply a layout map of the settings in the window editor for the Operation.
- Base Geometry import selection: Use this list to select Base Geometry to be imported from the selected, existing operation
- Import: imports the selected operation's Base Geometry into the current operations Base Geometry list
- Base Geometry list for current operation: List of Base Geometry for current operation, if any selected
- Add: adds selected element(s) which should be the base(s) for the path(s)
- Remove: remove the selected item(s) in the Base Location list
- Edit: clear all items in the Base Location list
- DadosStart Depth
- DadosFinal Depth
- DadosStep Down
- DadosSafe Height
- DadosClearance Height
- DadosTool Controller
- DadosCoolant Mode
- DadosScan Type
- DadosLayer Mode
- DadosBoundBox extra offset X
- DadosBoundBox extra offset Y
- DadosDrop Cutter Direction
- DadosDepth Offset
- DadosStep Over
- DadosSample Interval
- DadosOptimize Output Enabled
- DadosUse Start Point
- DadosBoundary Enforcement
- DadosOptimize Linear Paths