본문으로 건너뛰기

GetOutlineEdges

public List<Line3D> GetOutlineEdges(List<int> index, Vector3D viewDirection, float featureAngle)

지정한 시선 방향에서 본 개체 메쉬의 윤곽선(Outline Edge) 반환.
관찰자를 향한 Facet 집합의 경계 변(외곽, 홀, 곡면 윤곽)과 꺾인 변을 반환하며, 삼각분할선은 제외됨.
법선 방향이 일관되지 않은 메쉬는 결과가 없을 때 법선 부호와 무관하게 재계산함.

Parameters​

NameTypeDescription
indexList<int>개체 인덱스 목록 (BODY / ASSEMBLY 는 PART 로 변환하여 조회)
viewDirectionVector3D시선 방향 (관찰자가 바라보는 방향. ProjectionBasis.W 의 반대 방향)
featureAnglefloat꺾인 변으로 인정할 인접 Facet 법선 각도 (도)

Returns​

TypeDescription
List<Line3D>윤곽선 목록. Line3D 의 화면 좌표(Start2D, End2D)는 계산하지 않음

Examples​

private void Example()
{
List<int> index = new List<int>() { 8 };

// 평면도 (Z+ 에서 Z- 방향으로 관찰)
VIZCore3D.NET.Data.Vector3D dir = new VIZCore3D.NET.Data.Vector3D(0, 0, -1);

List<VIZCore3D.NET.Data.Line3D> edges = vizcore3d.MeshEdit.GetOutlineEdges(index, dir, 20.0f);
}