_tri.pyi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This is a private module implemented in C++
  2. from typing import final
  3. import numpy as np
  4. import numpy.typing as npt
  5. @final
  6. class TrapezoidMapTriFinder:
  7. def __init__(self, triangulation: Triangulation): ...
  8. def find_many(self, x: npt.NDArray[np.float64], y: npt.NDArray[np.float64]) -> npt.NDArray[np.int_]: ...
  9. def get_tree_stats(self) -> list[int | float]: ...
  10. def initialize(self) -> None: ...
  11. def print_tree(self) -> None: ...
  12. @final
  13. class TriContourGenerator:
  14. def __init__(self, triangulation: Triangulation, z: npt.NDArray[np.float64]): ...
  15. def create_contour(self, level: float) -> tuple[list[float], list[int]]: ...
  16. def create_filled_contour(self, lower_level: float, upper_level: float) -> tuple[list[float], list[int]]: ...
  17. @final
  18. class Triangulation:
  19. def __init__(
  20. self,
  21. x: npt.NDArray[np.float64],
  22. y: npt.NDArray[np.float64],
  23. triangles: npt.NDArray[np.int_],
  24. mask: npt.NDArray[np.bool_] | tuple[()],
  25. edges: npt.NDArray[np.int_] | tuple[()],
  26. neighbors: npt.NDArray[np.int_] | tuple[()],
  27. correct_triangle_orientation: bool,
  28. ): ...
  29. def calculate_plane_coefficients(self, z: npt.ArrayLike) -> npt.NDArray[np.float64]: ...
  30. def get_edges(self) -> npt.NDArray[np.int_]: ...
  31. def get_neighbors(self) -> npt.NDArray[np.int_]: ...
  32. def set_mask(self, mask: npt.NDArray[np.bool_] | tuple[()]) -> None: ...