Ellipsoid3D
Canonical path: NemAll_Python_Geometry.Ellipsoid3D
3D ellipsoid
Methods:
-
GetCenter
–Get Center of the Ellipsoid
-
GetIsoLines
–Test whether the Ellipsoid is Sphere
-
GetLocalPlacement
–Get Local Placement
-
GetSilhouetteContour
–Get silhouette circle
-
GetXAxis
–Get X-Axis of the placement of the Ellipsoid
-
GetXRadius
–Get X Radius of the Ellipsoid
-
GetYAxis
–Get Y-Axis of the placement of the Ellipsoid
-
GetYRadius
–Get Y Radius of the Ellipsoid
-
GetZAxis
–Get Z - axis of the placement of the Ellipsoid
-
GetZRadius
–Get Z Radius of the Ellipsoid
-
IsSphere
–Test whether the Ellipsoid is Sphere
-
IsValid
–Validity check of the Ellipsoid
-
SetCenter
–Set center
-
SetLocalPlacement
–Overloaded function. See individual overloads.
-
SetXRadius
–Set X Radius of the Ellipsoid
-
SetYRadius
–Set Y Radius of the Ellipsoid
-
SetZRadius
–Set Z Radius of the Ellipsoid
-
__eq__
–Comparison of ellipsoids without tolerance.
-
__init__
–Overloaded function. See individual overloads.
-
__repr__
–Convert the list to a string
Attributes:
-
LocalPlacement
(None
) –Get and set the local placement property
-
XRadius
(None
) –Get and set the x radius property
-
YRadius
(None
) –Get and set the y radius property
-
ZRadius
(None
) –Get and set the z radius property
GetCenter
GetCenter() -> Point3D
GetIsoLines
GetIsoLines(USegmentsCount: int, VSegmentsCount: int) -> Arc3DList
Test whether the Ellipsoid is Sphere
Parameters:
-
USegmentsCount
(int
) –count of circles
-
VSegmentsCount
(int
) –count of circles
Returns:
-
Arc3DList
–vector of circles
GetLocalPlacement
GetLocalPlacement() -> AxisPlacement3D
GetSilhouetteContour
GetXAxis
GetXAxis() -> Vector3D
GetXRadius
Get X Radius of the Ellipsoid
Returns:
-
float
–Reference to X Radius.
GetYAxis
GetYAxis() -> Vector3D
GetYRadius
Get Y Radius of the Ellipsoid
Returns:
-
float
–Reference to Y Radius.
GetZAxis
GetZAxis() -> Vector3D
GetZRadius
Get Z Radius of the Ellipsoid
Returns:
-
float
–Reference to Z Radius.
SetXRadius
Set X Radius of the Ellipsoid
Parameters:
-
rad
(float
) –New radius.
Returns:
-
–
Reference to X Radius.
SetYRadius
Set Y Radius of the Ellipsoid
Parameters:
-
rad
(float
) –New radius
SetZRadius
Set Z Radius of the Ellipsoid
Parameters:
-
rad
(float
) –New radius
__eq__
__eq__(ellipsoid: Ellipsoid3D) -> object
Comparison of ellipsoids without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
ellipsoid
(Ellipsoid3D
) –Compared ellipsoid.
Returns:
-
object
–True when ellipsoids are equal, otherwise false.
__init__
overloaded
Initialize
__init__(ellipsoid: Ellipsoid3D)
__init__(
refPlacement: AxisPlacement3D,
radiusX: float,
radiusY: float,
radiusZ: float,
)
Constructor.
Parameters:
-
refPlacement
(AxisPlacement3D
) –Local Placement of the ellipsoid.
-
radiusX
(float
) –X radius of the Ellipsoid.
-
radiusY
(float
) –Y radius of the Ellipsoid.
-
radiusZ
(float
) –Z radius of the Ellipsoid.
Constructor.
Parameters:
-
radiusX
(float
) –X radius of the Ellipsoid.
-
radiusY
(float
) –Y radius of the Ellipsoid.
-
radiusZ
(float
) –Z radius of the Ellipsoid.