Arc3D
Canonical path: NemAll_Python_Geometry.Arc3D
Representation class for 3D arc.
The Arc3D is defined like the Arc2D. The only difference is, that the normal of the plane the arc is lying in might be rotated around the x-axis.
CounterClockwise
property
writable
Returns winding direction counterclockwise true/false
EqualRef
EqualRef(arc: Arc3D) -> bool
Test for equal reference point
Parameters:
-
arc
(Arc3D
) –Arc3D to compare with
Returns:
-
bool
–result as bool.
GetCenterRel
GetCenterRel() -> Point3D
GetEndPoint
GetEndPoint() -> Point3D
GetEndRelPoint
GetEndRelPoint() -> Point3D
GetLocalPoint
GetMajorAxis
GetMajorAxis() -> Vector3D
Get the major axis The major axis is calculated according to the plane normal and the axis angle
Returns:
-
Vector3D
–major axis as Vector3D
GetMajorRadius
Get major radius.
Returns:
-
float
–major radius as const double.
GetMinorAxis
GetMinorAxis() -> Vector3D
Get the minor axis The minor axis is calculated via the cross product of major axis and plane normal
Returns:
-
Vector3D
–minor axis as Vector3D
GetMinorRadius
Get minor radius.
Returns:
-
float
–minor radius as const double.
GetNormVector
GetNormVector() -> Vector3D
GetPoint
GetPointAngle
GetPointRel
GetRefPlacement
GetRefPlacement() -> AxisPlacement3D
GetRefPlacementRel
GetRefPlacementRel() -> AxisPlacement3D
GetStartPoint
GetStartPoint() -> Point3D
GetStartRelPoint
GetStartRelPoint() -> Point3D
GetXAxis
GetXAxis() -> Vector3D
GetZAxis
GetZAxis() -> Vector3D
IsAngleOnArc
IsAngleOnArc(angle: Angle) -> bool
Checks if the given angle lies on the arc
Parameters:
-
angle
(Angle
) –angle to test
Returns:
-
bool
–Angle on arc true/false
IsCircle
Check if minor radius equals major radius
Returns:
-
bool
–result of check as bool.
IsClockwise
Returns winding direction clockwise true/false
Returns:
-
bool
–Is winding direction clockwise true/false
IsCounterClockwise
Returns winding direction counterclockwise true/false
Returns:
-
bool
–Is winding direction counterclockwise true/false
IsEpsilonClosed
Check delta angle is 2pi
Returns:
-
bool
–result of check as bool.
RotateAroundLocalZAxis
RotateAroundLocalZAxis(angle: Angle)
SetCenterRel
SetCenterRel(center: Point3D)
SetClockwise
overloaded
Set the winding direction of the arc
Parameters:
-
cw
(bool
) –winding clockwise true/false
Set the winding direction of the arc to CW
SetCounterClockwise
overloaded
Set the winding direction of the arc
Parameters:
-
ccw
(bool
) –winding counterclockwise true/false
Set the winding direction of the arc to CCW
SetDeltaAngle
SetDeltaAngle(deltaAngle: Angle)
SetEndAngle
overloaded
SetEndAngle(angle: Angle)
Set end angle.
Set the end angle and normalize it to [0,2PI[
Parameters:
-
angle
(Angle
) –angle which will be set.
SetEndAngle(angle: Angle, ccw: bool)
Set end angle.
Set the end angle and normalize it to [0,2PI[
Parameters:
-
angle
(Angle
) –angle which will be set.
-
ccw
(bool
) –in counterclockwise winding
SetEndPoint
SetEndPoint(endpoint: Point3D)
Set the end point of an object in world coordinates
Parameters:
-
endpoint
(Point3D
) –New end point of curve
SetMajorRadius
Set major radius.
Parameters:
-
radius
(float
) –major radius
SetMinorRadius
Set minor radius.
Parameters:
-
radius
(float
) –minor radius
SetNormVector
SetNormVector(normalVec: Vector3D)
Set the normvector
Set the plane normal and normalizes it to unit vector
Parameters:
-
normalVec
(Vector3D
) –Vector3D to be set
SetRefPlacementRel
SetRefPlacementRel(refPlacement: AxisPlacement3D)
Set the reference placement relative to the refPoint
Parameters:
-
refPlacement
(AxisPlacement3D
) –reference placement
SetRefPoint
SetRefPoint(refPoint: Point3D)
SetStartAngle
overloaded
SetStartAngle(angle: Angle)
Set start angle
Set the start angle and normalize it to [0,2PI[
Parameters:
-
angle
(Angle
) –angle which will be set.
SetStartAngle(angle: Angle, ccw: bool)
Set start angle.
Set the start angle and normalize it to [0,2PI[
Parameters:
-
angle
(Angle
) –angle which will be set.
-
ccw
(bool
) –in counterclockwise winding
SetStartPoint
SetStartPoint(startpoint: Point3D)
Set the start point of an object in world coordinates
Parameters:
-
startpoint
(Point3D
) –New start point of curve
__eq__
__eq__(arc: Arc3D) -> bool
Comparison of arcs.
Be careful, this method work without tolerance!
Parameters:
-
arc
(Arc3D
) –arc to be compared.
Returns:
-
bool
–True when arcs are equal, otherwise false.
__init__
overloaded
Initialize
__init__(arc: Arc3D)
__init__(
center: Point3D,
xDir: Vector3D,
normVector: Vector3D,
minor: float,
major: float,
startAngle: float,
deltaAngle: float,
)
__init__(
center: Point3D,
xDir: Vector3D,
normVector: Vector3D,
minor: float,
major: float,
startAngle: float,
endAngle: float,
counterClockwise: bool,
)
__init__(
center: Point3D,
minor: float,
major: float,
startAngle: float,
deltaAngle: float,
)
Constructor
Parameters:
-
center
(Point3D
) –Center point
-
minor
(float
) –Minor radius
-
major
(float
) –Major radius
-
startAngle
(float
) –Start angle
-
deltaAngle
(float
) –Delta angle
__init__(
center: Point3D,
minor: float,
major: float,
startAngle: float,
endAngle: float,
counterClockwise: bool,
)
Constructor
Parameters:
-
center
(Point3D
) –Center point
-
minor
(float
) –Minor radius
-
major
(float
) –Major radius
-
startAngle
(float
) –Start angle
-
endAngle
(float
) –End angle
-
counterClockwise
(bool
) –Winding direction
__init__(
placement: AxisPlacement3D,
minor: float,
major: float,
startAngle: float,
deltaAngle: float,
)
Constructor
Parameters:
-
placement
(AxisPlacement3D
) –3D Placement
-
minor
(float
) –Minor radius
-
major
(float
) –Major radius
-
startAngle
(float
) –Start angle
-
deltaAngle
(float
) –Delta angle
__init__(
placement: AxisPlacement3D,
minor: float,
major: float,
startAngle: float,
endAngle: float,
counterClockwise: bool,
)
Constructor
Parameters:
-
placement
(AxisPlacement3D
) –3D Placement
-
minor
(float
) –Minor radius
-
major
(float
) –Major radius
-
startAngle
(float
) –Start angle
-
endAngle
(float
) –End angle
-
counterClockwise
(bool
) –Winding direction
__init__(arc2D: Arc2D)