MATLAB 도움말 센터
Apply rigid transformation to surface mesh
Since R2022b
transform(mesh,tform)
transform(mesh,tform) applies the rigid 3-D transformation specified by tform to the surface mesh mesh.
mesh
tform
example
collapse all
Define mesh vertices for a surface mesh.
vertices = [1 -1 1; 1 1 1; -1 1 1; -1 -1 1; ... 1 -1 -1; 1 1 -1; -1 1 -1; -1 -1 -1];
Define the mesh faces using the vertices.
faces = [6 2 1; 1 5 6; 8 4 3; 3 7 8; 6 7 3; 3 2 6; ... 5 1 4; 4 8 5; 4 1 2; 2 3 4; 7 6 5; 5 8 7];
Create and display the surface mesh.
mesh = surfaceMesh(vertices,faces); surfaceMeshShow(mesh)
Define rotation and translation values, then use them to generate a transformation matrix.
theta = 30; rotationMat = [cosd(theta) sind(theta) 0; -sind(theta) cosd(theta) 0; 0 0 1]; translationVector = [2 0 0]; tform = rigidtform3d(rotationMat,translationVector);
Apply the rigid transformation and visualize the output.
transform(mesh,tform); surfaceMeshShow(mesh)
surfaceMesh
Surface mesh, specified as a surfaceMesh object.
rigidtform3d
Rigid 3-D transformation matrix, specified as a rigidtform3d object.
Introduced in R2022b
surfaceMesh | translate | rotate | scale | crop | simplify | subdivide
translate
rotate
scale
crop
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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의