X3DModelDriverManagerConvert Method |
Namespace: Pixoneer.NXDL.NGR
public bool Convert( string strInputFileName, string strOutputFileName, ref XSpatialReference srIn, ref XSpatialReference srOut, out string strError )
X3DModelDriverManager manager = new X3DModelDriverManager(); string strError; manager.Initialize(out strError); // 변환대상 모델 string strInput = @"d:\sample\3dModel_geo.obj"; // 변환처리 결과 모델 string strOutput = @"d:\sample\3DModel_utm.3ds"; XSpatialReference srIn = new XSpatialReference(); XSpatialReference srOut = new XSpatialReference(); // 변환대상 모델 좌표계 (vertex 좌표) srIn.SetWellKnownGeogCS("WGS84"); // 변환처리 결과 모델 좌표계 (vertex 좌표) srOut.SetWellKnownGeogCS("WGS84"); srOut.SetUTM(52, true); bool result = manager.Convert(strInput, strOutput, ref srIn, ref srOut, out strError))