Removal of comments.

This commit is contained in:
Ian 'z0r0' Abreu
2025-07-20 08:51:45 -04:00
parent efc5a3b21a
commit 2e3e05e270
7 changed files with 32 additions and 33 deletions

View File

@@ -12,8 +12,8 @@ from Base.Metadata import export
FatherInclude="Base/BaseClassPy.h",
FatherNamespace="Base",
ReadOnly=["Sections", "Shapes"],
Constructor=True, # Allow constructing this object
Delete=True, # Allow deleting this object
Constructor=True,
Delete=True,
)
class AreaPy(object):
"""
@@ -96,11 +96,11 @@ class AreaPy(object):
def abort(self, **kwargs) -> Any:
"""Abort the current operation."""
...
Sections: Final[list] # ReadOnly
Sections: Final[list]
"""List of sections in this area."""
Workplane: Any
"""The current workplane. If no plane is set, it is derived from the added shapes."""
Shapes: Final[list] # ReadOnly
Shapes: Final[list]
"""A list of tuple: [(shape,op), ...] containing the added shapes together with their operation code"""

View File

@@ -1,7 +1,7 @@
from Base import PersistencePy # Use the correct parent class
from Base import PersistencePy
from Base.Metadata import export
from Base.Metadata import constmethod, class_declarations
from Base.Placement import Placement # Import Placement explicitly
from Base.Placement import Placement
@export(
Father="PersistencePy",
@@ -13,7 +13,7 @@ from Base.Placement import Placement # Import Placement explicitly
FatherInclude="Base/PersistencePy.h",
FatherNamespace="Base",
Delete=True,
Constructor=True, # Allow constructing this object
Constructor=True,
)
@class_declarations("mutable Py::Dict parameters_copy_dict;")
class CommandPy(PersistencePy):
@@ -36,7 +36,6 @@ class CommandPy(PersistencePy):
def transform(self, placement: Placement) -> "CommandPy":
"""transform(Placement): returns a copy of this command transformed by the given placement"""
...
# Define properties as attributes, not methods
Name: str
"""The name of the command"""

View File

@@ -13,8 +13,8 @@ from Base.Metadata import constmethod
FatherInclude="Base/PersistencePy.h",
FatherNamespace="Base",
ReadOnly=["Length", "Size", "BoundBox"],
Delete=True, # Allow deleting this object
Constructor=True, # Allow constructing this object
Delete=True,
Constructor=True,
)
class PathPy(object):
"""
@@ -54,10 +54,10 @@ class PathPy(object):
def getCycleTime(self) -> Any:
"""return the cycle time estimation for this path in s"""
...
Length: Final[float] # ReadOnly
Length: Final[float]
"""the total length of this path in mm"""
Size: Final[int] # ReadOnly
Size: Final[int]
"""the number of commands in this path"""
Commands: list
@@ -66,5 +66,5 @@ class PathPy(object):
Center: Any
"""the center position for all rotational parameters"""
BoundBox: Final[Any] # ReadOnly
BoundBox: Final[Any]
"""the extent of this path"""

View File

@@ -48,20 +48,20 @@ class VoronoiCellPy(object):
def getSource(self) -> Any:
"""Returns the Source for the cell"""
...
Index: Final[int] # ReadOnly
Index: Final[int]
"""Internal id of the element."""
Color: int
"""Assigned color of the receiver."""
SourceIndex: Final[int] # ReadOnly
SourceIndex: Final[int]
"""Returns the index of the cell's source"""
SourceCategory: Final[int] # ReadOnly
SourceCategory: Final[int]
"""Returns the cell's category as an integer"""
SourceCategoryName: Final[str] # ReadOnly
SourceCategoryName: Final[str]
"""Returns the cell's category as a string"""
IncidentEdge: Final[Any] # ReadOnly
IncidentEdge: Final[Any]
"""Incident edge of the cell - if exists"""

View File

@@ -81,29 +81,29 @@ class VoronoiEdgePy(object):
def getSegmentAngle(self) -> Any:
"""Returns the angle (in degree) of the segments if the edge was formed by two segments"""
...
Index: Final[int] # ReadOnly
Index: Final[int]
"""Internal id of the element."""
Color: int
"""Assigned color of the receiver."""
Cell: Final[Any] # ReadOnly
Cell: Final[Any]
"""cell the edge belongs to"""
Vertices: Final[list] # ReadOnly
Vertices: Final[list]
"""Begin and End voronoi vertex"""
Next: Final[Any] # ReadOnly
Next: Final[Any]
"""CCW next edge within voronoi cell"""
Prev: Final[Any] # ReadOnly
Prev: Final[Any]
"""CCW previous edge within voronoi cell"""
RotNext: Final[Any] # ReadOnly
RotNext: Final[Any]
"""Rotated CCW next edge within voronoi cell"""
RotPrev: Final[Any] # ReadOnly
RotPrev: Final[Any]
"""Rotated CCW previous edge within voronoi cell"""
Twin: Final[Any] # ReadOnly
Twin: Final[Any]
"""Twin edge"""

View File

@@ -83,11 +83,11 @@ class VoronoiPy(object):
def numSegments(self) -> Any:
"""Return number of input segments"""
...
Cells: Final[list] # ReadOnly
Cells: Final[list]
"""List of all cells of the voronoi diagram"""
Edges: Final[list] # ReadOnly
Edges: Final[list]
"""List of all edges of the voronoi diagram"""
Vertices: Final[list] # ReadOnly
Vertices: Final[list]
"""List of all vertices of the voronoi diagram"""

View File

@@ -27,17 +27,17 @@ class VoronoiVertexPy(object):
def toPoint(self) -> Any:
"""Returns a Vector - or None if not possible"""
...
Index: Final[int] # ReadOnly
Index: Final[int]
"""Internal id of the element."""
Color: int
"""Assigned color of the receiver."""
X: Final[float] # ReadOnly
X: Final[float]
"""X position"""
Y: Final[float] # ReadOnly
Y: Final[float]
"""Y position"""
IncidentEdge: Final[Any] # ReadOnly
IncidentEdge: Final[Any]
"""Y position"""