|
XscModelLoad Method
|
파일에서 모델을 로딩한다. FilePath만 설정하는 경우에는 Model이 Rendering하는 시점에 모델파일을 로딩한다.
모델 파일 로딩을 쓰레드로 처리하는 등에 활용할 수 있다.
Namespace:
Pixoneer.NXDL.NSCENE
Assembly:
NXDLscene (in NXDLscene.dll) Version: 2.0.3.31
Syntax public bool Load(
string filePath,
bool transToCenter
)
Parameters
- filePath
- Type: SystemString
모델 파일 경로 - transToCenter
- Type: SystemBoolean
true인 경우 모델의 중심좌표를 기준으로 모든 정점의 좌표를 조정(이동). false인 경우 원본 정점 좌표값을 그대로 이용
정점 좌표값이 큰 경우(예: TM, UTM 등 단위가 큰 지리참조좌표값 등) 모델 텍스처 렌더링 떨림 증상을 완화하려면 사용 권장
Return Value
Type:
Boolean파일에서 모델 로딩을 완료하면 true를, 그렇지 않으면 false를 반환한다.
See Also