Plane
#
- class ansys.geometry.core.math.plane.Plane(origin: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.point.Point3D = ZERO_POINT3D, direction_x: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.vector.UnitVector3D | ansys.geometry.core.math.vector.Vector3D = UNITVECTOR3D_X, direction_y: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.vector.UnitVector3D | ansys.geometry.core.math.vector.Vector3D = UNITVECTOR3D_Y)#
Bases:
ansys.geometry.core.math.frame.Frame
Provides primitive representation of a 2D plane in 3D space.
- Parameters:
- origin
ndarray
|RealSequence
|Point3D
, default:ZERO_POINT3D
Centered origin of the frame. The default is
ZERO_POINT3D
, which is the Cartesian origin.- direction_x
ndarray
|RealSequence
|UnitVector3D
|Vector3D
, default:UNITVECTOR3D_X
X-axis direction.
- direction_y
ndarray
|RealSequence
|UnitVector3D
|Vector3D
, default:UNITVECTOR3D_Y
Y-axis direction.
- origin
Overview#
Check if a 3D point is contained in the plane. |
Calculate the normal vector of the plane. |
Import detail#
from ansys.geometry.core.math.plane import Plane
Property detail#
- property Plane.normal: ansys.geometry.core.math.vector.UnitVector3D#
Calculate the normal vector of the plane.
- Returns:
UnitVector3D
Normal vector of the plane.
Method detail#
- Plane.is_point_contained(point: ansys.geometry.core.math.point.Point3D) bool #
Check if a 3D point is contained in the plane.