Point3D#
- class ansys.geometry.core.math.point.Point3D(input: numpy.ndarray | ansys.geometry.core.typing.RealSequence = DEFAULT_POINT3D_VALUES, unit: pint.Unit | None = None)#
- Bases: - numpy.ndarray,- ansys.geometry.core.misc.units.PhysicalQuantity- Provides geometry primitive representation for a 3D point. - Parameters:
- inputndarray|RealSequence, default:DEFAULT_POINT3D_VALUES
- Direction arguments, either as a - numpy.ndarrayclass or as a- RealSequence.
- unitUnit|None, default:DEFAULT_UNITS.LENGTH
- Units for defining 3D point values. If not specified, the default unit is - DEFAULT_UNITS.LENGTH.
 
- input
 
Overview#
Import detail#
from ansys.geometry.core.math.point import Point3D
Property detail#
- property Point3D.x: pint.Quantity#
- X plane component value. 
- property Point3D.y: pint.Quantity#
- Y plane component value. 
- property Point3D.z: pint.Quantity#
- Z plane component value. 
- property Point3D.position: numpy.ndarray#
- Get the position of the point as a numpy array. 
Attribute detail#
- Point3D.flat#
Method detail#
- Point3D.__add__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D#
- Add operation for the - Point3Dclass.
- Point3D.__sub__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D#
- Subtraction operation for the - Point3Dclass.
- Point3D.transform(matrix: ansys.geometry.core.math.matrix.Matrix44) Point3D#
- Transform the 3D point with a transformation matrix. - Parameters:
- matrixMatrix44
- 4x4 transformation matrix to apply to the point. 
 
- matrix
- Returns:
- Point3D
- New 3D point that is the transformed copy of the original 3D point after applying the transformation matrix. 
 
 - Notes - Transform the - Point3Dobject by applying the specified 4x4 transformation matrix and return a new- Point3Dobject representing the transformed point.
 
    