[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -8,7 +8,6 @@ from Vector import Vector
|
||||
from Placement import Placement
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import constmethod
|
||||
from PyObjectBase import PyObjectBase
|
||||
from typing import List, Final
|
||||
|
||||
|
||||
class BaseClass(PyObjectBase):
|
||||
"""
|
||||
This is the base class
|
||||
|
||||
@@ -8,7 +8,6 @@ from Vector import Vector
|
||||
from Matrix import Matrix
|
||||
from typing import overload, Any, Final, Tuple, Union
|
||||
|
||||
|
||||
@export(
|
||||
TwinPointer="BoundBox3d",
|
||||
Constructor=True,
|
||||
@@ -133,17 +132,11 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def add(self, minMax: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def add(self, minMax: Vector, /) -> None: ...
|
||||
@overload
|
||||
def add(self, minMax: Tuple[float, float, float], /) -> None:
|
||||
...
|
||||
|
||||
def add(self, minMax: Tuple[float, float, float], /) -> None: ...
|
||||
@overload
|
||||
def add(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def add(self, x: float, y: float, z: float, /) -> None: ...
|
||||
def add(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""
|
||||
Increase the maximum values or decrease the minimum values of this BoundBox by
|
||||
@@ -182,13 +175,9 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def closestPoint(self, point: Vector, /) -> Vector:
|
||||
...
|
||||
|
||||
def closestPoint(self, point: Vector, /) -> Vector: ...
|
||||
@overload
|
||||
def closestPoint(self, x: float, y: float, z: float, /) -> Vector:
|
||||
...
|
||||
|
||||
def closestPoint(self, x: float, y: float, z: float, /) -> Vector: ...
|
||||
@constmethod
|
||||
def closestPoint(self, *args: Any, **kwargs: Any) -> Vector:
|
||||
"""
|
||||
@@ -206,18 +195,14 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def intersect(self, boundBox2: "BoundBox", /) -> bool:
|
||||
...
|
||||
|
||||
def intersect(self, boundBox2: "BoundBox", /) -> bool: ...
|
||||
@overload
|
||||
def intersect(
|
||||
self,
|
||||
base: Union[Vector, Tuple[float, float, float]],
|
||||
dir: Union[Vector, Tuple[float, float, float]],
|
||||
/,
|
||||
) -> bool:
|
||||
...
|
||||
|
||||
) -> bool: ...
|
||||
def intersect(self, *args: Any) -> bool:
|
||||
"""
|
||||
Checks if the given object intersects with this bounding box. That can be
|
||||
@@ -269,17 +254,11 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def move(self, displacement: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, displacement: Vector, /) -> None: ...
|
||||
@overload
|
||||
def move(self, displacement: Tuple[float, float, float], /) -> None:
|
||||
...
|
||||
|
||||
def move(self, displacement: Tuple[float, float, float], /) -> None: ...
|
||||
@overload
|
||||
def move(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, x: float, y: float, z: float, /) -> None: ...
|
||||
def move(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""
|
||||
Move the bounding box by the given values.
|
||||
@@ -296,17 +275,11 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def scale(self, factor: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, factor: Vector, /) -> None: ...
|
||||
@overload
|
||||
def scale(self, factor: Tuple[float, float, float], /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, factor: Tuple[float, float, float], /) -> None: ...
|
||||
@overload
|
||||
def scale(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, x: float, y: float, z: float, /) -> None: ...
|
||||
def scale(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""
|
||||
Scale the bounding box by the given values.
|
||||
@@ -343,17 +316,11 @@ class BoundBox(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def isInside(self, object: Vector, /) -> bool:
|
||||
...
|
||||
|
||||
def isInside(self, object: Vector, /) -> bool: ...
|
||||
@overload
|
||||
def isInside(self, object: "BoundBox", /) -> bool:
|
||||
...
|
||||
|
||||
def isInside(self, object: "BoundBox", /) -> bool: ...
|
||||
@overload
|
||||
def isInside(self, x: float, y: float, z: float, /) -> bool:
|
||||
...
|
||||
|
||||
def isInside(self, x: float, y: float, z: float, /) -> bool: ...
|
||||
def isInside(self, *args: Any) -> bool:
|
||||
"""
|
||||
Check if a point or a bounding box is inside this bounding box.
|
||||
|
||||
@@ -10,7 +10,6 @@ from Placement import Placement
|
||||
from Rotation import Rotation
|
||||
from typing import Union
|
||||
|
||||
|
||||
@export(
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
|
||||
@@ -8,7 +8,6 @@ from PyObjectBase import PyObjectBase
|
||||
from enum import IntEnum
|
||||
from typing import overload, Union, Tuple, Sequence
|
||||
|
||||
|
||||
class ScaleType(IntEnum):
|
||||
Other = -1
|
||||
NoScaling = 0
|
||||
@@ -16,7 +15,6 @@ class ScaleType(IntEnum):
|
||||
NonUniformLeft = 2
|
||||
Uniform = 3
|
||||
|
||||
|
||||
@export(
|
||||
TwinPointer="Matrix4D",
|
||||
Constructor=True,
|
||||
@@ -109,13 +107,9 @@ class Matrix(PyObjectBase):
|
||||
"""The matrix elements."""
|
||||
|
||||
@overload
|
||||
def move(self, vector: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, vector: Vector, /) -> None: ...
|
||||
@overload
|
||||
def move(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def move(self, x: float, y: float, z: float, /) -> None: ...
|
||||
def move(self, *args) -> None:
|
||||
"""
|
||||
Move the matrix along a vector, equivalent to left multiply the matrix
|
||||
@@ -132,17 +126,11 @@ class Matrix(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def scale(self, vector: Vector, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, vector: Vector, /) -> None: ...
|
||||
@overload
|
||||
def scale(self, x: float, y: float, z: float, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, x: float, y: float, z: float, /) -> None: ...
|
||||
@overload
|
||||
def scale(self, factor: float, /) -> None:
|
||||
...
|
||||
|
||||
def scale(self, factor: float, /) -> None: ...
|
||||
def scale(self, *args) -> None:
|
||||
"""
|
||||
Scale the first three rows of the matrix.
|
||||
@@ -308,13 +296,9 @@ class Matrix(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def multiply(self, matrix: "Matrix", /) -> "Matrix":
|
||||
...
|
||||
|
||||
def multiply(self, matrix: "Matrix", /) -> "Matrix": ...
|
||||
@overload
|
||||
def multiply(self, vector: Vector, /) -> Vector:
|
||||
...
|
||||
|
||||
def multiply(self, vector: Vector, /) -> Vector: ...
|
||||
@constmethod
|
||||
def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]:
|
||||
"""
|
||||
|
||||
@@ -1,40 +1,31 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
"""
|
||||
This file keeps auxiliary metadata to be used by the Python API stubs.
|
||||
"""
|
||||
|
||||
|
||||
def export(**kwargs):
|
||||
"""
|
||||
A decorator to attach metadata to a class.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
def constmethod(method):
|
||||
...
|
||||
|
||||
|
||||
def no_args(method):
|
||||
...
|
||||
|
||||
|
||||
def constmethod(method): ...
|
||||
def no_args(method): ...
|
||||
def forward_declarations(source_code):
|
||||
"""
|
||||
A decorator to attach forward declarations to a class.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
def class_declarations(source_code):
|
||||
"""
|
||||
A decorator to attach forward declarations to a class.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
def sequence_protocol(**kwargs):
|
||||
"""
|
||||
A decorator to attach sequence protocol metadata to a class.
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import constmethod
|
||||
from BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
class Persistence(BaseClass):
|
||||
"""
|
||||
Base.Persistence class.
|
||||
|
||||
@@ -9,7 +9,6 @@ from Rotation import Rotation as RotationPy
|
||||
from Vector import Vector
|
||||
from typing import Sequence, overload
|
||||
|
||||
|
||||
@export(
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
@@ -114,9 +113,7 @@ class Placement(PyObjectBase):
|
||||
@overload
|
||||
def rotate(
|
||||
self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
@overload
|
||||
def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None:
|
||||
"""
|
||||
@@ -135,9 +132,7 @@ class Placement(PyObjectBase):
|
||||
behave like TopoShape.rotate() (i.e. the resulting placements are interchangeable).
|
||||
"""
|
||||
|
||||
def rotate(self, *args, **kwargs) -> None:
|
||||
...
|
||||
|
||||
def rotate(self, *args, **kwargs) -> None: ...
|
||||
@constmethod
|
||||
def multiply(self, placement: "Placement", /) -> "Placement":
|
||||
"""
|
||||
|
||||
@@ -4,7 +4,6 @@ from __future__ import annotations
|
||||
|
||||
from PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
class Precision(PyObjectBase):
|
||||
"""
|
||||
This is the Precision class
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class PyObjectBase:
|
||||
"""
|
||||
The most base class for Python bindings.
|
||||
|
||||
@@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase
|
||||
from typing import overload, Final, Tuple, Union
|
||||
from Unit import Unit as UnitPy
|
||||
|
||||
|
||||
@export(
|
||||
NumberProtocol=True,
|
||||
RichCompare=True,
|
||||
@@ -56,13 +55,9 @@ class Quantity(PyObjectBase):
|
||||
# fmt: on
|
||||
|
||||
@overload
|
||||
def toStr(self, /) -> str:
|
||||
...
|
||||
|
||||
def toStr(self, /) -> str: ...
|
||||
@overload
|
||||
def toStr(self, decimals: int, /) -> str:
|
||||
...
|
||||
|
||||
def toStr(self, decimals: int, /) -> str: ...
|
||||
@constmethod
|
||||
def toStr(self, decimals: int = ..., /) -> str:
|
||||
"""
|
||||
@@ -79,21 +74,13 @@ class Quantity(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def getValueAs(self, unit: str, /) -> float:
|
||||
...
|
||||
|
||||
def getValueAs(self, unit: str, /) -> float: ...
|
||||
@overload
|
||||
def getValueAs(self, translation: float, unit_signature: int, /) -> float:
|
||||
...
|
||||
|
||||
def getValueAs(self, translation: float, unit_signature: int, /) -> float: ...
|
||||
@overload
|
||||
def getValueAs(self, unit: UnitPy, /) -> float:
|
||||
...
|
||||
|
||||
def getValueAs(self, unit: UnitPy, /) -> float: ...
|
||||
@overload
|
||||
def getValueAs(self, quantity: "Quantity", /) -> float:
|
||||
...
|
||||
|
||||
def getValueAs(self, quantity: "Quantity", /) -> float: ...
|
||||
@constmethod
|
||||
def getValueAs(self, *args) -> float:
|
||||
"""
|
||||
@@ -109,13 +96,9 @@ class Quantity(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def __round__(self, /) -> int:
|
||||
...
|
||||
|
||||
def __round__(self, /) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: int, /) -> float:
|
||||
...
|
||||
|
||||
def __round__(self, ndigits: int, /) -> float: ...
|
||||
@constmethod
|
||||
def __round__(self, ndigits: int = ..., /) -> Union[int, float]:
|
||||
"""
|
||||
|
||||
@@ -8,7 +8,6 @@ from Vector import Vector
|
||||
from Matrix import Matrix
|
||||
from typing import overload, Tuple, List, Final
|
||||
|
||||
|
||||
@export(
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
|
||||
@@ -6,16 +6,17 @@ from Metadata import export, forward_declarations, constmethod
|
||||
from PyObjectBase import PyObjectBase
|
||||
from typing import List, Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="BaseType",
|
||||
TwinPointer="BaseType",
|
||||
Delete=True,
|
||||
)
|
||||
@forward_declarations("""
|
||||
@forward_declarations(
|
||||
"""
|
||||
namespace Base {
|
||||
using BaseType = Type;
|
||||
}""")
|
||||
}"""
|
||||
)
|
||||
class Type(PyObjectBase):
|
||||
"""
|
||||
BaseTypePy class.
|
||||
|
||||
@@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase
|
||||
from Quantity import Quantity
|
||||
from typing import Final, Tuple, overload
|
||||
|
||||
|
||||
@export(
|
||||
NumberProtocol=True,
|
||||
RichCompare=True,
|
||||
@@ -31,9 +30,7 @@ class Unit(PyObjectBase):
|
||||
"""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self,
|
||||
@@ -45,20 +42,13 @@ class Unit(PyObjectBase):
|
||||
i6: float,
|
||||
i7: float,
|
||||
i8: float,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(self, quantity: Quantity) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, quantity: Quantity) -> None: ...
|
||||
@overload
|
||||
def __init__(self, unit: Unit) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, unit: Unit) -> None: ...
|
||||
@overload
|
||||
def __init__(self, string: str) -> None:
|
||||
...
|
||||
def __init__(self, string: str) -> None: ...
|
||||
|
||||
Type: Final[str] = ...
|
||||
"""holds the unit type as a string, e.g. 'Area'."""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export, constmethod, sequence_protocol, class_declarations
|
||||
from PyObjectBase import PyObjectBase
|
||||
from typing import overload, Sequence
|
||||
|
||||
|
||||
@export(
|
||||
TwinPointer="Vector3d",
|
||||
Include="Base/Vector3D.h",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, Final, Tuple, Dict
|
||||
|
||||
|
||||
@export(
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
@@ -42,7 +41,6 @@ class AxisOrigin(BaseClass):
|
||||
Output Coin path leading to the returned element detail.
|
||||
"""
|
||||
...
|
||||
|
||||
AxisLength: float = 0.0
|
||||
"""Get/set the axis length."""
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
|
||||
class Command(PyObjectBase):
|
||||
"""
|
||||
FreeCAD Python wrapper of Command functions
|
||||
|
||||
@@ -7,7 +7,6 @@ from Base.Persistence import Persistence
|
||||
from Base.Matrix import Matrix
|
||||
from typing import Any, Final, List, Optional
|
||||
|
||||
|
||||
class Document(Persistence):
|
||||
"""
|
||||
This is a Document class
|
||||
@@ -188,7 +187,6 @@ class Document(Persistence):
|
||||
obj : Gui.ViewProvider
|
||||
"""
|
||||
...
|
||||
|
||||
ActiveObject: Any = ...
|
||||
"""The active object of the document."""
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, Final, List, Dict, Tuple, overload
|
||||
|
||||
|
||||
@export(
|
||||
Include="Gui/ViewProviderLink.h",
|
||||
Constructor=True,
|
||||
@@ -27,21 +26,13 @@ class LinkView(BaseClass):
|
||||
...
|
||||
|
||||
@overload
|
||||
def setMaterial(self, material: None, /) -> None:
|
||||
...
|
||||
|
||||
def setMaterial(self, material: None, /) -> None: ...
|
||||
@overload
|
||||
def setMaterial(self, material: Any, /) -> None:
|
||||
...
|
||||
|
||||
def setMaterial(self, material: Any, /) -> None: ...
|
||||
@overload
|
||||
def setMaterial(self, material: List[Any], /) -> None:
|
||||
...
|
||||
|
||||
def setMaterial(self, material: List[Any], /) -> None: ...
|
||||
@overload
|
||||
def setMaterial(self, material: Dict[int, Any], /) -> None:
|
||||
...
|
||||
|
||||
def setMaterial(self, material: Dict[int, Any], /) -> None: ...
|
||||
def setMaterial(self, material: Any, /) -> None:
|
||||
"""
|
||||
setMaterial(Material): set the override material of the entire linked object
|
||||
@@ -59,13 +50,9 @@ class LinkView(BaseClass):
|
||||
...
|
||||
|
||||
@overload
|
||||
def setType(self, type: int, /) -> None:
|
||||
...
|
||||
|
||||
def setType(self, type: int, /) -> None: ...
|
||||
@overload
|
||||
def setType(self, type: int, sublink: bool, /) -> None:
|
||||
...
|
||||
|
||||
def setType(self, type: int, sublink: bool, /) -> None: ...
|
||||
def setType(self, type: int, sublink: bool = True, /) -> None:
|
||||
"""
|
||||
set the link type.
|
||||
@@ -82,17 +69,11 @@ class LinkView(BaseClass):
|
||||
...
|
||||
|
||||
@overload
|
||||
def setTransform(self, matrix: Any, /) -> None:
|
||||
...
|
||||
|
||||
def setTransform(self, matrix: Any, /) -> None: ...
|
||||
@overload
|
||||
def setTransform(self, matrix: List[Any], /) -> None:
|
||||
...
|
||||
|
||||
def setTransform(self, matrix: List[Any], /) -> None: ...
|
||||
@overload
|
||||
def setTransform(self, matrix: Dict[int, Any], /) -> None:
|
||||
...
|
||||
|
||||
def setTransform(self, matrix: Dict[int, Any], /) -> None: ...
|
||||
def setTransform(self, matrix: Any, /) -> None:
|
||||
"""
|
||||
set transformation of the linked object
|
||||
@@ -121,17 +102,11 @@ class LinkView(BaseClass):
|
||||
...
|
||||
|
||||
@overload
|
||||
def setLink(self, obj: Any, /) -> None:
|
||||
...
|
||||
|
||||
def setLink(self, obj: Any, /) -> None: ...
|
||||
@overload
|
||||
def setLink(self, obj: Any, subname: str, /) -> None:
|
||||
...
|
||||
|
||||
def setLink(self, obj: Any, subname: str, /) -> None: ...
|
||||
@overload
|
||||
def setLink(self, obj: Any, subname: List[str], /) -> None:
|
||||
...
|
||||
|
||||
def setLink(self, obj: Any, subname: List[str], /) -> None: ...
|
||||
def setLink(self, obj: Any, subname: Any = None, /) -> None:
|
||||
"""
|
||||
Set the link
|
||||
@@ -175,7 +150,6 @@ class LinkView(BaseClass):
|
||||
Get children view objects
|
||||
"""
|
||||
...
|
||||
|
||||
LinkedView: Final[Any] = ...
|
||||
"""The linked view object"""
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(Include="Gui/Navigation/NavigationStyle.h", )
|
||||
@export(
|
||||
Include="Gui/Navigation/NavigationStyle.h",
|
||||
)
|
||||
class NavigationStyle(BaseClass):
|
||||
"""
|
||||
This is the base class for navigation styles
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from Workbench import Workbench
|
||||
from warnings import deprecated
|
||||
|
||||
|
||||
@export(
|
||||
Twin="PythonBaseWorkbench",
|
||||
TwinPointer="PythonBaseWorkbench",
|
||||
|
||||
@@ -4,7 +4,6 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, Final, Tuple
|
||||
|
||||
|
||||
@export(
|
||||
Include="Gui/Selection/SelectionObject.h",
|
||||
Delete=True,
|
||||
@@ -20,7 +19,7 @@ class SelectionObject(BaseClass):
|
||||
def remove(self) -> None:
|
||||
"""
|
||||
Remove this selection item from the selection.
|
||||
|
||||
|
||||
--
|
||||
This object becomes invalid.
|
||||
"""
|
||||
@@ -31,7 +30,6 @@ class SelectionObject(BaseClass):
|
||||
Test for a certain father class.
|
||||
"""
|
||||
...
|
||||
|
||||
ObjectName: Final[str] = ""
|
||||
"""Name of the selected object"""
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from App.ExtensionContainer import ExtensionContainer
|
||||
from typing import Any, Final, List, Optional
|
||||
import enum
|
||||
|
||||
|
||||
class ViewProvider(ExtensionContainer):
|
||||
"""
|
||||
This is the ViewProvider base class
|
||||
@@ -290,7 +289,6 @@ class ViewProvider(ExtensionContainer):
|
||||
Default to active view. Optional.
|
||||
"""
|
||||
...
|
||||
|
||||
Annotation: Any = ...
|
||||
"""A pivy Separator to add a custom scenegraph to this ViewProvider."""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from ViewProvider import ViewProvider
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
class ViewProviderDocumentObject(ViewProvider):
|
||||
"""
|
||||
This is the ViewProvider base class
|
||||
@@ -19,7 +18,6 @@ class ViewProviderDocumentObject(ViewProvider):
|
||||
Update the view representation of the object
|
||||
"""
|
||||
...
|
||||
|
||||
Object: Any = ...
|
||||
"""Set/Get the associated data object"""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from Base.Metadata import constmethod
|
||||
from App.Extension import Extension
|
||||
|
||||
|
||||
class ViewProviderExtension(Extension):
|
||||
"""
|
||||
Base class for all view provider extensions
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from Base.Metadata import no_args
|
||||
from ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
|
||||
|
||||
class ViewProviderGeometryObject(ViewProviderDocumentObject):
|
||||
"""
|
||||
This is the ViewProvider geometry class
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
class ViewProviderLink(ViewProviderDocumentObject):
|
||||
"""
|
||||
This is the ViewProviderLink class
|
||||
|
||||
@@ -6,8 +6,9 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, List, Dict
|
||||
|
||||
|
||||
@export(Include="Gui/Workbench.h", )
|
||||
@export(
|
||||
Include="Gui/Workbench.h",
|
||||
)
|
||||
class Workbench(BaseClass):
|
||||
"""
|
||||
This is the base class for workbenches
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.Part import Part
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Assembly/App/AssemblyLink.h",
|
||||
Namespace="Assembly",
|
||||
|
||||
@@ -9,7 +9,6 @@ from Base.Metadata import constmethod, export
|
||||
from App.Part import Part
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly")
|
||||
class AssemblyObject(Part):
|
||||
"""
|
||||
@@ -145,10 +144,8 @@ class AssemblyObject(Part):
|
||||
|
||||
@constmethod
|
||||
def getDownstreamParts(
|
||||
self,
|
||||
start_part: DocumentObject,
|
||||
joint_to_ignore: DocumentObject,
|
||||
/) -> list[DocumentObject]:
|
||||
self, start_part: DocumentObject, joint_to_ignore: DocumentObject, /
|
||||
) -> list[DocumentObject]:
|
||||
"""
|
||||
Finds all parts connected to a start_part that are not connected to ground
|
||||
when a specific joint is ignored.
|
||||
@@ -165,6 +162,5 @@ class AssemblyObject(Part):
|
||||
A list of App.DocumentObject instances representing the downstream parts.
|
||||
"""
|
||||
...
|
||||
|
||||
Joints: Final[list]
|
||||
"""A list of all joints this assembly has."""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly")
|
||||
class BomGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from Spreadsheet.Sheet import Sheet
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Assembly/App/BomObject.h",
|
||||
FatherInclude="Mod/Spreadsheet/App/SheetPy.h",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly")
|
||||
class JointGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly")
|
||||
class SimulationGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly")
|
||||
class ViewGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -51,7 +51,6 @@ class ViewProviderAssembly(ViewProvider):
|
||||
Restores the visual state of all components, clearing any active isolation.
|
||||
"""
|
||||
...
|
||||
|
||||
EnableMovement: bool
|
||||
"""Enable moving the parts by clicking and dragging."""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Area.h",
|
||||
Namespace="Path",
|
||||
@@ -97,7 +96,6 @@ class Area(BaseClass):
|
||||
def abort(self, **kwargs) -> Any:
|
||||
"""Abort the current operation."""
|
||||
...
|
||||
|
||||
Sections: Final[list]
|
||||
"""List of sections in this area."""
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ from Base.Metadata import class_declarations, constmethod, export
|
||||
from Base.Persistence import Persistence
|
||||
from Base.Placement import Placement
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Command.h",
|
||||
Namespace="Path",
|
||||
@@ -32,7 +31,6 @@ class Command(Persistence):
|
||||
def transform(self, placement: Placement, /) -> Command:
|
||||
"""returns a copy of this command transformed by the given placement"""
|
||||
...
|
||||
|
||||
Name: str
|
||||
"""The name of the command"""
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/FeatureArea.h",
|
||||
Namespace="Path",
|
||||
@@ -32,6 +31,5 @@ class FeatureArea(DocumentObject):
|
||||
Same usage as Path.Area.setParams(). This function stores the parameters in the properties.
|
||||
"""
|
||||
...
|
||||
|
||||
WorkPlane: Any
|
||||
"""The current workplane. If no plane is set, it is derived from the added shapes."""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/FeaturePathCompound.h",
|
||||
TwinPointer="FeatureCompound",
|
||||
|
||||
@@ -27,10 +27,8 @@ class Path(Persistence):
|
||||
|
||||
@overload
|
||||
def addCommands(self, command: Command, /) -> Path: ...
|
||||
|
||||
@overload
|
||||
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"""
|
||||
...
|
||||
@@ -62,10 +60,11 @@ class Path(Persistence):
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def getCycleTime(self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, /) -> float:
|
||||
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"""
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ class Voronoi(BaseClass):
|
||||
def numSegments(self) -> Any:
|
||||
"""Return number of input segments"""
|
||||
...
|
||||
|
||||
Cells: Final[list]
|
||||
"""List of all cells of the voronoi diagram"""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod, export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/VoronoiCell.h",
|
||||
Namespace="Path",
|
||||
@@ -40,7 +39,6 @@ class VoronoiCell(BaseClass):
|
||||
def getSource(self) -> Any:
|
||||
"""Returns the Source for the cell"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""Internal id of the element."""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod, export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/VoronoiEdge.h",
|
||||
Namespace="Path",
|
||||
@@ -70,7 +69,6 @@ class VoronoiEdge(BaseClass):
|
||||
def getSegmentAngle(self) -> Any:
|
||||
"""Returns the angle (in degree) of the segments if the edge was formed by two segments"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""Internal id of the element."""
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod, export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/VoronoiVertex.h",
|
||||
Namespace="Path",
|
||||
@@ -25,7 +24,6 @@ class VoronoiVertex(BaseClass):
|
||||
def toPoint(self) -> Any:
|
||||
"""Returns a Vector - or None if not possible"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""Internal id of the element."""
|
||||
|
||||
|
||||
@@ -53,6 +53,5 @@ class PathSim(BaseClass):
|
||||
Apply a single path command on the stock starting from placement.
|
||||
"""
|
||||
...
|
||||
|
||||
Tool: Final[Any]
|
||||
"""Return current simulation tool."""
|
||||
|
||||
@@ -10,7 +10,6 @@ from Base.Metadata import export, no_args
|
||||
from Part.App.TopoShape import TopoShape
|
||||
from CAM.App.Command import Command
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h",
|
||||
FatherInclude="Base/BaseClassPy.h",
|
||||
|
||||
@@ -51,10 +51,8 @@ class FemMesh(ComplexGeoData):
|
||||
|
||||
@overload
|
||||
def addEdge(self, n1: int, n2: int, /) -> int: ...
|
||||
|
||||
@overload
|
||||
def addEdge(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
|
||||
|
||||
def addEdge(self, *args) -> int:
|
||||
"""Add an edge by setting two node indices."""
|
||||
...
|
||||
@@ -65,10 +63,8 @@ class FemMesh(ComplexGeoData):
|
||||
|
||||
@overload
|
||||
def addFace(self, n1: int, n2: int, n3: int, /) -> int: ...
|
||||
|
||||
@overload
|
||||
def addFace(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
|
||||
|
||||
def addFace(self) -> Any:
|
||||
"""Add a face by setting three node indices."""
|
||||
...
|
||||
@@ -83,10 +79,8 @@ class FemMesh(ComplexGeoData):
|
||||
|
||||
@overload
|
||||
def addVolume(self, n1: int, n2: int, n3: int, n4: int, /) -> int: ...
|
||||
|
||||
@overload
|
||||
def addVolume(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
|
||||
|
||||
def addVolume(self, *args) -> int:
|
||||
"""Add a volume by setting an arbitrary number of node indices."""
|
||||
...
|
||||
@@ -121,7 +115,8 @@ class FemMesh(ComplexGeoData):
|
||||
groupParam: bool,
|
||||
volVariant: str = "standard",
|
||||
faceVariant: str = "shell",
|
||||
edgeVariant: str = "beam") -> None:
|
||||
edgeVariant: str = "beam",
|
||||
) -> None:
|
||||
"""
|
||||
Write out as ABAQUS inp.
|
||||
|
||||
@@ -295,7 +290,6 @@ class FemMesh(ComplexGeoData):
|
||||
def getIdByElementType(self, elem_type: str, /) -> tuple[int, ...]:
|
||||
"""Return a tuple of IDs to a given element type"""
|
||||
...
|
||||
|
||||
Nodes: Final[dict]
|
||||
"""Dictionary of Nodes by ID (int ID:Vector())"""
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from Fem.FemPostFilter import FemPostFilter
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemPostBranchFilter.h",
|
||||
Namespace="Fem",
|
||||
|
||||
@@ -27,7 +27,6 @@ class FemPostPipeline(FemPostObject):
|
||||
|
||||
@overload
|
||||
def read(self, file_name: str, /) -> None: ...
|
||||
|
||||
@overload
|
||||
def read(
|
||||
self,
|
||||
@@ -36,8 +35,7 @@ class FemPostPipeline(FemPostObject):
|
||||
unit: Unit,
|
||||
frame_type: str,
|
||||
/,
|
||||
) -> None: ...
|
||||
|
||||
) -> None: ...
|
||||
def read(self, *args) -> None:
|
||||
"""
|
||||
Reads in a single vtk file or creates a multiframe result by reading in multiple result files.
|
||||
@@ -56,7 +54,6 @@ class FemPostPipeline(FemPostObject):
|
||||
|
||||
@overload
|
||||
def load(self, obj: DocumentObject, /) -> None: ...
|
||||
|
||||
@overload
|
||||
def load(
|
||||
self,
|
||||
@@ -65,8 +62,7 @@ class FemPostPipeline(FemPostObject):
|
||||
unit: Unit,
|
||||
frame_type: str,
|
||||
/,
|
||||
) -> None: ...
|
||||
|
||||
) -> None: ...
|
||||
def load(self, *args) -> Any:
|
||||
"""
|
||||
Load a single result object or create a multiframe result by loading multiple result frames.
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemConstraint.h",
|
||||
Namespace="FemGui",
|
||||
@@ -33,7 +32,6 @@ class ViewProviderFemConstraint(ViewProviderGeometryObject):
|
||||
Open Inventor file.
|
||||
"""
|
||||
...
|
||||
|
||||
SymbolNode: Final[Any]
|
||||
"""A pivy SoSeparator with the nodes of the constraint symbols"""
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemMesh.h",
|
||||
Namespace="FemGui",
|
||||
@@ -44,7 +43,6 @@ class ViewProviderFemMesh(ViewProviderGeometryObject):
|
||||
def setNodeDisplacementByVectors(self) -> Any:
|
||||
""""""
|
||||
...
|
||||
|
||||
NodeColor: dict
|
||||
"""Postprocessing color of the nodes. The faces between the nodes get interpolated."""
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Twin="ViewProviderFemPostObject",
|
||||
TwinPointer="ViewProviderFemPostObject",
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h",
|
||||
Namespace="FemGui",
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Any
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Import/App/StepShape.h",
|
||||
Namespace="Import",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/App/MeasureBase.h",
|
||||
Namespace="Measure",
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Any
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/App/Measurement.h",
|
||||
Namespace="Measure",
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/Gui/QuickMeasure.h",
|
||||
Namespace="MeasureGui",
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Final, Any
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/Edge.h",
|
||||
Namespace="Mesh",
|
||||
@@ -46,7 +45,6 @@ class Edge(PyObjectBase):
|
||||
After calling unbound() no topological operation will
|
||||
work!"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this edge of the facet"""
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Any, Final
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/Facet.h",
|
||||
Namespace="Mesh",
|
||||
@@ -57,7 +56,6 @@ class Facet(PyObjectBase):
|
||||
"""getEdge(int) -> Edge
|
||||
Returns the edge of the facet."""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this facet in the MeshObject"""
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import constmethod, export, class_declarations
|
||||
|
||||
from App.ComplexGeoData import ComplexGeoData
|
||||
|
||||
|
||||
@export(
|
||||
Twin="MeshObject",
|
||||
TwinPointer="MeshObject",
|
||||
@@ -510,7 +509,6 @@ class Mesh(ComplexGeoData):
|
||||
The items in the list contains minimum and maximum curvature with their directions
|
||||
"""
|
||||
...
|
||||
|
||||
Points: Final[list]
|
||||
"""A collection of the mesh points
|
||||
With this attribute it is possible to get access to the points of the mesh
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Metadata import export
|
||||
|
||||
from App.GeoFeature import GeoFeature
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Feature",
|
||||
TwinPointer="Feature",
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Any, Final
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/MeshPoint.h",
|
||||
Namespace="Mesh",
|
||||
@@ -34,7 +33,6 @@ class MeshPoint(PyObjectBase):
|
||||
After calling unbound() no topological operation will
|
||||
work!"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this point in the MeshObject"""
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from typing import Any
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/Gui/ViewProvider.h",
|
||||
Namespace="MeshGui",
|
||||
|
||||
@@ -7,7 +7,6 @@ from TrimmedCurve import TrimmedCurve
|
||||
from Geometry import Geom_Circle, Geom_Ellipse
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
Father="TrimmedCurvePy",
|
||||
PythonName="Part.Arc",
|
||||
@@ -26,9 +25,6 @@ class Arc(TrimmedCurve):
|
||||
"""
|
||||
|
||||
@overload
|
||||
def __init__(self, circ: Geom_Circle, T: type = ...) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, circ: Geom_Circle, T: type = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None:
|
||||
...
|
||||
def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: ...
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ArcOfCircle",
|
||||
Twin="GeomArcOfCircle",
|
||||
|
||||
@@ -7,7 +7,6 @@ from Base.Vector import Vector
|
||||
from TrimmedCurve import TrimmedCurve
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
Father="TrimmedCurvePy",
|
||||
PythonName="Part.ArcOfConic",
|
||||
@@ -26,8 +25,7 @@ class ArcOfConic(TrimmedCurve):
|
||||
"""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
Location: Vector = ...
|
||||
"""Center of the conic."""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ArcOfEllipse",
|
||||
Twin="GeomArcOfEllipse",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from Part.ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Father="ArcOfConicPy",
|
||||
Name="ArcOfHyperbolaPy",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Father="ArcOfConicPy",
|
||||
Name="ArcOfParabolaPy",
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Placement import Placement
|
||||
from App.DocumentObject import DocumentObject
|
||||
from typing import Final, Optional
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Part/App/Attacher.h",
|
||||
Namespace="Attacher",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from App.DocumentObjectExtension import DocumentObjectExtension
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="AttachExtension",
|
||||
TwinPointer="AttachExtension",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import List
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BRepFeat.MakePrism",
|
||||
Twin="BRepFeat_MakePrism",
|
||||
|
||||
@@ -10,7 +10,6 @@ from Part.App.TopoShapeEdge import TopoShapeEdge
|
||||
from Part.App.TopoShapeFace import TopoShapeFace
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BRepOffsetAPI_MakeFilling",
|
||||
Include="BRepOffsetAPI_MakeFilling.hxx",
|
||||
@@ -63,25 +62,17 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None:
|
||||
...
|
||||
|
||||
def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: ...
|
||||
@overload
|
||||
def add(self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True) -> None:
|
||||
...
|
||||
|
||||
def add(
|
||||
self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True
|
||||
) -> None: ...
|
||||
@overload
|
||||
def add(self, Support: TopoShapeFace, Order: int) -> None:
|
||||
...
|
||||
|
||||
def add(self, Support: TopoShapeFace, Order: int) -> None: ...
|
||||
@overload
|
||||
def add(self, Point: Point) -> None:
|
||||
...
|
||||
|
||||
def add(self, Point: Point) -> None: ...
|
||||
@overload
|
||||
def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None:
|
||||
...
|
||||
|
||||
def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: ...
|
||||
def add(self, **kwargs) -> None:
|
||||
"""
|
||||
add(Edge, Order, IsBound=True)
|
||||
@@ -106,13 +97,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def G0Error(self, /) -> float:
|
||||
...
|
||||
|
||||
def G0Error(self, /) -> float: ...
|
||||
@overload
|
||||
def G0Error(self, arg: int, /) -> float:
|
||||
...
|
||||
|
||||
def G0Error(self, arg: int, /) -> float: ...
|
||||
def G0Error(self, arg: int = 0, /) -> float:
|
||||
"""
|
||||
G0Error([int])
|
||||
@@ -121,13 +108,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def G1Error(self, /) -> float:
|
||||
...
|
||||
|
||||
def G1Error(self, /) -> float: ...
|
||||
@overload
|
||||
def G1Error(self, arg: int, /) -> float:
|
||||
...
|
||||
|
||||
def G1Error(self, arg: int, /) -> float: ...
|
||||
def G1Error(self, arg: int = 0, /) -> float:
|
||||
"""
|
||||
G1Error([int])
|
||||
@@ -136,13 +119,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def G2Error(self, /) -> float:
|
||||
...
|
||||
|
||||
def G2Error(self, /) -> float: ...
|
||||
@overload
|
||||
def G2Error(self, arg: int, /) -> float:
|
||||
...
|
||||
|
||||
def G2Error(self, arg: int, /) -> float: ...
|
||||
def G2Error(self, arg: int = 0, /) -> float:
|
||||
"""
|
||||
G2Error([int])
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Vector import Vector
|
||||
from TopoShape import TopoShape
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BRepOffsetAPI_MakePipeShell",
|
||||
Include="BRepOffsetAPI_MakePipeShell.hxx",
|
||||
@@ -58,7 +57,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
|
||||
"""
|
||||
...
|
||||
|
||||
def setAuxiliarySpine(self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, /) -> None:
|
||||
def setAuxiliarySpine(
|
||||
self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, /
|
||||
) -> None:
|
||||
"""
|
||||
setAuxiliarySpine(wire, CurvilinearEquivalence, TypeOfContact)
|
||||
Sets an auxiliary spine to define the Normal.
|
||||
@@ -76,9 +77,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
|
||||
...
|
||||
|
||||
@overload
|
||||
def add(self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False) -> None:
|
||||
...
|
||||
|
||||
def add(
|
||||
self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False
|
||||
) -> None: ...
|
||||
@overload
|
||||
def add(
|
||||
self,
|
||||
@@ -87,9 +88,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
|
||||
*,
|
||||
WithContact: bool = False,
|
||||
WithCorrection: bool = False,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
def add(self, **kwargs) -> None:
|
||||
"""
|
||||
add(shape Profile, bool WithContact=False, bool WithCorrection=False)
|
||||
|
||||
@@ -9,7 +9,6 @@ from Part.App.Arc import Arc
|
||||
from Part.App.BezierCurve import BezierCurve
|
||||
from typing import Final, List, overload, Any
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BSplineCurve",
|
||||
Twin="GeomBSplineCurve",
|
||||
@@ -107,13 +106,9 @@ class BSplineCurve(BoundedCurve):
|
||||
...
|
||||
|
||||
@overload
|
||||
def increaseMultiplicity(self, index: int, mult: int, /) -> None:
|
||||
...
|
||||
|
||||
def increaseMultiplicity(self, index: int, mult: int, /) -> None: ...
|
||||
@overload
|
||||
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None:
|
||||
...
|
||||
|
||||
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ...
|
||||
def increaseMultiplicity(self, *args, **kwargs) -> None:
|
||||
"""
|
||||
increaseMultiplicity(int index, int mult)
|
||||
@@ -347,9 +342,7 @@ class BSplineCurve(BoundedCurve):
|
||||
TorsionWeight: float = 0.0,
|
||||
Parameters: List[float] = None,
|
||||
ParamType: str = "Uniform",
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
def approximate(self, **kwargs) -> None:
|
||||
"""
|
||||
Replaces this B-Spline curve by approximating a set of points.
|
||||
@@ -386,9 +379,7 @@ class BSplineCurve(BoundedCurve):
|
||||
|
||||
@overload
|
||||
@constmethod
|
||||
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
|
||||
...
|
||||
|
||||
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ...
|
||||
@constmethod
|
||||
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
|
||||
"""
|
||||
@@ -407,9 +398,7 @@ class BSplineCurve(BoundedCurve):
|
||||
FinalTangent: Vector = None,
|
||||
Tangents: List[Vector] = None,
|
||||
TangentFlags: List[bool] = None,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
def interpolate(self, **kwargs) -> None:
|
||||
"""
|
||||
Replaces this B-Spline curve by interpolating a set of points.
|
||||
@@ -486,9 +475,7 @@ class BSplineCurve(BoundedCurve):
|
||||
degree: int,
|
||||
weights: List[float] = None,
|
||||
CheckRational: bool = False,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
def buildFromPolesMultsKnots(self, **kwargs) -> None:
|
||||
"""
|
||||
Builds a B-Spline by a lists of Poles, Mults, Knots.
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
|
||||
from GeometrySurface import GeometrySurface
|
||||
from typing import Final, List, Any
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BSplineSurface",
|
||||
Twin="GeomBSplineSurface",
|
||||
|
||||
@@ -7,7 +7,6 @@ from Base.Vector import Vector
|
||||
from BoundedCurve import BoundedCurve
|
||||
from typing import Final, List
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBezierCurve",
|
||||
TwinPointer="GeomBezierCurve",
|
||||
|
||||
@@ -9,7 +9,6 @@ from Base.Metadata import (
|
||||
from GeometrySurface import GeometrySurface
|
||||
from typing import Final, Tuple, Any
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBezierSurface",
|
||||
TwinPointer="GeomBezierSurface",
|
||||
|
||||
@@ -5,7 +5,6 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from PartFeature import PartFeature
|
||||
|
||||
|
||||
@export(
|
||||
Twin="BodyBase",
|
||||
TwinPointer="BodyBase",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from GeometryCurve import GeometryCurve
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBoundedCurve",
|
||||
TwinPointer="GeomBoundedCurve",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Tuple
|
||||
|
||||
|
||||
@export(
|
||||
Name="ChFi2d_AnaFilletAlgoPy",
|
||||
PythonName="Part.ChFi2d.AnaFilletAlgo",
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Tuple
|
||||
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ChFi2d.ChamferAPI",
|
||||
Twin="ChFi2d_ChamferAPI",
|
||||
|
||||
@@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase
|
||||
from Part.TopoShapeEdgePy import TopoShapeEdge
|
||||
from Part.PointPy import Point
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ChFi2d.FilletAPI",
|
||||
Twin="ChFi2d_FilletAPI",
|
||||
@@ -44,8 +43,9 @@ class ChFi2d_FilletAPI(PyObjectBase):
|
||||
"""
|
||||
...
|
||||
|
||||
def result(self, point: Point, solution: int = -1,
|
||||
/) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]:
|
||||
def result(
|
||||
self, point: Point, solution: int = -1, /
|
||||
) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]:
|
||||
"""
|
||||
result(point, solution=-1)
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from Base.Vector import Vector
|
||||
|
||||
|
||||
@export(
|
||||
Name="ChFi2d_FilletAlgoPy",
|
||||
PythonName="Part.ChFi2d.FilletAlgo",
|
||||
|
||||
@@ -8,7 +8,6 @@ from Conic import Conic
|
||||
from Point import Point
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Circle",
|
||||
Twin="GeomCircle",
|
||||
@@ -42,21 +41,12 @@ class Circle(Conic):
|
||||
"""The radius of the circle."""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
@overload
|
||||
def __init__(self, circle: "Circle") -> None:
|
||||
...
|
||||
|
||||
def __init__(self, circle: "Circle") -> None: ...
|
||||
@overload
|
||||
def __init__(self, circle: "Circle", distance: float) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, circle: "Circle", distance: float) -> None: ...
|
||||
@overload
|
||||
def __init__(self, center: Point, normal: Vector, radius: float) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, center: Point, normal: Vector, radius: float) -> None: ...
|
||||
@overload
|
||||
def __init__(self, point1: Point, point2: Point, point3: Point) -> None:
|
||||
...
|
||||
def __init__(self, point1: Point, point2: Point, point3: Point) -> None: ...
|
||||
|
||||
@@ -8,7 +8,6 @@ from Base.Axis import Axis as AxisPy
|
||||
from GeometrySurface import GeometrySurface
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Cone",
|
||||
Twin="GeomCone",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from GeometryCurve import GeometryCurve
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Conic",
|
||||
Twin="GeomConic",
|
||||
|
||||
@@ -8,7 +8,6 @@ from Circle import Circle
|
||||
from GeometrySurface import GeometrySurface
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Cylinder",
|
||||
Twin="GeomCylinder",
|
||||
@@ -52,21 +51,12 @@ class Cylinder(GeometrySurface):
|
||||
"""The axis direction of the cylinder"""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
@overload
|
||||
def __init__(self, cylinder: "Cylinder") -> None:
|
||||
...
|
||||
|
||||
def __init__(self, cylinder: "Cylinder") -> None: ...
|
||||
@overload
|
||||
def __init__(self, cylinder: "Cylinder", distance: float) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, cylinder: "Cylinder", distance: float) -> None: ...
|
||||
@overload
|
||||
def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: ...
|
||||
@overload
|
||||
def __init__(self, circle: Circle) -> None:
|
||||
...
|
||||
def __init__(self, circle: Circle) -> None: ...
|
||||
|
||||
@@ -7,7 +7,6 @@ from Base.Vector import Vector
|
||||
from Conic import Conic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomEllipse",
|
||||
TwinPointer="GeomEllipse",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export
|
||||
from typing import Final, overload
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfCircle2d",
|
||||
Twin="Geom2dArcOfCircle",
|
||||
@@ -30,8 +29,7 @@ class ArcOfCircle2d(ArcOfConic2d):
|
||||
"""The internal circle representation"""
|
||||
|
||||
@overload
|
||||
def __init__(self, Radius: float, Circle: object) -> None:
|
||||
...
|
||||
def __init__(self, Radius: float, Circle: object) -> None: ...
|
||||
|
||||
"""
|
||||
ArcOfCircle2d(Radius, Circle) -> None
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from typing import Final
|
||||
from Part.Geom2d import Curve2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfConic2d",
|
||||
Twin="Geom2dArcOfConic",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export
|
||||
from typing import Final, overload
|
||||
from Part import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfEllipse2d",
|
||||
Twin="Geom2dArcOfEllipse",
|
||||
@@ -32,5 +31,4 @@ class ArcOfEllipse2d(ArcOfConic2d):
|
||||
"""The internal ellipse representation"""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, overload
|
||||
from typing import Final
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfHyperbola2d",
|
||||
Twin="Geom2dArcOfHyperbola",
|
||||
@@ -31,5 +30,4 @@ class ArcOfHyperbola2d(ArcOfConic2d):
|
||||
"""The internal hyperbola representation"""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export, overload
|
||||
from typing import Final
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfParabola2d",
|
||||
Twin="Geom2dArcOfParabola",
|
||||
@@ -30,5 +29,4 @@ class ArcOfParabola2d(ArcOfConic2d):
|
||||
"""The internal parabola representation."""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -7,7 +7,6 @@ from typing import Final, overload
|
||||
from Part.Curve2d import Curve2d
|
||||
from Base.Vector import Vector
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Geom2dBSplineCurve",
|
||||
TwinPointer="Geom2dBSplineCurve",
|
||||
@@ -88,13 +87,9 @@ class BSplineCurve2d(Curve2d):
|
||||
...
|
||||
|
||||
@overload
|
||||
def increaseMultiplicity(self, index: int, mult: int, /) -> None:
|
||||
...
|
||||
|
||||
def increaseMultiplicity(self, index: int, mult: int, /) -> None: ...
|
||||
@overload
|
||||
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None:
|
||||
...
|
||||
|
||||
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ...
|
||||
def increaseMultiplicity(self, *args, **kwargs) -> None:
|
||||
"""
|
||||
increaseMultiplicity(int index, int mult)
|
||||
@@ -387,9 +382,7 @@ class BSplineCurve2d(Curve2d):
|
||||
knots: tuple[float, ...],
|
||||
periodic: bool,
|
||||
degree: int,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
@overload
|
||||
def buildFromPolesMultsKnots(
|
||||
self,
|
||||
@@ -400,9 +393,7 @@ class BSplineCurve2d(Curve2d):
|
||||
degree: int,
|
||||
weights: tuple[float, ...],
|
||||
CheckRational: bool,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
def buildFromPolesMultsKnots(self, **kwargs) -> None:
|
||||
"""
|
||||
Builds a B-Spline by a lists of Poles, Mults, Knots.
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
|
||||
from Part.Curve2d import Curve2d
|
||||
from typing import Final, List
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Geom2dBezierCurve",
|
||||
TwinPointer="Geom2dBezierCurve",
|
||||
|
||||
@@ -6,7 +6,6 @@ from Metadata import export
|
||||
from typing import overload, Tuple
|
||||
from Part.Geom2d import Conic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.Circle2d",
|
||||
Twin="Geom2dCircle",
|
||||
@@ -42,27 +41,17 @@ class Circle2d(Conic2d):
|
||||
"""The radius of the circle."""
|
||||
|
||||
@overload
|
||||
def __init__(self) -> None:
|
||||
...
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
@overload
|
||||
def __init__(self, circle: "Circle2d") -> None:
|
||||
...
|
||||
|
||||
def __init__(self, circle: "Circle2d") -> None: ...
|
||||
@overload
|
||||
def __init__(self, circle: "Circle2d", Distance: float) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, circle: "Circle2d", Distance: float) -> None: ...
|
||||
@overload
|
||||
def __init__(self, Center: Tuple[float, float], Radius: float) -> None:
|
||||
...
|
||||
|
||||
def __init__(self, Center: Tuple[float, float], Radius: float) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self, Point1: Tuple[float, float], Point2: Tuple[float, float], Point3: Tuple[float, float]
|
||||
) -> None:
|
||||
...
|
||||
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
"""
|
||||
|
||||
@@ -6,7 +6,6 @@ from Base.Metadata import export
|
||||
from typing import Final
|
||||
from Part.Geom2d import Curve2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.Conic2d",
|
||||
Twin="Geom2dConic",
|
||||
|
||||
@@ -8,7 +8,6 @@ from Part.App.Geom2d.Geometry2d import Geometry2d
|
||||
from Part.App.Geom2d.BSplineCurve import BSplineCurve
|
||||
from typing import Final, overload, List
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Part/App/Geometry2d.h",
|
||||
FatherInclude="Mod/Part/App/Geom2d/Geometry2dPy.h",
|
||||
@@ -54,34 +53,22 @@ class Curve2d(Geometry2d):
|
||||
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, Number: int) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, Number: int) -> List[Vector]: ...
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, QuasiNumber: int) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, QuasiNumber: int) -> List[Vector]: ...
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, Distance: float) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, Distance: float) -> List[Vector]: ...
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, Deflection: float) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, Deflection: float) -> List[Vector]: ...
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, QuasiDeflection: float) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, QuasiDeflection: float) -> List[Vector]: ...
|
||||
@overload
|
||||
@constmethod
|
||||
def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]:
|
||||
...
|
||||
|
||||
def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: ...
|
||||
@constmethod
|
||||
def discretize(self, **kwargs) -> List[Vector]:
|
||||
"""
|
||||
@@ -120,21 +107,13 @@ class Curve2d(Geometry2d):
|
||||
...
|
||||
|
||||
@overload
|
||||
def length(self, /) -> float:
|
||||
...
|
||||
|
||||
def length(self, /) -> float: ...
|
||||
@overload
|
||||
def length(self, uMin: float, /) -> float:
|
||||
...
|
||||
|
||||
def length(self, uMin: float, /) -> float: ...
|
||||
@overload
|
||||
def length(self, uMin: float, uMax: float, /) -> float:
|
||||
...
|
||||
|
||||
def length(self, uMin: float, uMax: float, /) -> float: ...
|
||||
@overload
|
||||
def length(self, uMin: float, uMax: float, Tol: float, /) -> float:
|
||||
...
|
||||
|
||||
def length(self, uMin: float, uMax: float, Tol: float, /) -> float: ...
|
||||
def length(self, *args: float) -> float:
|
||||
"""
|
||||
Computes the length of a curve
|
||||
@@ -143,13 +122,9 @@ class Curve2d(Geometry2d):
|
||||
...
|
||||
|
||||
@overload
|
||||
def parameterAtDistance(self, abscissa: float, /) -> float:
|
||||
...
|
||||
|
||||
def parameterAtDistance(self, abscissa: float, /) -> float: ...
|
||||
@overload
|
||||
def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float:
|
||||
...
|
||||
|
||||
def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float: ...
|
||||
def parameterAtDistance(self, *args: float) -> float:
|
||||
"""
|
||||
Returns the parameter on the curve of a point at
|
||||
@@ -206,13 +181,9 @@ class Curve2d(Geometry2d):
|
||||
...
|
||||
|
||||
@overload
|
||||
def toBSpline(self, /) -> BSplineCurve:
|
||||
...
|
||||
|
||||
def toBSpline(self, /) -> BSplineCurve: ...
|
||||
@overload
|
||||
def toBSpline(self, First: float, Last: float, /) -> BSplineCurve:
|
||||
...
|
||||
|
||||
def toBSpline(self, First: float, Last: float, /) -> BSplineCurve: ...
|
||||
def toBSpline(self, *args: float) -> BSplineCurve:
|
||||
"""
|
||||
Converts a curve of any type (only part from First to Last)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user