MESHSILHOUETTE Compute the 2D outline of a 3D mesh on an arbitrary plane. ATTENTION: Very slow brute force approach! Keep the number of faces as low as possible. SILHOUETTE = meshSilhouette(MESH, PLANE) Calculates the silhouette (2D outline) of the MESH projected on the PLANE. SILHOUETTE = meshSilhouette(MESH) uses the x-y plane. SILHOUETTE = meshSilhouette(V, F, ...) SILHOUETTE = meshSilhouette(..., 'visu', 1) visualizes the results. By default the results are not visualized. Example: v = [5, 2, 6, 0, 3; 0, 2, 4, 2, 1; -5, -6, -6, -7, -9]'; f = [1, 2, 4; 1, 5, 4; 1, 2, 5; 2, 3, 5; 2, 4, 3; 3, 4, 5]; sil = meshSilhouette(v, f, rand(1,9),'visu',1); See also: projPointOnPlane Source: Sean de Wolski - https://www.mathworks.com/matlabcentral/answers/68004
Package: matgeom