Get Hull Point에서 시계 방향 다각형으로 행렬을 변환하는 방법안녕하세요 팀,
Get Hull Point에서 가져온 행렬을 시계 방향 다각형으로 변환할 방법이 있을까요? 문제는 Polygon(x,y)를 사용하여 다각형을 그릴 때 x와 y가 Get Hull Point에서 가져온 것인데, 다각형이 연속적이지 않다는 것입니다.
아래 코드:
x_matrix = dt[rows, {FORCEDROPTIME_3 }];
y_matrix = dt[rows, {ACTUAL_MINCHASEFORCEF_3}];
t = Triangulation( x( x_matrix, y_matrix ) ); // from the current rows
ashape = Alpha Shape(t);
ashape << Set Alpha(alpha=0.5);
{ax, ay} = ashape << Get Points();
ashape2 = ashape<< Subset( ashape<< Get Hull Points ); // get data point of boundary
{ashape2_xx, ashape2_yy} = ashape2 << Get Points();
Polygon(ashape2_xx,ashape2_yy);
Refer to polygon with red area in graph below, it seems that red polygon is not correct. I believe that I need to process matrix x and y return from Get Hull Points, so that Polygon() syntax could draw continuous polygon
이 문제를 해결할 수 있는 방법을 아는 사람이 있나요?
고마워하다,
자동화 및 스크립팅데이터 탐색 및 시각화Re: Get Hull Point에서 시계 방향 다각형으로 행렬을 변환하는 방법JSL 코드를 게시할 때는 JSL 형식을 사용하는 것이 좋습니다. 그러면 가독성이 훨씬 높아집니다. JSL 형식을 사용하도록 게시글을 수정했습니다.
눌러서 서식을 사용할 수 있습니다
툴바에서 JSL을 선택한 다음 열리는 창에 붙여넣습니다.