upxo.geoEntities.polygon3d module

3D polygon geometric entity for UPXO.

Usage

from upxo.geoEntities.polygon3d import Polygon3d

Classes

Polygon3d : 3D planar polygon with projection support.

Limitations

  • project method is a stub awaiting implementation.

class upxo.geoEntities.polygon3d.Polygon3d(points, be)[source]

Bases: object

Represents a planar polygon in 3D space.

Parameters:
  • points (array-like) – Ordered list of 3D vertex coordinates defining the polygon boundary.

  • be (object) – Boundary entity (e.g., list of edge objects) associated with this polygon.

points
Type:

array-like

be
Type:

object

points
be
project(plane='xy')[source]

Project this 3D polygon onto a 2D plane.

Parameters:

plane (str, optional) – Target projection plane: 'xy', 'yz', or 'xz'. Default is 'xy'.

Returns:

  • None

  • Limitations

  • ———–

  • - Not yet implemented.