FreeCAD WebAssembly development snapshot
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
This commit is contained in:
93
src/Mod/CAM/App/Voronoi.pyi
Normal file
93
src/Mod/CAM/App/Voronoi.pyi
Normal file
@@ -0,0 +1,93 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
from typing import Any, Final
|
||||
|
||||
from Base.BaseClass import BaseClass
|
||||
from Base.Metadata import constmethod, export
|
||||
|
||||
from Base.Vector import Vector
|
||||
|
||||
@export(
|
||||
Include="Mod/CAM/App/Voronoi.h",
|
||||
Namespace="Path",
|
||||
Constructor=True,
|
||||
Delete=True,
|
||||
)
|
||||
class Voronoi(BaseClass):
|
||||
"""
|
||||
Voronoi([segments]): Create voronoi for given collection of line segments
|
||||
|
||||
Author: sliptonic (shopinthewoods@gmail.com)
|
||||
License: LGPL-2.1-or-later
|
||||
"""
|
||||
|
||||
@constmethod
|
||||
def numCells(self) -> Any:
|
||||
"""Return number of cells"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def numEdges(self) -> Any:
|
||||
"""Return number of edges"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def numVertices(self) -> Any:
|
||||
"""Return number of vertices"""
|
||||
...
|
||||
|
||||
def addPoint(self, point: Vector, /) -> None:
|
||||
"""add given point to input collection"""
|
||||
...
|
||||
|
||||
def addSegment(self, point1: Vector, point2: Vector, /) -> Any:
|
||||
"""add given segment to input collection"""
|
||||
...
|
||||
|
||||
def construct(self) -> Any:
|
||||
"""constructs the voronoi diagram from the input collections"""
|
||||
...
|
||||
|
||||
def colorExterior(self) -> Any:
|
||||
"""assign given color to all exterior edges and vertices"""
|
||||
...
|
||||
|
||||
def colorTwins(self) -> Any:
|
||||
"""assign given color to all twins of edges (which one is considered a twin is arbitrary)"""
|
||||
...
|
||||
|
||||
def colorColinear(self) -> Any:
|
||||
"""assign given color to all edges sourced by two segments almost in line with each other (optional angle in degrees)"""
|
||||
...
|
||||
|
||||
def resetColor(self) -> Any:
|
||||
"""assign color 0 to all elements with the given color"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def getPoints(self) -> Any:
|
||||
"""Get list of all input points."""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def numPoints(self) -> Any:
|
||||
"""Return number of input points"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def getSegments(self) -> Any:
|
||||
"""Get list of all input segments."""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def numSegments(self) -> Any:
|
||||
"""Return number of input segments"""
|
||||
...
|
||||
Cells: Final[list]
|
||||
"""List of all cells of the voronoi diagram"""
|
||||
|
||||
Edges: Final[list]
|
||||
"""List of all edges of the voronoi diagram"""
|
||||
|
||||
Vertices: Final[list]
|
||||
"""List of all vertices of the voronoi diagram"""
|
||||
Reference in New Issue
Block a user