CHECKMESHADJACENTFACES Check if adjacent faces of a mesh have similar orientation.
checkMeshAdjacentFaces(VERTICES, EDGES, FACES)
The functions returns no output, but if two faces share a common edge
with the same direction (meaning that adjacent faces have normals in
opposite direction), a warning is displayed.
Example
[v e f] = createCube();
checkMeshAdjacentFaces(v, e, f);
% no output -> all faces have normal outwards of the cube
v = [0 0 0; 10 0 0; 0 10 0; 10 10 0];
e = [1 2;1 3;2 3;2 4;3 4];
f = [1 2 3; 2 3 4];
checkMeshAdjacentFaces(v, e, f);
Warning: Faces 1 and 2 run through the edge 3 (2-3) in the same direction
See also
meshes3d, trimeshMeanBreadth
Package: matgeom