본문으로 건너뛰기

SetCorrectionOffset

public int SetCorrectionOffset(int id, int pointIndex, float value, Vector3D direction)

기준점 하나에 보정량 지정.

Remarks​

기존 성분을 모두 지우고 넘긴 값 하나로 교체함(누적 아님).
크기 0 을 넘기면 해당 기준점의 보정이 해제됨.
Root Gap 과 건조마진처럼 방향이 같은 값이 여러 개면 더해서 넘기면 되고,
항목을 따로 남기거나 방향이 서로 다르면 AddCorrectionTerm 로 하나씩 추가.

Parameters​

NameTypeDescription
idint대상 리뷰 아이디(ID)
pointIndexint보정을 적용할 기준점 번호.
거리 측정은 0 = 첫 번째 점, 1 = 두 번째 점 / 좌표 측정은 0 하나뿐
valuefloat보정 크기
directionVector3D보정 방향. 크기는 무시되고 방향만 사용됨

Returns​

TypeDescription
int지정한 성분 개수. 지정하지 못하면 -1

Examples​

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example(int id)
{
VIZCore3D.NET.Data.Vector3D dir = new VIZCore3D.NET.Data.Vector3D(0.0f, 1.0f, 0.0f);

// 거리 측정의 두 번째 점에 Root Gap 3mm + 건조마진 6mm = 9mm 지정
vizcore3d.Review.SetCorrectionOffset(id, 1, 9.0f, dir);

// 표면 노트라면 기준점이 하나이므로 0
//vizcore3d.Review.SetCorrectionOffset(noteId, 0, 9.0f, dir);
}