例子演示创建一个3D模型,需要有一个模型文件。
private void createModel() {
UI.runOnRenderThread(new Runnable() {
@Override
public void run() {
IPosition iPosition = ISGWorld.getInstance().getCreator().CreatePosition(113.23977099415836, 22.794105965492012, 0, 0 /* AltitudeTypeCode.ATC_TERRAIN_RELATIVE*/, 0, 0, 0, 200);
ITerrainModel model = ISGWorld.getInstance().getCreator().CreateModel(iPosition, "模型文件的路径", 1, 0, "", "modelName");
// model.getVisibility().setShow(true);
ISGWorld.getInstance().getNavigate().FlyTo(iPosition);
}
});
}