crop
설명
예제
경계 상자를 사용하여 곡면 메시 자르기
PLY 파일에 있는 곡면 메시를 작업 공간으로 읽어옵니다.
fileName = fullfile(toolboxdir("lidar"),"lidardata", ... "surfaceMesh","sphere.ply"); sphereMesh = readSurfaceMesh(fileName);
곡면 메시를 표시합니다.
removeDefects(sphereMesh,"unreferenced-vertices") surfaceMeshShow(sphereMesh,Title="Original Mesh")
구 메시의 아래쪽 절반을 자를 경계 상자를 정의합니다.
bbox3d = [-1 1 -1 1 -1 0]; crop(sphereMesh,bbox3d)
잘린 메시를 표시합니다.
removeDefects(sphereMesh,"unreferenced-vertices") surfaceMeshShow(sphereMesh, Title="Cropped mesh")
입력 인수
mesh
— 곡면 메시
surfaceMesh
객체
곡면 메시로, surfaceMesh
객체로 지정됩니다.
bbox
— 3차원 경계 상자의 크기
요소를 6개 가진 벡터
3차원 경계 상자의 크기로, 요소를 6개 가진 벡터로 지정됩니다. 벡터 형식은 [minX maxX minY maxY minZ maxZ]이며, 상자의 x-축, y-축, z-축 방향의 최소 제한과 최대 제한을 지정합니다.
버전 내역
R2022b에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)