본문으로 건너뛰기

GetFeatureEdges

public List<Line3D> GetFeatureEdges(List<int> index, float featureAngle)

지정한 개체 메쉬의 특징선(Feature Edge) 반환.
경계 변(Facet 1개에만 속한 변)과 인접 Facet 법선 각도가 featureAngle 을 초과하는 꺾인 변만 반환하며,
같은 평면 위의 삼각분할선은 제외됨. 관찰 방향과 무관한 3D 모서리.

Parameters​

NameTypeDescription
indexList<int>개체 인덱스 목록 (BODY / ASSEMBLY 는 PART 로 변환하여 조회)
featureAnglefloat꺾인 변으로 인정할 인접 Facet 법선 각도 (도)

Returns​

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

Examples​

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

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