AddIntersectionOfLineAndPlane
Overloads
| Name | Description |
|---|---|
| AddIntersectionOfLineAndPlane(bool repeatPickSurface, bool customMode) | [교차점] 라인과 면의 교차되는 지점 측정 |
AddIntersectionOfLineAndPlane(bool repeatPickSurface, bool customMode)
public void AddIntersectionOfLineAndPlane(bool repeatPickSurface, bool customMode)
[교차점] 라인과 면의 교차되는 지점 측정
Parameters
| Name | Type | Description |
|---|---|---|
| repeatPickSurface | bool | 반복 서피스 선택 모드 |
| customMode | bool | 측정 후, 화면 등록 여부 - True:화면 등록안됨 / False:화면등록 |
Examples
// 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;
}