Axis3D
Class full path: NemAll_Python_Geometry.Axis3D
Representation class for 3D Axis
Attributes
AxisPoint: Point3D
property
writable
Get axis point in world coordinate system.
AxisRefPoint: Point3D
property
writable
Get reference point.
AxisRelPoint: Point3D
property
writable
Get axis point in local coordinate system
AxisVector: Vector3D
property
writable
Get axis vector
Functions
GetAxisPoint()
Get axis point in world coordinate system.
Returns:
Type | Description |
---|---|
Point3D
|
Axis point in world coordinates |
GetAxisPoint2()
Get second axis point. Used world coordinate system.
Returns:
Type | Description |
---|---|
Point3D
|
Second axis point in world coordinates |
GetAxisRelPoint()
Get axis point in local coordinate system
Returns:
Type | Description |
---|---|
Point3D
|
Axis point in local coordinates |
GetAxisRelPoint2()
Get second axis point. Used local coordinate system
Returns:
Type | Description |
---|---|
Point3D
|
Second axis point in local coordinates |
GetRefPoint()
Get reference point.
Returns:
Type | Description |
---|---|
Point3D
|
Reference point |
GetVector()
Get axis vector
Returns:
Type | Description |
---|---|
Vector3D
|
Axis vector |
Set
overload
Set(axis)
Set axis
Parameters:
Name | Type | Description | Default |
---|---|---|---|
axis
|
Axis3D
|
Axis which will be copied |
required |
Set(refPoint, axisPoint, vector)
Set axis
Used local coordinate system for axisPoint
Parameters:
Name | Type | Description | Default |
---|---|---|---|
refPoint
|
Point3D
|
Reference point |
required |
axisPoint
|
Point3D
|
Axis point |
required |
vector
|
Vector3D
|
Axis vector |
required |
SetAxisPoint(point)
Set axis point, used world coordinate system.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
point
|
Point3D
|
Axis point in world coordinates |
required |
SetAxisRelPoint(axisPoint)
Set axis point, used local coordinate system.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
axisPoint
|
Point3D
|
Axis point in local coordinates |
required |
SetRefPoint(refPoint)
Set reference point
Parameters:
Name | Type | Description | Default |
---|---|---|---|
refPoint
|
Point3D
|
New reference point |
required |
SetVector(vector)
Set axis vector
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vector
|
Vector3D
|
New axis vector |
required |
__eq__(axis)
Comparison of axes.
Be careful, this method work without tolerance!
Parameters:
Name | Type | Description | Default |
---|---|---|---|
axis
|
Axis3D
|
axis to be compared. |
required |
Returns:
Type | Description |
---|---|
bool
|
True when axes are equal, otherwise false. |
__init__
overload
__init__()
Initialize
__init__(axisPoint, vector)
Constructor.
Reference point is initialized to [0.,0.,0.] Used world coordinate system for AxisPoint
Parameters:
Name | Type | Description | Default |
---|---|---|---|
axisPoint
|
Point3D
|
Axis point |
required |
vector
|
Vector3D
|
Axis vector |
required |
__init__(refPoint, axisPoint, vector)
Constructor.
Used local coordinate system for AxisPoint
Parameters:
Name | Type | Description | Default |
---|---|---|---|
refPoint
|
Point3D
|
Reference point |
required |
axisPoint
|
Point3D
|
Axis point |
required |
vector
|
Vector3D
|
Axis vector |
required |
__init__(line)
Constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
line
|
Line3D
|
3D line representing axis |
required |
__init__(element)
Copy constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
Axis3D
|
Element to copy |
required |
__repr__()
Convert to string