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()
)
);
}
}
}
}