Download src/Mod/CAM/App/Path.pyi from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 2.2 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/App/Path.pyi
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/CAM/App/Path.pyi
-
curl -L -o Path.pyi https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/App/Path.pyi
2.2 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| from __future__ import annotations | |
| from typing import Any, Final, overload, Union | |
| from Base.Metadata import constmethod, export | |
| from Base.Persistence import Persistence | |
| from .Command import Command | |
| class Path(Persistence): | |
| """ | |
| Path([commands]): Represents a basic Gcode path | |
| commands (optional) is a list of Path commands | |
| Author: Yorik van Havre (yorik@uncreated.net) | |
| License: LGPL-2.1-or-later | |
| """ | |
| def addCommands(self, command: Command, /) -> Path: ... | |
| def addCommands(self, commands: list[Command], /) -> Path: ... | |
| def addCommands(self, arg: Union[Command, list[Command]], /) -> Path: | |
| """adds a command or a list of commands at the end of the path""" | |
| ... | |
| def insertCommand(self, command: Command, pos: int = -1, /) -> Path: | |
| """ | |
| adds a command at the given position or at the end of the path | |
| """ | |
| ... | |
| def deleteCommand(self, pos: int = -1, /) -> Path: | |
| """ | |
| deletes the command found at the given position or from the end of the path | |
| """ | |
| ... | |
| def setFromGCode(self, gcode: str, /) -> None: | |
| """sets the contents of the path from a gcode string""" | |
| ... | |
| def toGCode(self) -> str: | |
| """returns a gcode string representing the path""" | |
| ... | |
| def copy(self) -> Path: | |
| """returns a copy of this path""" | |
| ... | |
| def getCycleTime( | |
| self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, / | |
| ) -> float: | |
| """return the cycle time estimation for this path in s""" | |
| ... | |
| Length: Final[float] | |
| """the total length of this path in mm""" | |
| Size: Final[int] | |
| """the number of commands in this path""" | |
| Commands: list | |
| """the list of commands of this path""" | |
| Center: Any | |
| """the center position for all rotational parameters""" | |
| BoundBox: Final[Any] | |
| """the extent of this path""" | |