Click or drag to resize

MeasureManagerOnMeasureIntersectionPointEvent Event

교차점 측정 결과 이벤트

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event MeasureIntersectionPointEventHandler OnMeasureIntersectionPointEvent

Value

Type: MeasureIntersectionPointEventHandler
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // Add Event
    vizcore3d.Review.Measure.OnMeasureIntersectionPointEvent += Measure_OnMeasureIntersectionPointEvent;

    bool repeatPickSurface = false;
    bool customMode = true;

    vizcore3d.Review.Measure.AddIntersectionOfLineAndPlane(
        repeatPickSurface   /* 반복수행모드 */
        , customMode        /* True: 화면에 등록되지 않고, 측정 수행 후 이벤트 발생 / False : 화면에 등록됨 */
        );
}

private void Measure_OnMeasureIntersectionPointEvent(object sender, Event.EventManager.MeasureIntersectionPointEventArgs e)
{
    // 선택한 부재의 인덱스
    int indexLine = e.LineIndex;
    int indexPlane = e.PlaneIndex;

    // 선택 정보
    VIZCore3D.NET.Data.Vertex3D hitPosition = e.HitPosition;
    VIZCore3D.NET.Data.Vertex3D lineDirection = e.LineDirection;
    VIZCore3D.NET.Data.Vertex3D planeNormal = e.PlaneNormal;
}
See Also