Input3DData

3D 데이터 입력 기능 클래스. URL을 통해 객체 생성 후 뷰어 표출.
Function class for 3D data entry. Create an object via URL and display it in the viewer.

new Ditap.Input3DData(viewer, id)

Name Type Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
id DitapViewer 3D 데이터에 할당할 ID.
ID to assign to the 3D data.

Members

id : string

3D 데이터에 할당할 ID.
ID to assign to the 3D data.

position : Cartesian3

3D 데이터가 업로드 될 위치.
Where the 3D data will be uploaded.

type : string

업로드할 데이터 유형.
Type of upload data.

url : string

업로드 할 데이터 URL.
URL of the data to upload.

viewer : DitapViewer

사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.

Methods

async createModel(position)

특정 위치에 모델 생성.
Create a model in a specific location.
Name Type Description
position Cartesian3 모델을 생성할 좌표.
Cartesian3 to create a model.

async createTileset(callback)

Ditap Viewer에 타일셋 생성.
Create a tileset in the DitapViewer.
Name Type Description
callback function 타일셋 생성 후 실행할 함수.
After creating the tile set, execute the function.

destroy()

인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.