Part: Convert XML bindings to Python (Part 2)
This commit is contained in:
committed by
Benjamin Nauck
parent
56bcc0fc55
commit
6083315b04
42
src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi
Normal file
42
src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi
Normal file
@@ -0,0 +1,42 @@
|
||||
from Base.Metadata import export, constmethod
|
||||
from typing import Tuple, overload
|
||||
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
@export(
|
||||
PythonName="Part.ChFi2d.ChamferAPI",
|
||||
Twin="ChFi2d_ChamferAPI",
|
||||
TwinPointer="ChFi2d_ChamferAPI",
|
||||
Include="ChFi2d_ChamferAPI.hxx",
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
)
|
||||
class ChFi2d_ChamferAPI(PyObjectBase):
|
||||
"""
|
||||
Algorithm that creates a chamfer between two linear edges
|
||||
|
||||
Author: Werner Mayer (wmayer[at]users.sourceforge.net)
|
||||
Licence: LGPL
|
||||
"""
|
||||
|
||||
def init(self) -> None:
|
||||
"""
|
||||
Initializes a chamfer algorithm: accepts a wire consisting of two edges in a plane
|
||||
"""
|
||||
...
|
||||
|
||||
def perform(self, radius: float) -> bool:
|
||||
"""
|
||||
perform(radius) -> bool
|
||||
|
||||
Constructs a chamfer edge
|
||||
"""
|
||||
...
|
||||
|
||||
def result(self, point: object, solution: int = -1) -> Tuple[object, object, object]:
|
||||
"""
|
||||
result(point, solution=-1)
|
||||
|
||||
Returns result (chamfer edge, modified edge1, modified edge2)
|
||||
"""
|
||||
...
|
||||
Reference in New Issue
Block a user