[bindings] Format with yapf (precommit will reformat)

This commit is contained in:
Frank Martinez
2025-10-07 12:07:42 -05:00
parent d4d7cabdc5
commit 0d0689341b
254 changed files with 885 additions and 311 deletions

View File

@@ -7,6 +7,7 @@ from TrimmedCurve import TrimmedCurve
from Geometry import Geom_Circle, Geom_Ellipse
from typing import overload
@export(
Father="TrimmedCurvePy",
PythonName="Part.Arc",
@@ -25,6 +26,9 @@ 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:
...

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
PythonName="Part.ArcOfCircle",
Twin="GeomArcOfCircle",

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from TrimmedCurve import TrimmedCurve
from typing import overload
@export(
Father="TrimmedCurvePy",
PythonName="Part.ArcOfConic",
@@ -25,7 +26,8 @@ class ArcOfConic(TrimmedCurve):
"""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
Location: Vector = ...
"""Center of the conic."""

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
PythonName="Part.ArcOfEllipse",
Twin="GeomArcOfEllipse",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Part.ArcOfConic import ArcOfConic
from typing import Final
@export(
Father="ArcOfConicPy",
Name="ArcOfHyperbolaPy",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
Father="ArcOfConicPy",
Name="ArcOfParabolaPy",

View File

@@ -8,6 +8,7 @@ from Base.Placement import Placement
from App.DocumentObject import DocumentObject
from typing import Final, Optional
@export(
Include="Mod/Part/App/Attacher.h",
Namespace="Attacher",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from App.DocumentObjectExtension import DocumentObjectExtension
from typing import Any, Final
@export(
Twin="AttachExtension",
TwinPointer="AttachExtension",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
from typing import List
@export(
PythonName="Part.BRepFeat.MakePrism",
Twin="BRepFeat_MakePrism",

View File

@@ -10,6 +10,7 @@ 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",
@@ -62,17 +63,25 @@ 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)
@@ -97,9 +106,13 @@ 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])
@@ -108,9 +121,13 @@ 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])
@@ -119,9 +136,13 @@ 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])

View File

@@ -8,6 +8,7 @@ from Base.Vector import Vector
from TopoShape import TopoShape
from typing import overload
@export(
PythonName="Part.BRepOffsetAPI_MakePipeShell",
Include="BRepOffsetAPI_MakePipeShell.hxx",
@@ -57,9 +58,7 @@ 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.
@@ -77,9 +76,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,
@@ -88,7 +87,9 @@ 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)

View File

@@ -9,6 +9,7 @@ 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",
@@ -106,9 +107,13 @@ 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)
@@ -342,7 +347,9 @@ 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.
@@ -379,7 +386,9 @@ class BSplineCurve(BoundedCurve):
@overload
@constmethod
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ...
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
...
@constmethod
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
"""
@@ -398,7 +407,9 @@ 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.
@@ -475,7 +486,9 @@ 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.

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from GeometrySurface import GeometrySurface
from typing import Final, List, Any
@export(
PythonName="Part.BSplineSurface",
Twin="GeomBSplineSurface",

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from BoundedCurve import BoundedCurve
from typing import Final, List
@export(
Twin="GeomBezierCurve",
TwinPointer="GeomBezierCurve",

View File

@@ -9,6 +9,7 @@ from Base.Metadata import (
from GeometrySurface import GeometrySurface
from typing import Final, Tuple, Any
@export(
Twin="GeomBezierSurface",
TwinPointer="GeomBezierSurface",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from PartFeature import PartFeature
@export(
Twin="BodyBase",
TwinPointer="BodyBase",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from GeometryCurve import GeometryCurve
from typing import Any, Final
@export(
Twin="GeomBoundedCurve",
TwinPointer="GeomBoundedCurve",

View File

@@ -6,6 +6,7 @@ from Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Tuple
@export(
Name="ChFi2d_AnaFilletAlgoPy",
PythonName="Part.ChFi2d.AnaFilletAlgo",

View File

@@ -7,6 +7,7 @@ from typing import Tuple
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ChFi2d.ChamferAPI",
Twin="ChFi2d_ChamferAPI",

View File

@@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase
from Part.TopoShapeEdgePy import TopoShapeEdge
from Part.PointPy import Point
@export(
PythonName="Part.ChFi2d.FilletAPI",
Twin="ChFi2d_FilletAPI",
@@ -43,9 +44,8 @@ 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)

View File

@@ -6,6 +6,7 @@ from Metadata import export
from Base.PyObjectBase import PyObjectBase
from Base.Vector import Vector
@export(
Name="ChFi2d_FilletAlgoPy",
PythonName="Part.ChFi2d.FilletAlgo",

View File

@@ -8,6 +8,7 @@ from Conic import Conic
from Point import Point
from typing import overload
@export(
PythonName="Part.Circle",
Twin="GeomCircle",
@@ -41,12 +42,21 @@ 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:
...

View File

@@ -8,6 +8,7 @@ from Base.Axis import Axis as AxisPy
from GeometrySurface import GeometrySurface
from typing import Final
@export(
PythonName="Part.Cone",
Twin="GeomCone",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from GeometryCurve import GeometryCurve
from typing import Final
@export(
PythonName="Part.Conic",
Twin="GeomConic",

View File

@@ -8,6 +8,7 @@ from Circle import Circle
from GeometrySurface import GeometrySurface
from typing import overload
@export(
PythonName="Part.Cylinder",
Twin="GeomCylinder",
@@ -51,12 +52,21 @@ 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:
...

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final
@export(
Twin="GeomEllipse",
TwinPointer="GeomEllipse",

View File

@@ -6,6 +6,7 @@ from Metadata import export
from typing import Final, overload
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfCircle2d",
Twin="Geom2dArcOfCircle",
@@ -29,7 +30,8 @@ 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

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from typing import Final
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.ArcOfConic2d",
Twin="Geom2dArcOfConic",

View File

@@ -6,6 +6,7 @@ from Metadata import export
from typing import Final, overload
from Part import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfEllipse2d",
Twin="Geom2dArcOfEllipse",
@@ -31,4 +32,5 @@ class ArcOfEllipse2d(ArcOfConic2d):
"""The internal ellipse representation"""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, overload
from typing import Final
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfHyperbola2d",
Twin="Geom2dArcOfHyperbola",
@@ -30,4 +31,5 @@ class ArcOfHyperbola2d(ArcOfConic2d):
"""The internal hyperbola representation"""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...

View File

@@ -6,6 +6,7 @@ from Metadata import export, overload
from typing import Final
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfParabola2d",
Twin="Geom2dArcOfParabola",
@@ -29,4 +30,5 @@ class ArcOfParabola2d(ArcOfConic2d):
"""The internal parabola representation."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...

View File

@@ -7,6 +7,7 @@ from typing import Final, overload
from Part.Curve2d import Curve2d
from Base.Vector import Vector
@export(
Twin="Geom2dBSplineCurve",
TwinPointer="Geom2dBSplineCurve",
@@ -87,9 +88,13 @@ 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)
@@ -382,7 +387,9 @@ class BSplineCurve2d(Curve2d):
knots: tuple[float, ...],
periodic: bool,
degree: int,
) -> None: ...
) -> None:
...
@overload
def buildFromPolesMultsKnots(
self,
@@ -393,7 +400,9 @@ 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.

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from Part.Curve2d import Curve2d
from typing import Final, List
@export(
Twin="Geom2dBezierCurve",
TwinPointer="Geom2dBezierCurve",

View File

@@ -6,6 +6,7 @@ from Metadata import export
from typing import overload, Tuple
from Part.Geom2d import Conic2d
@export(
PythonName="Part.Geom2d.Circle2d",
Twin="Geom2dCircle",
@@ -41,17 +42,27 @@ 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:
"""

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from typing import Final
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.Conic2d",
Twin="Geom2dConic",

View File

@@ -8,6 +8,7 @@ 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",
@@ -53,22 +54,34 @@ 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]:
"""
@@ -107,13 +120,21 @@ 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
@@ -122,9 +143,13 @@ 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
@@ -181,9 +206,13 @@ 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)

View File

@@ -6,6 +6,7 @@ from typing import Final, overload
from Base.Metadata import export
from Part.Conic2d import Conic2d
@export(
Twin="Geom2dEllipse",
TwinPointer="Geom2dEllipse",
@@ -55,12 +56,21 @@ class Ellipse2d(Conic2d):
"""The second focus is on the negative side of the major axis of the ellipse."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, Ellipse: "Ellipse2d") -> None: ...
def __init__(self, Ellipse: "Ellipse2d") -> None:
...
@overload
def __init__(self, S1: object, S2: object, Center: object) -> None: ...
def __init__(self, S1: object, S2: object, Center: object) -> None:
...
@overload
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ...
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None:
...
@overload
def __init__(self, *args, **kwargs) -> None: ...
def __init__(self, *args, **kwargs) -> None:
...

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
@export(
Twin="Geometry2d",
TwinPointer="Geometry2d",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Part.Conic2d import Conic2d
from typing import Final, overload
@export(
Twin="Geom2dHyperbola",
TwinPointer="Geom2dHyperbola",
@@ -61,10 +62,17 @@ class Hyperbola2d(Conic2d):
"""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, Hyperbola: "Hyperbola2d") -> None: ...
def __init__(self, Hyperbola: "Hyperbola2d") -> None:
...
@overload
def __init__(self, S1: object, S2: object, Center: object) -> None: ...
def __init__(self, S1: object, S2: object, Center: object) -> None:
...
@overload
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ...
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None:
...

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.Geom2d.Curve2d import Curve2d
@export(
PythonName="Part.Geom2d.Line2d",
Twin="Geom2dLine",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from typing import overload
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.Line2dSegment",
Twin="Geom2dLineSegment",
@@ -36,11 +37,17 @@ class Line2dSegment(Curve2d):
"""Returns the end point of this line segment."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, Line: "Line2dSegment") -> None: ...
def __init__(self, Line: "Line2dSegment") -> None:
...
@overload
def __init__(self, Point1: object, Point2: object) -> None: ...
def __init__(self, Point1: object, Point2: object) -> None:
...
def setParameterRange(self) -> None:
"""
Set the parameter range of the underlying line segment geometry.

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Metadata import export
from Part.Geom2d import Curve2d
@export(
Name="OffsetCurve2dPy",
Namespace="Part",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Part.App.Geom2d.Conic2d import Conic2d
from typing import Final
@export(
Include="Mod/Part/App/Geometry2d.h",
FatherInclude="Mod/Part/App/Geom2d/Conic2dPy.h",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
from typing import List
@export(
PythonName="Part.GeomPlate.BuildPlateSurfacePy",
Twin="GeomPlate_BuildPlateSurface",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Final
@export(
PythonName="Part.GeomPlate.CurveConstraintPy",
Twin="GeomPlate_CurveConstraint",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Tuple
@export(
PythonName="Part.GeomPlate.PointConstraintPy",
Twin="GeomPlate_PointConstraint",

View File

@@ -9,6 +9,7 @@ from Base.Vector import Vector
from Base.Matrix import Matrix
from typing import Final, List, Optional
@export(
Include="Mod/Part/App/Geometry.h",
Constructor=True,

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryBoolExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -10,6 +10,7 @@ from Part.App.BSplineCurve import BSplineCurve
from Part.App.TrimmedCurve import TrimmedCurve
from typing import Final, overload, List, Union, Optional, Tuple
@export(
Twin="GeomCurve",
TwinPointer="GeomCurve",
@@ -47,9 +48,8 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self, Number: int, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
def discretize(self, Number: int, *, First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
"""
Discretizes the curve and returns a list of points.
"""
@@ -57,9 +57,11 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self, QuasiNumber: int, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
def discretize(self,
QuasiNumber: int,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
"""
Discretizes the curve and returns a list of quasi equidistant points.
"""
@@ -67,9 +69,11 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self, Distance: float, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
def discretize(self,
Distance: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
"""
Discretizes the curve and returns a list of equidistant points with distance 'd'.
"""
@@ -77,9 +81,11 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self, Deflection: float, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
def discretize(self,
Deflection: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
"""
Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve.
"""
@@ -88,7 +94,11 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self, QuasiDeflection: float, *, First: Optional[float] = None, Last: Optional[float] = None
self,
QuasiDeflection: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve (faster).

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryDoubleExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Part/App/GeometryExtension.h",
Constructor=True,

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.GeometryExtension import GeometryExtension
@export(
Father="GeometryExtensionPy",
Name="GeometryIntExtensionPy",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryStringExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -10,6 +10,7 @@ from GeometryCurve import GeometryCurve
from Line import Line
from typing import Final, overload, Any, Tuple, List, Literal, Union
@export(
Twin="GeomSurface",
TwinPointer="GeomSurface",
@@ -85,23 +86,29 @@ class GeometrySurface(Geometry):
...
@overload
def projectPoint(
self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint"
) -> Vector: ...
def projectPoint(self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint") -> Vector:
...
@overload
def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float: ...
def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float:
...
@overload
def projectPoint(
self, Point: Vector, Method: Literal["LowerDistanceParameters"]
) -> Tuple[float, float]: ...
def projectPoint(self, Point: Vector, Method: Literal["LowerDistanceParameters"]) -> Tuple[float, float]:
...
@overload
def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]: ...
def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]:
...
@overload
def projectPoint(
self, Point: Vector, Method: Literal["Parameters"]
) -> List[Tuple[float, float]]: ...
def projectPoint(self, Point: Vector, Method: Literal["Parameters"]) -> List[Tuple[float, float]]:
...
@overload
def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]: ...
def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]:
...
@constmethod
def projectPoint(self, Point: Vector, Method: str = ...) -> Any:
"""
@@ -235,7 +242,9 @@ class GeometrySurface(Geometry):
max_degree_v: int = 25,
max_segments: int = 1000,
precision_code: int = 0,
) -> Any: ...
) -> Any:
...
@constmethod
def toBSpline(
self,

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, class_declarations
from Base.PyObjectBase import PyObjectBase
@export(
Twin="HLRBRep_Algo",
TwinPointer="HLRBRep_Algo",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, class_declarations
from Base.PyObjectBase import PyObjectBase
from Part.TopoShapePy import TopoShape
@export(
PythonName="Part.HLRBRep_PolyAlgo",
Twin="HLRBRep_PolyAlgo",
@@ -174,6 +175,7 @@ class HLRBRep_PolyAlgo(PyObjectBase):
Make a shape with the internal outlines in each face of shape S.
"""
...
TolAngular: float = ...
TolCoef: float = ...

View File

@@ -7,6 +7,7 @@ from Part.TopoShapePy import TopoShape
from Base.PyObjectBase import PyObjectBase
from typing import Optional
@export(
PythonName="Part.HLRToShapePy",
Twin="HLRBRep_HLRToShape",

View File

@@ -8,6 +8,7 @@ from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo
from Part.TopoShapePy import TopoShape
from typing import Optional
@export(
PythonName="Part.PolyHLRToShapePy",
Twin="HLRBRep_PolyHLRToShape",

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final, overload
@export(
Name="HyperbolaPy",
Namespace="Part",
@@ -61,10 +62,17 @@ class Hyperbola(Conic):
"""The second focus is on the negative side of the major axis of the hyperbola."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, hyperbola: "Hyperbola") -> None: ...
def __init__(self, hyperbola: "Hyperbola") -> None:
...
@overload
def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None: ...
def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None:
...
@overload
def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None: ...
def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None:
...

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from GeometryCurve import GeometryCurve
from typing import overload
@export(
PythonName="Part.Line",
Twin="GeomLine",
@@ -39,8 +40,13 @@ class Line(GeometryCurve):
"""Returns the direction of this line."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, line: "Line") -> None: ...
def __init__(self, line: "Line") -> None:
...
@overload
def __init__(self, point1: Vector, point2: Vector) -> None: ...
def __init__(self, point1: Vector, point2: Vector) -> None:
...

View File

@@ -8,6 +8,7 @@ from TrimmedCurve import TrimmedCurve
from Point import Point
from typing import overload
@export(
PythonName="Part.LineSegment",
Twin="GeomLineSegment",
@@ -37,11 +38,17 @@ class LineSegment(TrimmedCurve):
"""Returns the end point point of this line."""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, line_segment: "LineSegment") -> None: ...
def __init__(self, line_segment: "LineSegment") -> None:
...
@overload
def __init__(self, point1: Point, point2: Point) -> None: ...
def __init__(self, point1: Point, point2: Point) -> None:
...
def setParameterRange(self) -> None:
"""
Set the parameter range of the underlying line geometry

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Base.Vector import Vector
from GeometryCurve import GeometryCurve
@export(
PythonName="Part.OffsetCurve",
Twin="GeomOffsetCurve",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometrySurface import GeometrySurface
@export(
Twin="GeomOffsetSurface",
TwinPointer="GeomOffsetSurface",

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final
@export(
Twin="GeomParabola",
TwinPointer="GeomParabola",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from PartFeature import PartFeature
@export(
Twin="Part2DObject",
TwinPointer="Part2DObject",

View File

@@ -7,6 +7,7 @@ from App.GeoFeature import GeoFeature
from App.DocumentObject import DocumentObject
from typing import List, Tuple, Union
@export(
Twin="Feature",
TwinPointer="Feature",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometrySurface import GeometrySurface
@export(
PythonName="Part.Plane",
Twin="GeomPlane",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from GeometrySurface import GeometrySurface
@export(
Twin="GeomPlateSurface",
TwinPointer="GeomPlateSurface",

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from Geometry import Geometry
from typing import overload
@export(
PythonName="Part.Point",
Twin="GeomPoint",
@@ -33,17 +34,24 @@ class Point(Geometry):
"""
@overload
def __init__(self) -> None: ...
def __init__(self) -> None:
...
@overload
def __init__(self, other: "Point") -> None: ...
def __init__(self, other: "Point") -> None:
...
@overload
def __init__(self, coordinates: Vector) -> None: ...
def __init__(self, coordinates: Vector) -> None:
...
@constmethod
def toShape(self) -> object:
"""
Create a vertex from this point.
"""
...
X: float = ...
"""X component of this point."""

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from GeometrySurface import GeometrySurface
from typing import Any, Final, Tuple
@export(
Twin="GeomTrimmedSurface",
TwinPointer="GeomTrimmedSurface",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, class_declarations
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeFix.Edge",
Include="ShapeFix_Edge.hxx",

View File

@@ -8,6 +8,7 @@ from Part.App.TopoShapeEdge import TopoShapeEdge
from Part.App.TopoShape import TopoShape
from typing import overload
@export(
PythonName="Part.ShapeFix.EdgeConnect",
Include="ShapeFix_EdgeConnect.hxx",
@@ -23,9 +24,13 @@ class ShapeFix_EdgeConnect(PyObjectBase):
"""
@overload
def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None: ...
def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None:
...
@overload
def add(self, shape: TopoShape, /) -> None: ...
def add(self, shape: TopoShape, /) -> None:
...
def add(self, *args, **kwargs) -> None:
"""
add(edge, edge)

View File

@@ -8,6 +8,7 @@ from Part.TopoShapeFace import TopoShapeFace
from Part.TopoShapeShell import TopoShapeShell
from typing import Union
@export(
PythonName="Part.ShapeFix.Face",
Include="ShapeFix_Face.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeFix.FaceConnect",
Include="ShapeFix_FaceConnect.hxx",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
from Part.App.TopoShape import TopoShape
@export(
PythonName="Part.ShapeFix.FixSmallFace",
Include="ShapeFix_FixSmallFace.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.FixSmallSolid",
Include="ShapeFix_FixSmallSolid.hxx",

View File

@@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase
from Part.App.TopoShapeCompound import TopoShapeCompound
from Part.App.TopoShape import TopoShape
@export(
PythonName="Part.ShapeFix.FreeBounds",
Include="ShapeFix_FreeBounds.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, constmethod, class_declarations
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeFix.Root",
Include="ShapeFix_Root.hxx",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
from Part.TopoShape import TopoShape
@export(
PythonName="Part.ShapeFix.Shape",
Include="ShapeFix_Shape.hxx",

View File

@@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase
from Part.App.TopoShape import TopoShape
from typing import overload
@export(
PythonName="Part.ShapeFix.ShapeTolerance",
Include="ShapeFix_ShapeTolerance.hxx",
@@ -22,11 +23,13 @@ class ShapeFix_ShapeTolerance(PyObjectBase):
"""
@overload
def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None: ...
def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None:
...
@overload
def limitTolerance(
self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, /
) -> None: ...
def limitTolerance(self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, /) -> None:
...
def limitTolerance(
self, shape: TopoShape, tmin: float, tmax: float = 0, ShapeEnum: str = None, /
) -> None:
@@ -36,11 +39,13 @@ class ShapeFix_ShapeTolerance(PyObjectBase):
...
@overload
def setTolerance(self, shape: TopoShape, precision: float, /) -> None: ...
def setTolerance(self, shape: TopoShape, precision: float, /) -> None:
...
@overload
def setTolerance(
self, shape: TopoShape, precision: float, ShapeEnum: str = None, /
) -> None: ...
def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None:
...
def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None:
"""
setTolerance(shape, precision, [ShapeEnum=SHAPE])

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.Shell",
Twin="ShapeFix_Shell",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.Solid",
Twin="ShapeFix_Solid",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.SplitCommonVertex",
Include="ShapeFix_SplitCommonVertex.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeFix.SplitTool",
Include="ShapeFix_SplitTool.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.Wire",
Twin="ShapeFix_Wire",
@@ -229,6 +230,7 @@ class ShapeFix_Wire(ShapeFix_Root):
This method examines the geometry and applies corrective actions to eliminate or reduce the presence of tails.
"""
pass
ModifyTopologyMode: bool = ...
"""Mode for modifying topology of the wire"""

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeFix.WireVertex",
Include="ShapeFix_WireVertex.hxx",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
@export(
PythonName="Part.ShapeFix.Wireframe",
Twin="ShapeFix_Wireframe",
@@ -51,4 +52,5 @@ class ShapeFix_Wireframe(ShapeFix_Root):
"""
...
def shape(self) -> None: ...
def shape(self) -> None:
...

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ShapeUpgrade.UnifySameDomain",
Include="ShapeUpgrade_UnifySameDomain.hxx",

View File

@@ -8,6 +8,7 @@ from Base.Axis import Axis as AxisPy
from GeometrySurface import GeometrySurface
from typing import Final
@export(
Twin="GeomSphere",
TwinPointer="GeomSphere",

View File

@@ -7,6 +7,7 @@ from GeometrySurface import GeometrySurface
from GeometryCurve import GeometryCurve
from Base.Vector import Vector
@export(
Twin="GeomSurfaceOfExtrusion",
TwinPointer="GeomSurfaceOfExtrusion",

View File

@@ -9,6 +9,7 @@ from GeometrySurface import GeometrySurface
from GeometryCurve import GeometryCurve
from typing import overload
@export(
Twin="GeomSurfaceOfRevolution",
TwinPointer="GeomSurfaceOfRevolution",
@@ -35,6 +36,5 @@ class SurfaceOfRevolution(GeometrySurface):
"""Sets or gets the basic curve."""
@overload
def __init__(
self, location: Placement, direction: Vector, basis_curve: GeometryCurve
) -> None: ...
def __init__(self, location: Placement, direction: Vector, basis_curve: GeometryCurve) -> None:
...

View File

@@ -9,6 +9,7 @@ from Base.BoundBox import BoundBox
from App.ComplexGeoData import ComplexGeoData
from typing import Final, List, Tuple, Union, overload
@export(
Include="Mod/Part/App/TopoShape.h",
FatherInclude="App/ComplexGeoDataPy.h",
@@ -87,9 +88,7 @@ class TopoShape(ComplexGeoData):
...
@constmethod
def writeInventor(
self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object
) -> str:
def writeInventor(self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object) -> str:
"""
Write the mesh in OpenInventor format to a string.
writeInventor() -> string
@@ -296,7 +295,11 @@ class TopoShape(ComplexGeoData):
@constmethod
def section(
self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False, /
self,
tool: Tuple[TopoShape, ...],
tolerance: float = 0.0,
approximation: bool = False,
/
) -> TopoShape:
"""
Section of this with a given (list of) topo shape.
@@ -349,9 +352,10 @@ class TopoShape(ComplexGeoData):
...
@constmethod
def generalFuse(
self, shapes: Tuple[TopoShape, ...], fuzzy_value: float = 0.0, /
) -> Tuple[TopoShape, List[List[TopoShape]]]:
def generalFuse(self,
shapes: Tuple[TopoShape, ...],
fuzzy_value: float = 0.0,
/) -> Tuple[TopoShape, List[List[TopoShape]]]:
"""
Run general fuse algorithm (GFA) between this and given shapes.
generalFuse(list_of_other_shapes, [fuzzy_value = 0.0]) -> (result, map)
@@ -452,9 +456,7 @@ class TopoShape(ComplexGeoData):
"""
...
def transformShape(
self, matrix: Matrix, copy: bool = False, checkScale: bool = False, /
) -> None:
def transformShape(self, matrix: Matrix, copy: bool = False, checkScale: bool = False, /) -> None:
"""
Apply transformation on a shape without changing the underlying geometry.
transformShape(Matrix, [boolean copy=False, checkScale=False]) -> None
@@ -523,10 +525,14 @@ class TopoShape(ComplexGeoData):
@overload
@constmethod
def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ...
def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape:
...
@overload
@constmethod
def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ...
def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape:
...
@constmethod
def makeFillet(self, *args) -> TopoShape:
"""
@@ -537,13 +543,16 @@ class TopoShape(ComplexGeoData):
"""
...
@overload
@constmethod
def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape:
...
@overload
@constmethod
def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ...
@overload
@constmethod
def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ...
def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape:
...
@constmethod
def makeChamfer(self, *args) -> TopoShape:
"""
@@ -787,9 +796,7 @@ class TopoShape(ComplexGeoData):
"""
...
def fix(
self, working_precision: float, minimum_precision: float, maximum_precision: float, /
) -> bool:
def fix(self, working_precision: float, minimum_precision: float, maximum_precision: float, /) -> bool:
"""
Tries to fix a broken shape.
fix(working precision, minimum precision, maximum precision) -> bool
@@ -965,9 +972,7 @@ class TopoShape(ComplexGeoData):
...
@constmethod
def proximity(
self, shape: TopoShape, tolerance: float = None, /
) -> Tuple[List[int], List[int]]:
def proximity(self, shape: TopoShape, tolerance: float = None, /) -> Tuple[List[int], List[int]]:
"""
Returns two lists of Face indexes for the Faces involved in the intersection.
proximity(shape,[tolerance]) -> (selfFaces, shapeFaces)
@@ -975,9 +980,10 @@ class TopoShape(ComplexGeoData):
...
@constmethod
def distToShape(
self, shape: TopoShape, tol: float = 1e-7, /
) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]:
def distToShape(self,
shape: TopoShape,
tol: float = 1e-7,
/) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]:
"""
Find the minimum distance to another shape.
distToShape(shape, tol=1e-7) -> (dist, vectors, infos)
@@ -1022,9 +1028,7 @@ class TopoShape(ComplexGeoData):
"""
...
def mapSubElement(
self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", /
) -> None:
def mapSubElement(self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", /) -> None:
"""
mapSubElement(shape|[shape...], op='') - maps the sub element of other shape
@@ -1097,9 +1101,7 @@ class TopoShape(ComplexGeoData):
...
@constmethod
def inTolerance(
self, valmin: float, valmax: float, ShapeType: str = "Shape", /
) -> List[TopoShape]:
def inTolerance(self, valmin: float, valmax: float, ShapeType: str = "Shape", /) -> List[TopoShape]:
"""
Determines which shapes have a tolerance within a given interval
inTolerance(valmin, valmax, [ShapeType=Shape]) -> ShapeList

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export
from TopoShape import TopoShape
@export(
Father="TopoShapePy",
Name="TopoShapeCompSolidPy",

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from TopoShape import TopoShape
@export(
Twin="TopoShape",
TwinPointer="TopoShape",
@@ -28,9 +29,7 @@ class TopoShapeCompound(TopoShape):
...
@constmethod
def connectEdgesToWires(
self, Shared: bool = True, Tolerance: float = 1e-7, /
) -> "TopoShapeCompound":
def connectEdgesToWires(self, Shared: bool = True, Tolerance: float = 1e-7, /) -> "TopoShapeCompound":
"""
Build a compound of wires out of the edges of this compound.
connectEdgesToWires([Shared = True, Tolerance = 1e-7]) -> Compound

View File

@@ -9,6 +9,7 @@ from Vertex import Vertex
from TopoShape import TopoShape
from typing import Final, Tuple, Dict, List, overload
@export(
Twin="TopoShape",
TwinPointer="TopoShape",
@@ -455,27 +456,29 @@ class TopoShapeEdge(TopoShape):
@constmethod
@overload
def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]: ...
def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]:
...
@constmethod
@overload
def discretize(
self, QuasiNumber: int, First: float = ..., Last: float = ...
) -> List[Vector]: ...
def discretize(self, QuasiNumber: int, First: float = ..., Last: float = ...) -> List[Vector]:
...
@constmethod
@overload
def discretize(
self, Distance: float, First: float = ..., Last: float = ...
) -> List[Vector]: ...
def discretize(self, Distance: float, First: float = ..., Last: float = ...) -> List[Vector]:
...
@constmethod
@overload
def discretize(
self, Deflection: float, First: float = ..., Last: float = ...
) -> List[Vector]: ...
def discretize(self, Deflection: float, First: float = ..., Last: float = ...) -> List[Vector]:
...
@constmethod
@overload
def discretize(
self, QuasiDeflection: float, First: float = ..., Last: float = ...
) -> List[Vector]: ...
def discretize(self, QuasiDeflection: float, First: float = ..., Last: float = ...) -> List[Vector]:
...
@constmethod
@overload
def discretize(
@@ -485,7 +488,9 @@ class TopoShapeEdge(TopoShape):
Minimum: int = ...,
First: float = ...,
Last: float = ...,
) -> List[Vector]: ...
) -> List[Vector]:
...
@constmethod
def discretize(self, **kwargs) -> List[Vector]:
"""

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from TopoShape import TopoShape
from typing import Final, Tuple, Dict, Optional, List
@export(
Twin="TopoShape",
TwinPointer="TopoShape",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from TopoShape import TopoShape
from typing import Final, Dict
@export(
Twin="TopoShape",
TwinPointer="TopoShape",

View File

@@ -8,6 +8,7 @@ from Base.Vector import Vector
from Base.Matrix import Matrix
from typing import Final, Dict, Tuple, overload
@export(
Twin="TopoShape",
TwinPointer="TopoShape",
@@ -98,10 +99,14 @@ class TopoShapeSolid(TopoShape):
@overload
@constmethod
def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ...
def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape:
...
@overload
@constmethod
def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ...
def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape:
...
@constmethod
def offsetFaces(self, *args, **kwargs) -> TopoShape:
"""

View File

@@ -7,6 +7,7 @@ from Base.Vector import Vector
from TopoShape import TopoShape
from typing import Final
@export(
Twin="TopoShape",
TwinPointer="TopoShape",

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
from TopoShape import TopoShape
from typing import Dict, List, Final, overload, Optional
@export(
Twin="TopoShape",
TwinPointer="TopoShape",

Some files were not shown because too many files have changed in this diff Show More