Skip to content

Ellipsoid3D

Canonical path: NemAll_Python_Geometry.Ellipsoid3D

Representation class for 3D Ellipsoid.

Center property writable

Center: Point3D

Get Center of the Ellipsoid

LocalPlacement property writable

LocalPlacement: AxisPlacement3D

Get Local Placement

XRadius property writable

XRadius: float

Get X Radius of the Ellipsoid

YRadius property writable

YRadius: float

Get Y Radius of the Ellipsoid

ZRadius property writable

ZRadius: float

Get Z Radius of the Ellipsoid

GetCenter

GetCenter() -> Point3D

Get Center of the Ellipsoid

Returns:

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:

GetLocalPlacement

GetLocalPlacement() -> AxisPlacement3D

Get Local Placement

Returns:

GetSilhouetteContour

GetSilhouetteContour(
    viewMatrix: Matrix3D, bPerspective: bool
) -> tuple[bool, Arc3D]

Get silhouette circle

Parameters:

  • viewMatrix (Matrix3D) –

    view matrix

  • bPerspective (bool) –

    central perspective true/false

Returns:

  • tuple[bool, Arc3D]

    tuple(true, if successful, silhouette)

GetXAxis

GetXAxis() -> Vector3D

Get X-Axis of the placement of the Ellipsoid

Returns:

GetXRadius

GetXRadius() -> float

Get X Radius of the Ellipsoid

Returns:

  • float

    Reference to X Radius.

GetYAxis

GetYAxis() -> Vector3D

Get Y-Axis of the placement of the Ellipsoid

Returns:

GetYRadius

GetYRadius() -> float

Get Y Radius of the Ellipsoid

Returns:

  • float

    Reference to Y Radius.

GetZAxis

GetZAxis() -> Vector3D

Get Z - axis of the placement of the Ellipsoid

Returns:

GetZRadius

GetZRadius() -> float

Get Z Radius of the Ellipsoid

Returns:

  • float

    Reference to Z Radius.

IsSphere

IsSphere() -> bool

Test whether the Ellipsoid is Sphere

Returns:

  • bool

    true/false

IsValid

IsValid() -> bool

Validity check of the Ellipsoid

Returns:

  • bool

    Reference to MinMax of the Ellipsoid.

  • bool

    true/false

SetCenter

SetCenter(center: Point3D)

Set center

Parameters:

SetLocalPlacement overloaded

SetLocalPlacement(placement: AxisPlacement3D)

Set Local Placement.

Parameters:

SetLocalPlacement(center: Point3D, xAxis: Vector3D, zAxis: Vector3D)

Set Local Placement.

Parameters:

  • center (Point3D) –

    Center point of the placement

  • xAxis (Vector3D) –

    X-axis of the placement

  • zAxis (Vector3D) –

    Z-axis of the placement

SetXRadius

SetXRadius(rad: float)

Set X Radius of the Ellipsoid

Parameters:

  • rad (float) –

    New radius.

Returns:

  • Reference to X Radius.

SetYRadius

SetYRadius(rad: float)

Set Y Radius of the Ellipsoid

Parameters:

  • rad (float) –

    New radius

SetZRadius

SetZRadius(rad: float)

Set Z Radius of the Ellipsoid

Parameters:

  • rad (float) –

    New radius

__eq__

__eq__(ellipsoid: Ellipsoid3D) -> bool

Comparison of ellipsoids.

Be careful, this method work without tolerance!

Parameters:

  • ellipsoid (Ellipsoid3D) –

    ellipsoid to be compared.

Returns:

  • bool

    True when ellipsoids are equal, otherwise false.

__init__ overloaded

__init__()

Initialize

__init__(ellipsoid: Ellipsoid3D)

Copy constructor.

Parameters:

  • ellipsoid (Ellipsoid3D) –

    Ellipsoid which will be copied.

__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.

__init__(radiusX: float, radiusY: float, radiusZ: float)

Constructor.

Parameters:

  • radiusX (float) –

    X radius of the Ellipsoid.

  • radiusY (float) –

    Y radius of the Ellipsoid.

  • radiusZ (float) –

    Z radius of the Ellipsoid.

__repr__

__repr__() -> str

Convert to string

Placeholder