surfaceMesh
설명
surfaceMesh
객체는 곡면 메시를 생성하고 저장합니다. 곡면 메시는 기하학적 곡면을 표현하며 꼭짓점, 면, 가장자리로 구성됩니다. surfaceMesh
객체와 객체 함수를 사용하여 다음을 수행할 수 있습니다.
메시 꼭짓점과 메시 면 추가 및 제거
회전, 평행 이동, 변환, 스케일링과 같은 기하학적 연산 수행
메시 법선 계산
메시 자르기, 단순화 및 세분하기
자체 교차 여부, 밀폐 여부 또는 방향 지정 가능 여부와 같은 메시 속성 확인
퇴화하고 참조되지 않은 꼭짓점 및 면 제거
생성
설명
는 지정된 꼭짓점과 면으로 mesh
= surfaceMesh(vertices
,faces
)surfaceMesh
객체를 생성합니다.
는 위에 열거된 구문의 인수 외에 하나 이상의 이름-값 인수를 사용하여 옵션을 지정합니다. 예를 들어 mesh
= surfaceMesh(___,Name=Value)VertexNormals=[8 -4 4; 4 4 8; -6 6 3; -3 -6 6; 3 -6 -6; 6 6 -3]
은 메시 꼭짓점에 대한 법선 벡터를 지정합니다.
속성
객체 함수
addVertices | Add vertices to surface mesh |
addFaces | Add faces to surface mesh |
removeVertices | Remove vertices from surface mesh |
removeFaces | Remove faces from surface mesh |
translate | Translate surface mesh |
rotate | Rotate surface mesh |
transform | Apply rigid transformation to surface mesh |
vertexCenter | Find vertex center of surface mesh |
scale | Scale vertices of surface mesh |
computeNormals | Compute unit normals for mesh vertices and faces |
crop | Crop surface mesh |
simplify | Simplify surface mesh |
subdivide | Subdivide surface mesh |
isEdgeManifold | Check if surface mesh is edge-manifold |
isOrientable | Check if surface mesh is orientable |
isSelfIntersecting | Check if surface mesh is self-intersecting |
isVertexManifold | Check if surface mesh is vertex-manifold |
isWatertight | Check if surface mesh is watertight |
removeDefects | Remove surface mesh defects |
예제
버전 내역
R2022b에 개발됨