LoopStructural.api.LoopIsosurfacer#

class LoopStructural.api.LoopIsosurfacer(bounding_box: BoundingBox, interpolator: GeologicalInterpolator | None = None, callable: Callable[[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]] | None = None)#

Bases: object

Extract isosurfaces from a geological interpolator or a callable function.

Parameters:
  • bounding_box (BoundingBox) – _description_

  • interpolator (Optional[GeologicalInterpolator], optional) – interpolator object, by default None

  • callable (Optional[Callable[[npt.ArrayLike], npt.ArrayLike]], optional) – callable object, by default None

Raises:
  • ValueError – _description_

  • ValueError – _description_

  • ValueError – _description_

__init__(bounding_box: BoundingBox, interpolator: GeologicalInterpolator | None = None, callable: Callable[[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]] | None = None)#

Extract isosurfaces from a geological interpolator or a callable function.

Parameters:
  • bounding_box (BoundingBox) – _description_

  • interpolator (Optional[GeologicalInterpolator], optional) – interpolator object, by default None

  • callable (Optional[Callable[[npt.ArrayLike], npt.ArrayLike]], optional) – callable object, by default None

Raises:
  • ValueError – _description_

  • ValueError – _description_

  • ValueError – _description_

Methods

__init__(bounding_box[, interpolator, callable])

Extract isosurfaces from a geological interpolator or a callable function.

fit(values)

Extract isosurfaces from the interpolator

fit(values: list | int | float) dict[str, tuple[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]]]#

Extract isosurfaces from the interpolator

Parameters:

values (Union[list, int, float]) – Either a list of values to extract isosurfaces for, or a single value to extract a single isosurface for, or an integer to extract that many isosurfaces evenly spaced between the minimum and maximum values of the interpolator.

Returns:

surface_list – a dictionary containing the extracted isosurfaces