Measure
AddAngle
각도 측정 추가
Example
//각도 측정 추가
vizcore.Review.Measure.AddAngle();
AddBoundbox
바운드 박스 추가
Example
//바운드 박스 추가
vizcore.Review.Measure.AddBoundbox();
AddBoundBoxByPlane
면 기준 바운드 박스 추가
Example
//면 기준 바운드 박스 추가
vizcore.Review.Measure.AddBoundBoxByPlane();
AddCustomAxisDistance
사용자 축 거리측정
Example
//사용자 축 거리측정
// VIZCore.Enum.REVIEW_TYPES.RK_MEASURE_X_AXIS_DISTANCE = x축
// VIZCore.Enum.REVIEW_TYPES.RK_MEASURE_Y_AXIS_DISTANCE = y축
// VIZCore.Enum.REVIEW_TYPES.RK_MEASURE_Z_AXIS_DISTANCE = z축
let xPos1 = new VIZCore.Vector3(-17.87, -26.37, 18.06);
let xPos2 = new VIZCore.Vector3(-11.59, -14.87, 26.93);
let item = vizcore.Review.Measure.AddCustomAxisDistance(VIZCore.Enum.REVIEW_TYPES.RK_MEASURE_X_AXIS_DISTANCE, xPos1, xPos2);
Parameters
Name | Type | Description |
---|---|---|
axis | VIZCore.Enum.REVIEW_TYPES | 사용자 측정 축 |
position1 | VIZCore.Vector3 | 측정 좌표 1 |
position2 | VIZCore.Vector3 | 측정 좌표 2 |
AddCustom3PointAngle
사용자 각도 측정
Example
// 원점
let basePosition = new VIZCore.Vector3(-9.901801109313965, -26.37406349182129, 11.097392082214355);
// 측정포인트 1
let position1 = new VIZCore.Vector3(-14.316170692443848, -26.37406349182129, 22.50659942626953);
// 측정포인트 2
let position2 = new VIZCore.Vector3(-2.7605979442596436, -26.37406349182129, 26.631200790405273);
// 커스텀 각도 측정
let item = vizcore.Review.Measure.AddCustom3PointAngle(basePosition, position1, position2);
Parameters
Name | Type | Description |
---|---|---|
basePosition | VIZCore.Vector3 | 각도 측정 기준점 좌표 |
position1 | VIZCore.Vector3 | 측정 좌표1 |
position2 | VIZCore.Vector3 | 측정 좌표2 |
AddCustomPosition
사용자 좌표 측정
Example
//커스텀 좌표 측정
let position = new VIZCore.Vector3(-11.200, -26.311, 26.888);
let item = vizcore.Review.Measure.AddCustomPosition(position);
Parameters
Name | Type | Description |
---|---|---|
position | VIZCore.Vector3 | 측정 좌표 |
AddCylinderCylinderCrossPoint
실린더 - 실린더 교차점
Example
//실린더 - 실린더 교차점
vizcore.Review.Measure.AddCylinderCylinderCrossPoint();
AddCylinderPlaneDistance
실린더 - 평면 최단 거리
Example
//실린더 - 평면 최단 거리
vizcore.Review.Measure.AddCylinderPlaneDistance();
AddDistance
거리 측정 추가
Example
//거리 측정 추가
vizcore.Review.Measure.AddDistance();
AddLinkArea
면적 측정 추가
Example
//면적 측정 추가
vizcore.Review.Measure.AddLinkArea();
AddLinkedDistance
연속 거리 측정
Example
//연속 거리 측정
vizcore.Review.Measure.AddLinkedDistance();
AddLinkedXAxisDistance
연속 X축 거리 측정
Example
//연속 X축 거리 측정
vizcore.Review.Measure.AddLinkedXAxisDistance();
AddLinkedYAxisDistance
연속 Y축 거리 측정
Example
연속 Y축 거리 측정
vizcore.Review.Measure.AddLinkedYAxisDistance();
AddLinkedZAxisDistance
연속 Z축 거리 측정
Example
//연속 Z축 거리 측정
vizcore.Review.Measure.AddLinkedZAxisDistance();
AddObjectMinDistance
개체 최단 거리 측정 추가
Example
//개체 최단 거리 측정 추가
vizcore.Review.Measure.AddObjectMinDistance();
AddOnePointFixedDistance
점대 여러점 측정
Example
//점대 여러점 측정
vizcore.Review.Measure.AddOnePointFixedDistance();
AddPosition
위치 측정 추가
Example
//위치 측정 추가
vizcore.Review.Measure.AddPosition();
AddSmartAxisDistance
Smart 축 거리 측정 추가
Example
//Smart 축 거리 측정 추가
vizcore.Review.Measure.AddSmartAxisDistance();
AddSurfaceDistance
면 거리 측정 (평행한 경우 평행 면 거리 측정)
Example
//면 거리 측정
vizcore.Review.Measure.AddSurfaceDistance();
AddSurfaceMinDistance
면과 면 최단거리 측정
Example
//면과 면 최단거리 측정
vizcore.Review.Measure.AddSurfaceMinDistance();
AddSurfacePointMinDistance
면과 점 최단거리 측정
Example
//면과 점 최단거리 측정
vizcore.Review.Measure.AddSurfacePointMinDistance();
AddXAxisDistance
X축 거리 측정
Example
//X축 거리 측정
vizcore.Review.Measure.AddXAxisDistance();
AddXYAxisDistance
XY축 거리 측정
Example
//XY축 거리 측정
vizcore.Review.Measure.AddXYAxisDistance();
AddYAxisDistance
Y축 거리 측정
Example
//Y축 거리 측정
vizcore.Review.Measure.AddYAxisDistance();
AddYZAxisDistance
YZ축 거리 측정
Example
//YZ축 거리 측정
vizcore.Review.Measure.AddYZAxisDistance();
AddZAxisDistance
Z축 거리 측정
Example
//Z축 거리 측정
vizcore.Review.Measure.AddZAxisDistance();
AddZXAxisDistance
ZX축 거리 측정
Example
//ZX축 거리 측정
vizcore.Review.Measure.AddZXAxisDistance();
DeleteAll
측정 전체 삭제
Example
//측정 전체 삭제
vizcore.Review.Measure.DeleteAll();
//[To Do] 화면 다시그리기 호출
vizcore.Render();
GetNodeCenterNearsetSurfacePos
지정한 노드 중심의 가장 가까운 좌표에서 선택 정보 반환
Example
let ids = [];
ids.push(100);
ids.push(200);
ids.push(300);
*
// item.result = 선택 여부 결과 (true = 성공, false = 실패)
// item.position = 좌표
// item.normal = 노말
const item = vizcore.Review.Measure.GetNodeCenterNearsetSurfacePos(ids);
Parameters
Name | Type | Description |
---|---|---|
nodeIds |
| Node Object ID Array |
Returns
Type | Description |
---|---|
| result = 선택 여부 결과 (true = 성공, false = 실패) position = 좌표 normal = 노말 |
Last modified: 08 October 2024