ipyvasp.core.spatial_toolkitΒΆ

Functions

angle_deg(v1, v2)

Returns interier angle between two vectors in degrees.

angle_rad(v1, v2)

Returns interier angle between two vectors in radians.

coplanar(points[, tol])

Returns true if points are coplanar within tol tolerance.

get_TM(basis1, basis2)

Returns a transformation matrix that gives basis2 when applied on basis1.

get_bz(basis[, loop, primitive])

Return required data to construct first Brillouin zone.

inside_convexhull(hull, points)

kpoints2bz(bz_data, kpoints[, shift, ...])

Brings KPOINTS inside BZ.

order(points[, loop])

Returns indices of counterclockwise ordered vertices of a plane in 3D.

outer_side(test_point, plane)

Returns True if test_point is between plane and origin.

rotation(angle_deg, axis_vec)

Get a scipy Rotation object at given angle_deg around axis_vec.

simplify_faces(vertices, faces[, loop])

Simplifies faces by merging adjacent coplanar faces.

tan_inv(vy, vx)

Returns full angle from x-axis counter clockwise.

to_R3(basis, points)

Transforms coordinates of points (relative to non-othogonal basis) into orthogonal space.

to_basis(basis, coords)

Transforms coordinates of points (relative to othogonal basis) into basis space.

to_plane(normal, points)

Project points to a plane defined by normal.