SphericalSegment

a spherical segment is the solid defined by cutting a sphere or a ball with a pair of parallel planes. It can be thought of as a spherical cap with the top truncated, and so it corresponds to a spherical frustum.

Decorators
dataclasses.dataclass

Methods

  • __init__(
      self,
    ) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      height
      Type
      Decimal
      Default
      Description

    • Name
      radius_lower
      Type
      Decimal
      Default
      Description

    • Name
      radius_upper
      Type
      Decimal
      Default
      Description

  • __post_init__(self) -> None

  • volume_for_height(self, height) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      height
      Type
      Default
      Description

  • height_for_volume(self, volume) -> None

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      volume
      Type
      Default
      Description

Attributes

  • Name
    radius_lower
    Type
    Decimal
    Value

    = Decimal()

    Description

  • Name
    radius_upper
    Type
    Decimal
    Value

    = Decimal()

    Description

  • Name
    height
    Type
    Decimal
    Value

    = Decimal()

    Description

  • Name
    max_fitting_volume
    Type
    decimal.Decimal
    Value

    = None

    Description

    The maximum volume that fits into this shape.

Copyright © 2024