본문으로 건너뛰기

GetClippedEdge

Overloads

NameDescription
GetClippedEdge(int id, int subid)단면 클리핑된 단면선 Edge 목록 반환

GetClippedEdge(int id, int subid)

public SectionPlaneEdgeCollection GetClippedEdge(int id, int subid)

단면 클리핑된 단면선 Edge 목록 반환

Parameters

NameTypeDescription
idintID
subidintSubID

Returns

TypeDescription
SectionPlaneEdgeCollectionEdge List Collection

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
VIZCore3D.NET.Data.Section section = vizcore3d.Section.SelectedItem;

if (section == null) return;

if (section.SectionType == VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION)
{
VIZCore3D.NET.Data.SectionPlaneEdgeCollection items
= vizcore3d.Section.GetClippedEdge(section.ID, -1);

foreach (VIZCore3D.NET.Data.SectionPlaneEdge edge in items)
{
System.Diagnostics.Trace.WriteLine(
string.Format(
"P1:{0}, P2:{1}, C:{2}"
, edge.Postion1.ToString()
, edge.Postion2.ToString()
, edge.Color.ToArgb().ToString()
)
);
}
}
else if (section.SectionType == VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION_BOX)
{
for (int i = 0; i < 6; i++)
{
VIZCore3D.NET.Data.SectionPlaneEdgeCollection items
= vizcore3d.Section.GetClippedEdge(section.ID, i);

foreach (VIZCore3D.NET.Data.SectionPlaneEdge edge in items)
{
System.Diagnostics.Trace.WriteLine(
string.Format(
"P1:{0}, P2:{1}, C:{2}"
, edge.Postion1.ToString()
, edge.Postion2.ToString()
, edge.Color.ToArgb().ToString()
)
);
}
}
}
}