MATLAB 帮助中心
Crop surface mesh
Since R2022b
crop(mesh,bbox)
crop(mesh,bbox)crops the surface mesh mesh to the region specified by the 3-D bounding box bbox.
mesh
bbox
example
collapse all
Read a surface mesh from a PLY file into the workspace.
fileName = fullfile(toolboxdir("lidar"),"lidardata", ... "surfaceMesh","sphere.ply"); sphereMesh = readSurfaceMesh(fileName);
Display the surface mesh.
removeDefects(sphereMesh,"unreferenced-vertices") surfaceMeshShow(sphereMesh)
Define a bounding box to crop the sphere mesh to its lower half.
bbox3d = [-1 1 -1 1 -1 0]; crop(sphereMesh,bbox3d)
Display the cropped mesh.
surfaceMesh
Surface mesh, specified as a surfaceMesh object.
3-D bounding box dimensions, specified as a six-element vector. The vector is of the form [minX maxX minY maxY minZ maxZ], specifying the minimum and maximum limits of the box along the x-,y-, z-directions.
Introduced in R2022b
surfaceMesh | translate | rotate | transform | scale | simplify | subdivide
translate
rotate
transform
scale
simplify
subdivide
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处