MESHBOUNDARY Boundary of a mesh as a collection of 3D line strings. CURVES = meshBoundary(V, F) Example % create centered icosahedron [v, f] = createIcosahedron; v(:,3) = v(:,3) - mean(v(:,3)); % convert to simili-sphere [v2, f2] = subdivideMesh(v, f, 3); v3 = normalizeVector3d(v2); % clip with plane plane = createPlane([0 0 0], [-1 -2 3]); [vc, fc] = clipMeshVertices(v3, f2, plane, 'shape', 'plane'); figure; drawMesh(vc, fc); axis equal; view(3); % draw mesh boundary curves = meshBoundary(vc, fc); hold on; drawPolygon3d(curves{1}, 'linewidth', 2, 'color', 'b'); See also meshes3d, meshBoundaryEdgeIndices, meshBoundaryVertexIndices
Package: matgeom