MeasureManagerAddIntersectionOfLineAndPlane Method |
Namespace: VIZCore3D.NET.Manager
public void AddIntersectionOfLineAndPlane( bool repeatPickSurface = false, bool customMode = false )
// 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; }