|Path → 3D Surface|
|Introduced in version|
This tool creates a new 3D Surface Operation. The 3D Surface operation uses the entire top surface of the 3D Model to generate G-Code for the Job. Currently, within the operation's settings there is no functionality to select specific areas, faces, or regions of the Job base. The operation is applied to the entire surface of the Job base.
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 to ensure their license is not violated.
Note: In order to use the 3D Surface operation you must:
Usage instructions for multiple variations of the 3D Surface operation are presented here.
- Press the 3D Surface tool from the Path menu. icon, or select the
- Select the tool controller for the Operation from the Tool controller dialogue pop up window.
- 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:
- Select an operation algorithm: OCL Dropcutter or OCL Waterline.
- Choose the BoundBox: Stock or BaseBoundBox
- Add additional BoundBox Extra Offset to X and Y as desired
- Set the Drop Cutter Direction: X or Y. This is the linear direction the cutter(spindle) will travel.
- Add a Depth Offset value if you wish to leave a specified thickness of material on the surface.
- Set the Sample Interval used for the OCL scan.
- Set the Step Over value as a percentage of the diameter of the Tool.
- Optimize Output is enabled by default. It is only a linear path optimization. Disabling will yield a longer gcode result and likely increase cut time.
- If you wish to preview the result before accepting the settings, click Apply
- Click OK 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.
This variation is based on the DATAStep Down property. It produces the layering effect - removing material in layers.
- Create a Basic Operation as described above. Multi-pass is available for both Algorithms.
- Select the new operation in the object tree in the Combo View.
- Locate the Algorithm section, In the Data tab in the Properties View of the operation.
- Toggle the DATALayer Mode property to Multi-pass to achieve the layering(step-down, multi-pass) effect.
Rotational Scans (4th-axis)
- Create a Basic Operation as described above using the OCL Dropcutter algorithm.
- Locate the Data tab and Properties View for the new 3D Surface operation.
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.
- In the Rotation section set DATAEnable Rotation to the correct setting.
- Adjust the following settings as needed:
- In the Algorithm section, change DATADrop Cutter Dir to the axis of travel for the cutter(spindle).
- In the Algorithm section, set DATALayer Mode to single or mulit-pass.
- In the Rotation section, set DATARotation Axis to the desired axis.
- In the Rotation section, adjust DATAStart Index to start index(angle) [0-360].
- In the Rotation section, adjust DATAStop Index to stop index(angle) [0-360].
- In the Rotation section, set DATACutter Tilt to the offset index(angle) [0-90]. (Used for ball mill cutters)
- With rotation-related properties set as needed, in the Algorithm section change the DATAScanMode from Planar to Rotational.
- 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 OCL Waterline algorithm does not support rotational scans.
- 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.
Available Tool (Cutter) Shapes
This 3D Surface op currently uses OpenCamLib [OCL] 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.
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.
- DATAAlgorithm: The library to use to generate the path
- DATABoundBox: Should the operation be limited by the stock object or by the bounding box of the base object
- DATADrop Cutter Dir: The direction along which dropcutter lines are created
- DATADrop Cutter Extra Offset: Additional offset to the selected bounding box - use sub-properties to set values
- DATAX: x distance value
- DATAY: y distance value
- DATAZ: z distance value
- DATALayer Mode: The completion mode for the operation: single or multi-pass
- DATAScan Type: Planar: Flat, 3D surface scan. Rotational: 4th-axis rotational scan.
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.
- DATAPlacement: Overall placement[position and rotation] of the object - with respect to the origin (or origin of parent object container)
- DATAAngle: Angle in degrees applied to rotation of the object around Axis property value
- DATAAxis: Axis(one or multiple) around which to rotate the object, set in sub-properties: x, y, z
- DATAX: x axis value
- DATAY: y axis value
- DATAZ: z axis value
- DATAPosition: Position of the object, set in sub-properties: x, y, z - with respect to the origin (or origin of parent object container)
- DATAX: x distance value
- DATAY: y distance value
- DATAZ: z distance value
- DATALabel: User-provided name of the object (UTF-8)
- DATAClearance Height: The height needed to clear clamps and obstructions
- DATAFinal Depth: Final Depth of Tool- lowest value in Z
- DATASafe Height: The above which Rapid motions are allowed.
- DATAStart Depth: Starting Depth of Tool- first cut depth in Z
- DATAStep Down: Incremental Step Down of Tool
- DATAActive: make False, to prevent operation from generating code
- DATAComment: An optional comment for this Operation
- DATACut Mode: The direction that the toolpath should go around the part: Climb(ClockWise) or Conventional(CounterClockWise)
- DATATool Controller: Defines the Tool controller used in the Operation
- DATACut Pattern: Clearing pattern to use
- DATACutter Boundary: Identify cutter boundary for operation.
- DATAUser Label: User assigned label
- DATAAlt Depth Calc:
- DATAAttempt Inverse Angle: Automatically attempt Inverse Angle if initial rotation is incorrect.
- DATACutter Tilt: Set the cutter (spindle) tilt angle.
- DATAEnable Rotation: Enable rotation to gain access to pockets or areas not normal to Z axis.
- DATAFixed Index: Set fixed index for rotation.
- DATAIndexing Mode: Select indexing mode: auto = automatic angle detaction; fixed = user set angle.
- DATAInverse Angle: Inverse the angle of the rotation. Example: change a rotation from -22.5 to 22.5 degrees.
- DATAReverse Direction: Reverse orientation of Operation by 180 degrees.
- DATARotation Axis: Set the axis for model rotation.
- DATAStart Index: Start index(angle) for rotation
- DATAStop Index: Stop index(angle) for rotation
- DATADepth Offset: Z-axis offset from the surface of the object
- DATAOptimize: Enable optimization which removes unnecessary points from G-Code output
- DATASample Interval: The Sample Interval. Small values cause long wait times
- DATAStep Over: Step over percentage of the drop cutter path
- DATAIgnore Waste: Ignore areas that proceed below specified depth.
- DATAIgnore Waste Depth: Depth used to identify waste areas to ignore.
- DATARelease 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.
- 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
- DATAStart Depth
- DATAFinal Depth
- DATAStep Down
- DATASafe Height
- DATAClearance Height
Rotation (when available)
- DATAEnable Rotation
- DATARotation Axis
- DATAIndexing Mode
- DATAFixed Index
- DATAStart Index
- DATAStop Index
- DATACutter Tilt
- DATAReverse Direction
- DATAAlternative Depth Calculation
- DATATool Controller
- DATABoundBox extra offset X
- DATABoundBox extra offset Y
- DATADrop Cutter Direction
- DATADepth Offset
- DATASample Interval
- DATAStep Over
- DATAOptimize Output Enabled