uf3.representation.angles.legacy_generate_triplets¶
- legacy_generate_triplets(i_where: numpy.ndarray, j_where: numpy.ndarray, distance_matrix: numpy.ndarray, knot_sequences: List[numpy.ndarray]) Tuple[source]¶
Identify unique “i-j-j’” tuples by combining provided i-j pairs, then compute i-j, i-k, and j-k pair distances from i-j-k tuples,
distance matrix, and knot sequence for cutoffs.
- Parameters
i_where (np.ndarray) – sorted “i” indices
j_where (np.ndarray) – sorted “j” indices
distance_matrix (np.ndarray) –
knot_sequences (list of np.ndarray) –
- Returns
array of shape (n_triangles, 3)
- Return type
tuples_idx (np.ndarray)