File size: 1,239 Bytes
985c397 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Metadata import export
from Base.PyObjectBase import PyObjectBase
from Base.Vector import Vector
@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)
"""
...
|