iskra.directional#

complex_nth_root(z, n)

Compute the nth roots of a complex number z.

face_connection_d_01(n_faces, flaps, connection)

Construct the face-based connection differetial for an N-RoSy field.

face_connection_laplacian(verts, faces, ...)

Construct the face-based connection laplacian for an N-RoSy field.

face_connection_mass(verts, edges, ...)

Makes the face-based connection mass matrix for an N-RoSy field via edge lengths.

face_tangent_bundle(vertices, faces, edge_flaps)

Construct a tangent bundle for a face-based vector field.

smooth_frame_field(vertices, faces, flaps, ...)

Smooth a frame field with sparse hard constraints.

smooth_n_rosy(vertices, faces, flaps, ...)

Smooths an N-RoSy field.

to_extrinsic(u, tangents, binormals)

Reconstructs 3D vector from intrinsic complex directional.

to_extrinsic_frame_field(uv, tangents, binormals)

Reconstructs 3D vectors from complex frame field.

to_extrinsic_n_rosy(u, tangents, binormals, n)

Reconstructs 3D vectors from intrinsic complex N-RoSy field.

to_intrinsic(v, tangents, binormals)

Projects 3D vector onto 2D basis spanned by tangents and binormals.

to_intrinsic_frame_field(u, v, tangents, ...)

Constructs a frame field from two 3D vectors.

to_intrinsic_n_rosy(v, tangents, binormals, n)

Constructs an N-RoSy field from a 3D vector.

transport_from_face(source, intrinsic, ...)

Parallelly transports of a vector from face source to all neighboring faces.