Skip to content

Axis3D

Canonical path: NemAll_Python_Geometry.Axis3D

Representation class for 3D Axis

AxisPoint property writable

AxisPoint: Point3D

Get axis point in world coordinate system.

AxisRefPoint property writable

AxisRefPoint: Point3D

Get reference point.

AxisRelPoint property writable

AxisRelPoint: Point3D

Get axis point in local coordinate system

AxisVector property writable

AxisVector: Vector3D

Get axis vector

GetAxisPoint

GetAxisPoint() -> Point3D

Get axis point in world coordinate system.

Returns:

  • Point3D

    Axis point in world coordinates

GetAxisPoint2

GetAxisPoint2() -> Point3D

Get second axis point. Used world coordinate system.

Returns:

  • Point3D

    Second axis point in world coordinates

GetAxisRelPoint

GetAxisRelPoint() -> Point3D

Get axis point in local coordinate system

Returns:

  • Point3D

    Axis point in local coordinates

GetAxisRelPoint2

GetAxisRelPoint2() -> Point3D

Get second axis point. Used local coordinate system

Returns:

  • Point3D

    Second axis point in local coordinates

GetRefPoint

GetRefPoint() -> Point3D

Get reference point.

Returns:

GetVector

GetVector() -> Vector3D

Get axis vector

Returns:

Set overloaded

Set(axis: Axis3D)

Set axis

Parameters:

  • axis (Axis3D) –

    Axis which will be copied

Set(refPoint: Point3D, axisPoint: Point3D, vector: Vector3D)

Set axis

Used local coordinate system for axisPoint

Parameters:

SetAxisPoint

SetAxisPoint(point: Point3D)

Set axis point, used world coordinate system.

Parameters:

  • point (Point3D) –

    Axis point in world coordinates

SetAxisRelPoint

SetAxisRelPoint(axisPoint: Point3D)

Set axis point, used local coordinate system.

Parameters:

  • axisPoint (Point3D) –

    Axis point in local coordinates

SetRefPoint

SetRefPoint(refPoint: Point3D)

Set reference point

Parameters:

  • refPoint (Point3D) –

    New reference point

SetVector

SetVector(vector: Vector3D)

Set axis vector

Parameters:

__eq__

__eq__(axis: Axis3D) -> bool

Comparison of axes.

Be careful, this method work without tolerance!

Parameters:

  • axis (Axis3D) –

    axis to be compared.

Returns:

  • bool

    True when axes are equal, otherwise false.

__init__ overloaded

__init__()

Initialize

__init__(axis: Axis3D)

Copy constructor.

Parameters:

  • axis (Axis3D) –

    Axis which will be copied

__init__(axisPoint: Point3D, vector: Vector3D)

Constructor.

Reference point is initialized to [0.,0.,0.] Used world coordinate system for AxisPoint

Parameters:

__init__(refPoint: Point3D, axisPoint: Point3D, vector: Vector3D)

Constructor.

Used local coordinate system for AxisPoint

Parameters:

__init__(line: Line3D)

Constructor

Parameters:

  • line (Line3D) –

    3D line representing axis

__repr__

__repr__() -> str

Convert to string

Placeholder