[bindings] Code formatting
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):
|
||||
"""
|
||||
|
||||
@@ -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 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, /) -> "CommandPy":
|
||||
"""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",
|
||||
|
||||
@@ -6,12 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialFilter.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True,
|
||||
Delete=True
|
||||
)
|
||||
@export(Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", Constructor=True, Delete=True)
|
||||
class MaterialFilterOptions(BaseClass):
|
||||
"""
|
||||
Material filtering options.
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialLibrary.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,11 +6,8 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialManager.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True
|
||||
)
|
||||
|
||||
@export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True)
|
||||
class MaterialManager(BaseClass):
|
||||
"""
|
||||
Material descriptions.
|
||||
@@ -71,4 +68,4 @@ class MaterialManager(BaseClass):
|
||||
"""
|
||||
Refreshes the material tree. Use sparingly as this is an expensive operation.
|
||||
"""
|
||||
...
|
||||
...
|
||||
|
||||
@@ -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, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Model.h",
|
||||
Namespace="Materials",
|
||||
@@ -19,49 +20,49 @@ class Model(BaseClass):
|
||||
Author: DavidCarter (dcarter@davidcarter.ca)
|
||||
Licence: LGPL
|
||||
"""
|
||||
|
||||
|
||||
LibraryName: Final[str] = ""
|
||||
"""Model library name."""
|
||||
|
||||
|
||||
LibraryRoot: Final[str] = ""
|
||||
"""Model library path."""
|
||||
|
||||
|
||||
LibraryIcon: Final[bytes] = ""
|
||||
"""Model icon."""
|
||||
|
||||
|
||||
Name: str = ""
|
||||
"""Model name."""
|
||||
|
||||
|
||||
Type: str = ""
|
||||
"""Model type."""
|
||||
|
||||
|
||||
Directory: str = ""
|
||||
"""Model directory."""
|
||||
|
||||
|
||||
UUID: Final[str] = ""
|
||||
"""Unique model identifier."""
|
||||
|
||||
|
||||
Description: str = ""
|
||||
"""Description of the model."""
|
||||
|
||||
|
||||
URL: str = ""
|
||||
"""URL to a detailed description of the model."""
|
||||
|
||||
|
||||
DOI: str = ""
|
||||
"""Digital Object Identifier (see https://doi.org/)"""
|
||||
|
||||
|
||||
Inherited: Final[List[str]] = []
|
||||
"""List of inherited models identified by UUID."""
|
||||
|
||||
|
||||
Properties: Final[Dict[str, str]] = {}
|
||||
"""Dictionary of model properties."""
|
||||
|
||||
|
||||
def addInheritance(self) -> None:
|
||||
"""
|
||||
Add an inherited model.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
def addProperty(self) -> None:
|
||||
"""
|
||||
Add a model property.
|
||||
|
||||
@@ -6,11 +6,8 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/ModelManager.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True
|
||||
)
|
||||
|
||||
@export(Include="Mod/Material/App/ModelManager.h", Namespace="Materials", Constructor=True)
|
||||
class ModelManager(BaseClass):
|
||||
"""
|
||||
Material model descriptions.
|
||||
@@ -28,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, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Material.UUIDs",
|
||||
Twin="ModelUUIDs",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod, forward_declarations, class_declaratio
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@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
|
||||
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
|
||||
|
||||
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",
|
||||
|
||||
@@ -25,6 +25,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:
|
||||
...
|
||||
|
||||
@@ -25,7 +25,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, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import List
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.BRepFeat.MakePrism",
|
||||
Twin="BRepFeat_MakePrism",
|
||||
|
||||
@@ -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",
|
||||
@@ -75,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,
|
||||
@@ -86,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)
|
||||
|
||||
@@ -104,10 +104,12 @@ 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:
|
||||
"""
|
||||
@@ -147,7 +149,8 @@ class BSplineCurve(BoundedCurve):
|
||||
list_of_ints: List[int],
|
||||
tol: float = 0.0,
|
||||
bool_add: bool = True,
|
||||
/,) -> None:
|
||||
/,
|
||||
) -> None:
|
||||
"""
|
||||
insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True)
|
||||
|
||||
@@ -279,8 +282,7 @@ class BSplineCurve(BoundedCurve):
|
||||
"""
|
||||
...
|
||||
|
||||
def movePoint(
|
||||
self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]:
|
||||
def movePoint(self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]:
|
||||
"""
|
||||
movePoint(U, P, Index1, Index2)
|
||||
|
||||
@@ -342,7 +344,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 +383,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 +404,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.
|
||||
@@ -441,7 +449,8 @@ class BSplineCurve(BoundedCurve):
|
||||
periodic: bool = False,
|
||||
degree: int = 3,
|
||||
interpolate: bool = False,
|
||||
/,) -> None:
|
||||
/,
|
||||
) -> None:
|
||||
"""
|
||||
Builds a B-Spline by a list of poles.
|
||||
arguments: poles (sequence of Base.Vector), [periodic (default is False), degree (default is 3), interpolate (default is False)]
|
||||
@@ -474,7 +483,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.
|
||||
@@ -524,8 +535,7 @@ class BSplineCurve(BoundedCurve):
|
||||
"""
|
||||
...
|
||||
|
||||
def makeC1Continuous(
|
||||
self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve":
|
||||
def makeC1Continuous(self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve":
|
||||
"""
|
||||
makeC1Continuous(tol = 1e-6, ang_tol = 1e-7)
|
||||
Reduces as far as possible the multiplicities of the knots of this BSpline
|
||||
|
||||
@@ -185,7 +185,8 @@ class BSplineSurface(GeometrySurface):
|
||||
dX: float = ...,
|
||||
Y0: float = ...,
|
||||
dY: float = ...,
|
||||
/,) -> None:
|
||||
/,
|
||||
) -> None:
|
||||
"""
|
||||
increase(Int=UDegree, int=VDegree)
|
||||
Increases the degrees of this B-Spline surface to UDegree and VDegree
|
||||
@@ -378,8 +379,7 @@ class BSplineSurface(GeometrySurface):
|
||||
"""
|
||||
...
|
||||
|
||||
def setPoleCol(
|
||||
self, VIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None:
|
||||
def setPoleCol(self, VIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None:
|
||||
"""
|
||||
Modifies this B-Spline surface by assigning values to all or part
|
||||
of the column of poles of index VIndex, of this B-Spline surface.
|
||||
@@ -389,8 +389,7 @@ class BSplineSurface(GeometrySurface):
|
||||
"""
|
||||
...
|
||||
|
||||
def setPoleRow(
|
||||
self, UIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None:
|
||||
def setPoleRow(self, UIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None:
|
||||
"""
|
||||
Modifies this B-Spline surface by assigning values to all or part
|
||||
of the row of poles of index UIndex, of this B-Spline surface.
|
||||
@@ -495,7 +494,8 @@ class BSplineSurface(GeometrySurface):
|
||||
UIndex2: int = ...,
|
||||
VIndex1: int = ...,
|
||||
VIndex2: int = ...,
|
||||
/,) -> Any:
|
||||
/,
|
||||
) -> Any:
|
||||
"""
|
||||
Moves the point of parameters (U, V) of this B-Spline surface to P.
|
||||
UIndex1, UIndex2, VIndex1 and VIndex2 are the indexes in the poles
|
||||
@@ -695,7 +695,8 @@ class BSplineSurface(GeometrySurface):
|
||||
dX: float = ...,
|
||||
Y0: float = ...,
|
||||
dY: float = ...,
|
||||
/,) -> None:
|
||||
/,
|
||||
) -> None:
|
||||
"""
|
||||
interpolate(points)
|
||||
interpolate(zpoints, X0, dX, Y0, dY)
|
||||
|
||||
@@ -168,8 +168,7 @@ class BezierCurve(BoundedCurve):
|
||||
"""
|
||||
...
|
||||
|
||||
def interpolate(
|
||||
self, constraints: List[List], parameters: List[float] = ..., /) -> None:
|
||||
def interpolate(self, constraints: List[List], parameters: List[float] = ..., /) -> None:
|
||||
"""
|
||||
Interpolates a list of constraints.
|
||||
Each constraint is a list of a point and some optional derivatives
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod
|
||||
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, overload
|
||||
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ChFi2d.ChamferAPI",
|
||||
Twin="ChFi2d_ChamferAPI",
|
||||
|
||||
@@ -44,7 +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)
|
||||
|
||||
|
||||
@@ -41,12 +41,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:
|
||||
...
|
||||
|
||||
@@ -51,12 +51,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:
|
||||
...
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod
|
||||
from typing import Final, overload
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfCircle2d",
|
||||
Twin="Geom2dArcOfCircle",
|
||||
@@ -29,7 +30,9 @@ 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, constmethod, overload
|
||||
from typing import Final
|
||||
from Part.Geom2d import Curve2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfConic2d",
|
||||
Twin="Geom2dArcOfConic",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod
|
||||
from typing import Final, overload
|
||||
from Part import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfEllipse2d",
|
||||
Twin="Geom2dArcOfEllipse",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod, overload
|
||||
from typing import Final
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfHyperbola2d",
|
||||
Twin="Geom2dArcOfHyperbola",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod, overload
|
||||
from typing import Final
|
||||
from Part.Geom2d import ArcOfConic2d
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.ArcOfParabola2d",
|
||||
Twin="Geom2dArcOfParabola",
|
||||
|
||||
@@ -7,6 +7,7 @@ from typing import Final, overload
|
||||
from Part.Curve2d import Curve2d
|
||||
from Base.Vector import Vector
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Geom2dBSplineCurve",
|
||||
TwinPointer="Geom2dBSplineCurve",
|
||||
@@ -124,7 +125,14 @@ class BSplineCurve2d(Curve2d):
|
||||
"""
|
||||
...
|
||||
|
||||
def insertKnots(self, list_of_floats: list[float], list_of_ints: list[int], tol: float = 0.0, bool_add: bool = True, /) -> None:
|
||||
def insertKnots(
|
||||
self,
|
||||
list_of_floats: list[float],
|
||||
list_of_ints: list[int],
|
||||
tol: float = 0.0,
|
||||
bool_add: bool = True,
|
||||
/
|
||||
) -> None:
|
||||
"""
|
||||
insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True)
|
||||
|
||||
@@ -373,24 +381,18 @@ class BSplineCurve2d(Curve2d):
|
||||
|
||||
@overload
|
||||
def buildFromPolesMultsKnots(
|
||||
self,
|
||||
poles: list[Vector],
|
||||
mults: tuple[int, ...],
|
||||
knots: tuple[float, ...],
|
||||
periodic: bool,
|
||||
degree: int,
|
||||
) -> None: ...
|
||||
self, poles: list[Vector], mults: tuple[int, ...], knots: tuple[float, ...], periodic: bool,
|
||||
degree: int
|
||||
) -> None:
|
||||
...
|
||||
|
||||
@overload
|
||||
def buildFromPolesMultsKnots(
|
||||
self,
|
||||
poles: list[Vector],
|
||||
mults: tuple[int, ...],
|
||||
knots: tuple[float, ...],
|
||||
periodic: bool,
|
||||
degree: int,
|
||||
weights: tuple[float, ...],
|
||||
CheckRational: bool,
|
||||
) -> None: ...
|
||||
self, poles: list[Vector], mults: tuple[int, ...], knots: tuple[float, ...], periodic: bool,
|
||||
degree: int, weights: tuple[float, ...], CheckRational: bool
|
||||
) -> 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, constmethod
|
||||
from typing import Final, 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",
|
||||
@@ -207,7 +208,9 @@ class Curve2d(Geometry2d):
|
||||
"""
|
||||
...
|
||||
|
||||
def approximateBSpline(self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> BSplineCurve:
|
||||
def approximateBSpline(
|
||||
self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /
|
||||
) -> BSplineCurve:
|
||||
"""
|
||||
Approximates a curve of any type to a B-Spline curve
|
||||
approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> B-Spline curve
|
||||
|
||||
@@ -6,6 +6,7 @@ from typing import Final, overload
|
||||
from Base.Metadata import export, constmethod
|
||||
from Part.Conic2d import Conic2d
|
||||
|
||||
|
||||
@export(
|
||||
Twin="Geom2dEllipse",
|
||||
TwinPointer="Geom2dEllipse",
|
||||
@@ -55,12 +56,20 @@ 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: ...
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import overload
|
||||
|
||||
|
||||
@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:
|
||||
...
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Part.Geom2d.Curve2d import Curve2d
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.Geom2d.Line2d",
|
||||
Twin="Geom2dLine",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from typing import Final, 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.
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export
|
||||
from typing import Final
|
||||
from Part.Geom2d import Curve2d
|
||||
|
||||
|
||||
@export(
|
||||
Name="OffsetCurve2dPy",
|
||||
Namespace="Part",
|
||||
|
||||
@@ -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, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.GeomPlate.CurveConstraintPy",
|
||||
Twin="GeomPlate_CurveConstraint",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.GeomPlate.PointConstraintPy",
|
||||
Twin="GeomPlate_PointConstraint",
|
||||
|
||||
@@ -45,9 +45,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.
|
||||
"""
|
||||
@@ -55,9 +54,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.
|
||||
"""
|
||||
@@ -65,9 +66,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'.
|
||||
"""
|
||||
@@ -75,9 +78,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.
|
||||
"""
|
||||
@@ -190,7 +195,8 @@ class GeometryCurve(Geometry):
|
||||
uMin: Optional[float] = None,
|
||||
uMax: Optional[float] = None,
|
||||
Tol: Optional[float] = None,
|
||||
/,) -> float:
|
||||
/,
|
||||
) -> float:
|
||||
"""
|
||||
Computes the length of a curve
|
||||
length([uMin, uMax, Tol]) -> float
|
||||
@@ -202,7 +208,8 @@ class GeometryCurve(Geometry):
|
||||
self,
|
||||
abscissa: Optional[float] = None,
|
||||
startingParameter: Optional[float] = None,
|
||||
/,) -> float:
|
||||
/,
|
||||
) -> float:
|
||||
"""
|
||||
Returns the parameter on the curve of a point at the given distance from a starting parameter.
|
||||
parameterAtDistance([abscissa, startingParameter]) -> float
|
||||
@@ -384,7 +391,8 @@ class GeometryCurve(Geometry):
|
||||
|
||||
@constmethod
|
||||
def approximateBSpline(
|
||||
self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> "BSplineCurve":
|
||||
self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /
|
||||
) -> "BSplineCurve":
|
||||
"""
|
||||
Approximates a curve of any type to a B-Spline curve.
|
||||
approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> BSplineCurve
|
||||
|
||||
@@ -85,23 +85,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 +241,9 @@ class GeometrySurface(Geometry):
|
||||
max_degree_v: int = 25,
|
||||
max_segments: int = 1000,
|
||||
precision_code: int = 0,
|
||||
) -> Any: ...
|
||||
) -> Any:
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def toBSpline(
|
||||
self,
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod, class_declarations
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Twin="HLRBRep_Algo",
|
||||
TwinPointer="HLRBRep_Algo",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase
|
||||
from Part.TopoShapePy import TopoShape
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.HLRBRep_PolyAlgo",
|
||||
Twin="HLRBRep_PolyAlgo",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Part.TopoShapePy import TopoShape
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Optional, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.HLRToShapePy",
|
||||
Twin="HLRBRep_HLRToShape",
|
||||
|
||||
@@ -8,6 +8,7 @@ from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo
|
||||
from Part.TopoShapePy import TopoShape
|
||||
from typing import Optional, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.PolyHLRToShapePy",
|
||||
Twin="HLRBRep_PolyHLRToShape",
|
||||
|
||||
@@ -61,10 +61,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:
|
||||
...
|
||||
|
||||
@@ -39,8 +39,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:
|
||||
...
|
||||
|
||||
@@ -37,11 +37,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
|
||||
|
||||
@@ -33,11 +33,17 @@ 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:
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod, class_declarations
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Edge",
|
||||
Include="ShapeFix_Edge.hxx",
|
||||
|
||||
@@ -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,10 +24,12 @@ 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:
|
||||
"""
|
||||
|
||||
@@ -8,6 +8,7 @@ from Part.TopoShapeFace import TopoShapeFace
|
||||
from Part.TopoShapeShell import TopoShapeShell
|
||||
from typing import Final, Union, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Face",
|
||||
Include="ShapeFix_Face.hxx",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from Part.App.TopoShape import TopoShape
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.FixSmallFace",
|
||||
Include="ShapeFix_FixSmallFace.hxx",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.FixSmallSolid",
|
||||
Include="ShapeFix_FixSmallSolid.hxx",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Root",
|
||||
Include="ShapeFix_Root.hxx",
|
||||
|
||||
@@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase
|
||||
from Part.App.TopoShape import TopoShape
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.ShapeTolerance",
|
||||
Include="ShapeFix_ShapeTolerance.hxx",
|
||||
@@ -22,22 +23,28 @@ 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:
|
||||
def limitTolerance(
|
||||
self, shape: TopoShape, tmin: float, tmax: float = 0, ShapeEnum: str = None, /
|
||||
) -> None:
|
||||
"""
|
||||
limitTolerance(shape, tmin, [tmax=0, ShapeEnum=SHAPE])
|
||||
"""
|
||||
...
|
||||
|
||||
@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:
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod
|
||||
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Shell",
|
||||
Twin="ShapeFix_Shell",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Solid",
|
||||
Twin="ShapeFix_Solid",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from typing import overload
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.SplitCommonVertex",
|
||||
Include="ShapeFix_SplitCommonVertex.hxx",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.Wire",
|
||||
Twin="ShapeFix_Wire",
|
||||
|
||||
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from Base.Metadata import export, constmethod
|
||||
from Base.PyObjectBase import PyObjectBase
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Part.ShapeFix.WireVertex",
|
||||
Include="ShapeFix_WireVertex.hxx",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user