본문으로 건너뛰기

GetKeyPoints

public List<ProjectionKeyPoint2D> GetKeyPoints(float cornerAngle)

중요 포인트 검출 (선이 이어지며 방향이 바뀌는 점).
형상 선(OUTER / INNER / FEATURE / SILHOUETTE / HIDDEN)의 연결 관계에서
꺾임점(방향 변화 ≥ cornerAngle), 분기점(선 3개 이상), 끝점(선 1개)을 찾음.
일직선으로 이어지는 점(교차 분할, 은선 경계)과 원 근사 다각형의 작은 꺾임은 제외됨.

Parameters​

NameTypeDescription
cornerAnglefloat꺾임점으로 인정할 방향 변화 각도 (도)

Returns​

TypeDescription
List<ProjectionKeyPoint2D>중요 포인트 목록 (KeyPoints 와 같은 목록)

Examples​

private void Example(VIZCore3D.NET.Data.EdgeProjectionResult result)
{
List<VIZCore3D.NET.Data.ProjectionKeyPoint2D> points = result.GetKeyPoints(15.0f);

foreach (VIZCore3D.NET.Data.ProjectionKeyPoint2D point in points)
{
System.Drawing.PointF position = point.Position;
VIZCore3D.NET.Data.ProjectionKeyPointKind kind = point.Kind; // CORNER, JUNCTION, END
}
}