Main Content

triangulation

polyshape 삼각분할

설명

예제

T = triangulation(polyin)polyshape 객체의 2차원 triangulation 객체를 반환합니다. Tpolyin을 구성하는 삼각형의 꼭짓점과 연결을 설명하는 속성을 가집니다. 자세한 내용은 triangulation 항목을 참조하십시오.

예제

모두 축소

다각형을 만들고 삼각분할합니다.

t = 0.05:0.5:2*pi;
x1 = cos(t);
y1 = sin(t);
x2 = 0.5*cos(t);
y2 = 0.5*sin(t);
polyin = polyshape({x1,x2},{y1,y2})
polyin = 
  polyshape with properties:

      Vertices: [27x2 double]
    NumRegions: 1
      NumHoles: 1

plot(polyin)

Figure contains an axes object. The axes object contains an object of type polygon.

T = triangulation(polyin)
T = 
  triangulation with properties:

              Points: [26x2 double]
    ConnectivityList: [26x3 double]

triplot(T)

Figure contains an axes object. The axes object contains an object of type line.

입력 인수

모두 축소

입력 polyshape로, 스칼라로 지정됩니다.

데이터형: polyshape

버전 내역

R2017b에 개발됨

참고 항목

|