Files
create/src/Mod/CAM/App/VoronoiCell.pyi
2025-09-01 21:50:59 -04:00

56 lines
1.3 KiB
Python

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",
Constructor=True,
RichCompare=True,
Delete=True,
)
class VoronoiCell(BaseClass):
"""
Author: sliptonic (shopinthewoods@gmail.com)
License: LGPL-2.1-or-later
Cell of a Voronoi diagram
"""
@constmethod
def containsPoint(self) -> Any:
"""Returns true if the cell contains a point site"""
...
@constmethod
def containsSegment(self) -> Any:
"""Returns true if the cell contains a segment site"""
...
@constmethod
def isDegenerate(self) -> Any:
"""Returns true if the cell doesn't have an incident edge"""
...
@constmethod
def getSource(self) -> Any:
"""Returns the Source for the cell"""
...
Index: Final[int]
"""Internal id of the element."""
Color: int
"""Assigned color of the receiver."""
SourceIndex: Final[int]
"""Returns the index of the cell's source"""
SourceCategory: Final[int]
"""Returns the cell's category as an integer"""
SourceCategoryName: Final[str]
"""Returns the cell's category as a string"""
IncidentEdge: Final[Any]
"""Incident edge of the cell - if exists"""