mrdja.geometry.get_a_polygon_from_plane_equation_and_point

mrdja.geometry.get_a_polygon_from_plane_equation_and_point(plane: ndarray, point: ndarray, scale: float = 1.0) ndarray[source]

Get a polygon from plane equation and point.

Parameters:
  • plane (np.ndarray) – Plane equation coefficients.

  • point (np.ndarray) – Point.

  • scale (float) – Scale.

Returns:

Polygon.

Return type:

np.ndarray

Example:

>>> import mrdja.geometry as geom
>>> import numpy as np
>>> plane = np.array([0, 0, 1, -3])
>>> point = np.array([1, 1, 1])
>>> polygon = geom.get_a_polygon_from_plane_equation_and_point(plane, point)
>>> polygon