Download src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi
-
curl -L -o CAMSim.pyi https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi
1.5 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| from __future__ import annotations | |
| from typing import Any | |
| from Base.BaseClass import BaseClass | |
| from Base.Metadata import export, no_args | |
| from Part.App.TopoShape import TopoShape | |
| from CAM.App.Command import Command | |
| Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h", | |
| FatherInclude="Base/BaseClassPy.h", | |
| Namespace="CAMSimulator", | |
| Constructor=True, | |
| Delete=True, | |
| ) | |
| class CAMSim(BaseClass): | |
| """ | |
| FreeCAD python wrapper of CAMSimulator | |
| CAMSimulator.CAMSim(): | |
| Create a path simulator object | |
| Author: Shai Seger (shaise_at_g-mail) | |
| License: LGPL-2.1-or-later | |
| """ | |
| def BeginSimulation(self, stock: TopoShape, resolution: float) -> None: | |
| """ | |
| Start a simulation process on a box shape stock with given resolution | |
| """ | |
| ... | |
| def ResetSimulation(self) -> None: | |
| """ | |
| Clear the simulation and all gcode commands | |
| """ | |
| ... | |
| def AddTool(self, shape: TopoShape, toolnumber: int, diameter: float, resolution: float) -> Any: | |
| """ | |
| Set the shape of the tool to be used for simulation | |
| """ | |
| ... | |
| def SetBaseShape(self, shape: TopoShape, resolution: float) -> None: | |
| """ | |
| Set the shape of the base object of the job | |
| """ | |
| ... | |
| def AddCommand(self, command: Command, /) -> Any: | |
| """ | |
| Add a path command to the simulation. | |
| """ | |
| ... | |