Click or drag to resize

SectionManagerGetClippedEdge Method

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

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public SectionPlaneEdgeCollection GetClippedEdge(
	int id,
	int subid
)

Parameters

id
Type: SystemInt32
ID
subid
Type: SystemInt32
SubID

Return Value

Type: SectionPlaneEdgeCollection
Edge List Collection
Examples
C#
// 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()
                        )
                        );
            }
        }
    }
}
See Also