Files
create/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi
2025-03-25 19:55:36 +01:00

51 lines
1.2 KiB
Python

from Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
from Base.Vector import Vector
from typing import Final
@export(
Name="ChFi2d_FilletAlgoPy",
PythonName="Part.ChFi2d.FilletAlgo",
Twin="ChFi2d_FilletAlgo",
TwinPointer="ChFi2d_FilletAlgo",
Include="ChFi2d_FilletAlgo.hxx",
Constructor=True,
Delete=True,
)
class FilletAlgo(PyObjectBase):
"""
Algorithm that creates fillet edge
Author: Werner Mayer (wmayer[at]users.sourceforge.net)
Licence: LGPL
"""
def init(self) -> None:
"""
Initializes a fillet algorithm: accepts a wire consisting of two edges in a plane
"""
...
def perform(self, radius: float) -> bool:
"""
perform(radius) -> bool
Constructs a fillet edge
"""
...
def numberOfResults(self) -> int:
"""
Returns number of possible solutions
"""
...
def result(self, point: Vector, solution: int = -1) -> tuple[object, object, object]:
"""
result(point, solution=-1)
Returns result (fillet edge, modified edge1, modified edge2)
"""
...