Click or drag to resize

BoundBoxParameterGetShapeDrawingLineParameter Method

Get Shape Drawing Line Parameter

Namespace:  VIZCore3D.NET.Data
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public List<Vertex3DItemCollection> GetShapeDrawingLineParameter()

Return Value

Type: ListVertex3DItemCollection
Shape Drawing Line Parameter
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // 선택 노드
    List<Data.Node> nodes = vizcore3d.Object3D.FromFilter(Data.Object3dFilter.SELECTED_TOP);

    Data.BoundBoxParameter param = vizcore3d.Review.Measure.GetBoundBoxByPlaneVertex(
        nodes                           /* Node */
        , new Data.Vertex3D(0, 0, 1)    /* Normal */
        );

    vizcore3d.BeginUpdate();

    // Draw Custom Line
    int shapeId = vizcore3d.ShapeDrawing.AddLine(
        param.GetShapeDrawingLineParameter()
        , 0
        , Color.Black
        , 5.0f
        , true
        );

    // Use DepthTest
    vizcore3d.ShapeDrawing.DepthTest = true;

    // Draw Point
    for (int i = 0; i < 8; i++)
    {
        int noteId = vizcore3d.Review.Note.AddNote3D(i.ToString(), param.VertexItems[i]);

        // Set DepthTest
        vizcore3d.Review.Note.EnableDepthTest(noteId, true);
    }

    vizcore3d.EndUpdate();
}
See Also