[bindings] Format with yapf (precommit will reformat)
This commit is contained in:
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.Part import Part
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Assembly/App/AssemblyLink.h",
|
||||
Namespace="Assembly",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export
|
||||
|
||||
from App.Part import Part
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly")
|
||||
class AssemblyObject(Part):
|
||||
"""
|
||||
@@ -152,10 +153,10 @@ class AssemblyObject(Part):
|
||||
Args:
|
||||
fileName: The name of the file where the ASMT will be exported."""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def getDownstreamParts(
|
||||
self, start_part: "App.DocumentObject", joint_to_ignore: "App.DocumentObject", /
|
||||
) -> list["App.DocumentObject"]:
|
||||
def getDownstreamParts(self, start_part: "App.DocumentObject", joint_to_ignore: "App.DocumentObject",
|
||||
/) -> list["App.DocumentObject"]:
|
||||
"""
|
||||
Finds all parts connected to a start_part that are not connected to ground
|
||||
when a specific joint is ignored.
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly")
|
||||
class BomGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -5,6 +5,7 @@ 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,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly")
|
||||
class JointGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly")
|
||||
class SimulationGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObjectGroup import DocumentObjectGroup
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly")
|
||||
class ViewGroup(DocumentObjectGroup):
|
||||
"""
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
from App.DocumentObject import DocumentObject
|
||||
from Gui.ViewProvider import ViewProvider
|
||||
|
||||
|
||||
@export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui")
|
||||
class ViewProviderAssembly(ViewProvider):
|
||||
"""
|
||||
|
||||
@@ -5,6 +5,7 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Area.h",
|
||||
Namespace="Path",
|
||||
@@ -95,6 +96,7 @@ class Area(BaseClass):
|
||||
def abort(self, **kwargs) -> Any:
|
||||
"""Abort the current operation."""
|
||||
...
|
||||
|
||||
Sections: Final[list]
|
||||
"""List of sections in this area."""
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ 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",
|
||||
@@ -31,6 +32,7 @@ class Command(Persistence):
|
||||
def transform(self, placement: Placement, /) -> Command:
|
||||
"""transform(Placement): returns a copy of this command transformed by the given placement"""
|
||||
...
|
||||
|
||||
Name: str
|
||||
"""The name of the command"""
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/FeatureArea.h",
|
||||
Namespace="Path",
|
||||
@@ -28,5 +29,6 @@ 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,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/FeaturePathCompound.h",
|
||||
TwinPointer="FeatureCompound",
|
||||
|
||||
@@ -5,6 +5,7 @@ from typing import Any, Final
|
||||
from Base.Metadata import constmethod, export
|
||||
from Base.Persistence import Persistence
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Path.h",
|
||||
Twin="Toolpath",
|
||||
@@ -54,6 +55,7 @@ class Path(Persistence):
|
||||
def getCycleTime(self) -> Any:
|
||||
"""return the cycle time estimation for this path in s"""
|
||||
...
|
||||
|
||||
Length: Final[float]
|
||||
"""the total length of this path in mm"""
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod, export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Voronoi.h",
|
||||
Namespace="Path",
|
||||
@@ -81,6 +82,7 @@ class Voronoi(BaseClass):
|
||||
def numSegments(self) -> Any:
|
||||
"""Return number of input segments"""
|
||||
...
|
||||
|
||||
Cells: Final[list]
|
||||
"""List of all cells of the voronoi diagram"""
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ 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",
|
||||
@@ -39,6 +40,7 @@ class VoronoiCell(BaseClass):
|
||||
def getSource(self) -> Any:
|
||||
"""Returns the Source for the cell"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""Internal id of the element."""
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ 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",
|
||||
@@ -69,6 +70,7 @@ 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,6 +5,7 @@ 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",
|
||||
@@ -24,6 +25,7 @@ class VoronoiVertex(BaseClass):
|
||||
def toPoint(self) -> Any:
|
||||
"""Returns a Vector - or None if not possible"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""Internal id of the element."""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Any, Final
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
FatherInclude="Base/BaseClassPy.h",
|
||||
Include="Mod/CAM/PathSimulator/App/PathSim.h",
|
||||
@@ -51,5 +52,6 @@ class PathSim(BaseClass):
|
||||
|
||||
Apply a single path command on the stock starting from placement."""
|
||||
...
|
||||
|
||||
Tool: Final[Any]
|
||||
"""Return current simulation tool."""
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
from Metadata import no_args
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h",
|
||||
FatherInclude="Base/BaseClassPy.h",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export
|
||||
|
||||
from App.ComplexGeoData import ComplexGeoData
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemMesh.h",
|
||||
Namespace="Fem",
|
||||
@@ -260,6 +261,7 @@ class FemMesh(ComplexGeoData):
|
||||
def getIdByElementType(self) -> Any:
|
||||
"""Return a tuple of IDs to a given element type"""
|
||||
...
|
||||
|
||||
Nodes: Final[dict]
|
||||
"""Dictionary of Nodes by ID (int ID:Vector())"""
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Fem.FemPostFilter import FemPostFilter
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemPostBranchFilter.h",
|
||||
Namespace="Fem",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Fem.FemPostObject import FemPostObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemPostFilter.h",
|
||||
Namespace="Fem",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.GeoFeature import GeoFeature
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemPostObject.h",
|
||||
Namespace="Fem",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Fem.FemPostObject import FemPostObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/App/FemPostPipeline.h",
|
||||
Namespace="Fem",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemConstraint.h",
|
||||
Namespace="FemGui",
|
||||
@@ -32,6 +33,7 @@ class ViewProviderFemConstraint(ViewProviderGeometryObject):
|
||||
filename : str
|
||||
Open Inventor file."""
|
||||
...
|
||||
|
||||
SymbolNode: Final[Any]
|
||||
"""A pivy SoSeparator with the nodes of the constraint symbols"""
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemMesh.h",
|
||||
Namespace="FemGui",
|
||||
@@ -43,6 +44,7 @@ class ViewProviderFemMesh(ViewProviderGeometryObject):
|
||||
def setNodeDisplacementByVectors(self) -> Any:
|
||||
""""""
|
||||
...
|
||||
|
||||
NodeColor: dict
|
||||
"""Postprocessing color of the nodes. The faces between the nodes get interpolated."""
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Twin="ViewProviderFemPostObject",
|
||||
TwinPointer="ViewProviderFemPostObject",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h",
|
||||
Namespace="FemGui",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Any
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Import/App/StepShape.h",
|
||||
Namespace="Import",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod
|
||||
from typing import Final, List, Any
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Array2D",
|
||||
TwinPointer="Array2D",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Any, Final, List
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Array3D",
|
||||
TwinPointer="Array3D",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, no_args, sequence_protocol
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Materials.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import List
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialFilter.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialFilter.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialLibrary.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
|
||||
@export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True)
|
||||
class MaterialManager(BaseClass):
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from ModelProperty import ModelProperty
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Materials.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Model.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
|
||||
@export(Include="Mod/Material/App/ModelManager.h", Namespace="Materials", Constructor=True)
|
||||
class ModelManager(BaseClass):
|
||||
"""
|
||||
@@ -24,13 +25,13 @@ class ModelManager(BaseClass):
|
||||
Models: Final[Dict] = ...
|
||||
"""List of model libraries."""
|
||||
|
||||
def getModel(self) -> ...:
|
||||
def getModel(self) ->...:
|
||||
"""
|
||||
Get a model object by specifying its UUID
|
||||
"""
|
||||
...
|
||||
|
||||
def getModelByPath(self) -> ...:
|
||||
def getModelByPath(self) ->...:
|
||||
"""
|
||||
Get a model object by specifying its path
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Model.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Material.UUIDs",
|
||||
Twin="ModelUUIDs",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Metadata import (
|
||||
)
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(
|
||||
Twin="MaterialTreeWidget",
|
||||
TwinPointer="MaterialTreeWidget",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.DocumentObject import DocumentObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/App/MeasureBase.h",
|
||||
Namespace="Measure",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Any
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/App/Measurement.h",
|
||||
Namespace="Measure",
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Measure/Gui/QuickMeasure.h",
|
||||
Namespace="MeasureGui",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Final, Any
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/Edge.h",
|
||||
Namespace="Mesh",
|
||||
@@ -45,6 +46,7 @@ class Edge(PyObjectBase):
|
||||
After calling unbound() no topological operation will
|
||||
work!"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this edge of the facet"""
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Any, Final
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/Facet.h",
|
||||
Namespace="Mesh",
|
||||
@@ -56,6 +57,7 @@ class Facet(PyObjectBase):
|
||||
"""getEdge(int) -> Edge
|
||||
Returns the edge of the facet."""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this facet in the MeshObject"""
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export, class_declarations
|
||||
|
||||
from App.ComplexGeoData import ComplexGeoData
|
||||
|
||||
|
||||
@export(
|
||||
Twin="MeshObject",
|
||||
TwinPointer="MeshObject",
|
||||
@@ -509,6 +510,7 @@ 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,6 +8,7 @@ from Base.Metadata import export
|
||||
|
||||
from App.GeoFeature import GeoFeature
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Feature",
|
||||
TwinPointer="Feature",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Any, Final
|
||||
from Base.Metadata import export
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/App/MeshPoint.h",
|
||||
Namespace="Mesh",
|
||||
@@ -33,6 +34,7 @@ class MeshPoint(PyObjectBase):
|
||||
After calling unbound() no topological operation will
|
||||
work!"""
|
||||
...
|
||||
|
||||
Index: Final[int]
|
||||
"""The index of this point in the MeshObject"""
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ from typing import Any
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
from Base.Metadata import export
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Mesh/Gui/ViewProvider.h",
|
||||
Namespace="MeshGui",
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ArcOfCircle",
|
||||
Twin="GeomArcOfCircle",
|
||||
|
||||
@@ -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."""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ArcOfEllipse",
|
||||
Twin="GeomArcOfEllipse",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Part.ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Father="ArcOfConicPy",
|
||||
Name="ArcOfHyperbolaPy",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from ArcOfConic import ArcOfConic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Father="ArcOfConicPy",
|
||||
Name="ArcOfParabolaPy",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from App.DocumentObjectExtension import DocumentObjectExtension
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="AttachExtension",
|
||||
TwinPointer="AttachExtension",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Base.Vector import Vector
|
||||
from BoundedCurve import BoundedCurve
|
||||
from typing import Final, List
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBezierCurve",
|
||||
TwinPointer="GeomBezierCurve",
|
||||
|
||||
@@ -9,6 +9,7 @@ from Base.Metadata import (
|
||||
from GeometrySurface import GeometrySurface
|
||||
from typing import Final, Tuple, Any
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBezierSurface",
|
||||
TwinPointer="GeomBezierSurface",
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export
|
||||
from PartFeature import PartFeature
|
||||
|
||||
|
||||
@export(
|
||||
Twin="BodyBase",
|
||||
TwinPointer="BodyBase",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from GeometryCurve import GeometryCurve
|
||||
from typing import Any, Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomBoundedCurve",
|
||||
TwinPointer="GeomBoundedCurve",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Tuple
|
||||
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ChFi2d.ChamferAPI",
|
||||
Twin="ChFi2d_ChamferAPI",
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from GeometryCurve import GeometryCurve
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Conic",
|
||||
Twin="GeomConic",
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -7,6 +7,7 @@ from Base.Vector import Vector
|
||||
from Conic import Conic
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="GeomEllipse",
|
||||
TwinPointer="GeomEllipse",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
"""
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Geometry2d",
|
||||
TwinPointer="Geometry2d",
|
||||
|
||||
@@ -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:
|
||||
...
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Metadata import export
|
||||
from Part.Geom2d import Curve2d
|
||||
|
||||
|
||||
@export(
|
||||
Name="OffsetCurve2dPy",
|
||||
Namespace="Part",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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).
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user