dihedral_angles
dihedral_angles(V, F)
Angle between adjacent faces across each (half-)edge of a triangle mesh.
For every halfedge of every face, computes the (unsigned) angle between the normal of that face and the normal of the face on the other side of the edge (the "crease" or "turning" angle). Importantly, this uses the following convention:
0when the two faces are coplanar (a flat surface),pi/2when they meet at a right angle (e.g. an edge of a cube),- approaching
piwhen they fold back onto each other.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
V
|
(n,3) numpy array
|
vertex list of a triangle mesh |
required |
F
|
(m,3) numpy int array
|
face index list of a triangle mesh |
required |
Returns:
| Name | Type | Description |
|---|---|---|
theta |
(m,3) numpy double array
|
Per-halfedge dihedral angles in radians, following the halfedge
ordering convention (entry |
See Also
per_face_normals, triangle_triangle_adjacency.
Examples:
from gpytoolbox import read_mesh, dihedral_angles
v,f = read_mesh("test/unit_tests_data/bunny_oded.obj")
theta = dihedral_angles(v,f)
Source code in src/gpytoolbox/dihedral_angles.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |