Skip to content

PolyGon

GitHub Action edited this page Apr 24, 2024 · 2 revisions

Class Polygon

No documentation available.

Constructor

__init__(self, lines) -> Polygon

Represents a polygon composed of lines.

    - `lines` (list[Line]): List of lines composing the polygon.

Methods

  • __id__(self): Returns the ID of the Polygon instance.

  • __str__(self) -> str: Returns a string representation of the Polygon instance.

  • polygon(flatCurves: list[Line]) -> list[Point]: Creates a polygon from a list of flat curves.

Documentation

__id__(self)

Returns the ID of the Polygon instance.

Returns:

str: The ID of the Polygon instance.

Example usage:


__str__(self) -> str

Returns a string representation of the Polygon instance.

Returns:

str: A string representation of the Polygon instance.

Example usage:


polygon(flatCurves: list[Line]) -> list[Point]

Creates a polygon from a list of flat curves.

Parameters:

  • flatCurves (List[Line]): List of flat curves.

Returns:

List[Point]: List of points representing the polygon.

Example usage:


Clone this wiki locally