Required
points| Type: | npt.NDArray |
| Description: | The points to compress. |
def compress_connectivity(
points: npt.NDArray,
connectivity: npt.NDArray,
return_point_map: bool = False,
assume_unique: bool = False,
rtol: float = 1e-12,
) -> tuple[npt.NDArray, ...]: ...| Type: | npt.NDArray |
| Description: | The points to compress. |
| Type: | npt.NDArray |
| Description: | The connectivity to compress. |
| Type: | bool |
| Default value: | False |
| Description: | Return the point map from the old to new connectivity. |
| Type: | bool |
| Default value: | False |
| Description: | Assume the points are already unique. Skips a potentially expensive sort. |
| Type: | float |
| Default value: | 1e-12 |
| Description: | The relative tolerance below which points are considered equal. Will be scaled by the range of values in points. |
tuple[npt.NDArray, ...]rtol will be considered identical and their
numbering will be consolidated.def compute_global_numbering(
points: npt.NDArray, rtol: float = 1e-12
) -> npt.NDArray: ...| Type: | npt.NDArray |
| Description: | The points to compute the numbering of. |
| Type: | float |
| Default value: | 1e-12 |
| Description: | The relative tolerance below which points are considered equal. Will be scaled by the range of values in points. |
npt.NDArrayrtol, when scaled by the range of values
within points, will be considered identical.def find_unique_points(
points: npt.NDArray, rtol: float = 1e-12, return_index: bool = False
) -> tuple[npt.NDArray, ...]: ...| Type: | npt.NDArray |
| Description: | The points to make unique. |
| Type: | float |
| Default value: | 1e-12 |
| Description: | The relative tolerance below which points are considered equal. Will be scaled by the range of values in points. |
| Type: | bool |
| Default value: | False |
| Description: | Additionally return the original indices of the unique points. |
tuple[npt.NDArray, ...]np.unique via kwargs.