Click or drag to resize

MeasureManagerAddIntersectionOfLineAndPlane Method

[교차점] 라인과 면의 교차되는 지점 측정

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public void AddIntersectionOfLineAndPlane(
	bool repeatPickSurface = false,
	bool customMode = false
)

Parameters

repeatPickSurface (Optional)
Type: SystemBoolean
반복 서피스 선택 모드
customMode (Optional)
Type: SystemBoolean
측정 후, 화면 등록 여부 - True:화면 등록안됨 / False:화면등록
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