smooth_n_rosy#
- iskra.directional.smooth_n_rosy(vertices: Tensor, faces: Tensor, flaps: Tensor, connection: Tensor, n: int, sources: int | Iterable[int] | Tensor, intrinsic: complex | Iterable[complex] | Tensor) Tensor[SOURCE]#
Smooths an N-RoSy field.
- Parameters:
vertices (
Tensor[Float, [V, Dim]]) – Mesh vertices. Dim is either 2 or 3.faces (
Tensor[Int64, [F, 3]]) – Triangle faces.flaps (
Tensor[Int64, [E, 2]]) – Edge-to-face connectivity in the mesh. Seeedge_flaps().connection (
Tensor[Complex, [E]]) – Discrete connection. You can useface_tangent_bundle()to obtain a connection from a mesh.n (int) – The degree of symmetry of the N-RoSy field. Is simply 1 for vector fields.
sources (int | Iterable[int] |
Tensor[Int64, […]]) – Array of indices of faces with hard constraints.intrinsic (complex |
Tensor[Complex, […]]) – Array of complex N-RoSy coefficients to be transported. Useto_intrinsic_n_rosy()to project extrinsic vectors to intrinsic N-RoSy ones.
- Returns:
(
Tensor[Complex, [F]]) – Smoothed vectors.