Bases: Plane
Planar polygon surface.
If vertices are supplied as (N, 2) or as (N, 3) with every x = 0,
the polygon is taken to lie in the x = 0 plane with normal (1, 0, 0).
- Parameters:
vertices (Sequence[Sequence[float]]) – Coordinates of the polygon vertices (N ≥ 3, 2- or 3-D).
Ordering must be counter-clockwise when viewed along the
supplied/implicit normal.
normal (Sequence[float] | None) – Optional outward normal. Required if the vertices are not in a single
x = const plane.
-
__init__(vertices: Sequence[Sequence[float]], normal: Sequence[float] | None = None)[source]
local coordinate system
-
f(P: ndarray) → float[source]
Signed distance from point to the polygon’s plane.
-
within_boundary(P: ndarray) → bool[source]
Check if the point is inside the boundary.
-
parametric_boundary(t: Sequence[float], type: str) → ndarray[source]
-
get_bbox_local() → Tuple[float, float, float, float, float, float][source]