public class GeodeticMeshLoader extends Object implements MeshProvider
The file format is column text file following format for each line: [latitude (deg) longitude (deg) altitude (m)].
Example:
-90.0000 0.0000 8.3726
-90.0000 2.0000 8.3726
-90.0000 4.0000 8.3726
...
Constructor and Description |
---|
GeodeticMeshLoader(String modelFileName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Triangle[] |
getTriangles()
Returns the list of triangles of the mesh.
|
Map<Integer,Vertex> |
getVertices()
Returns the list of vertices of the mesh.
|
void |
toObjFile(String fileName)
Convert file to .obj file format.
|
public GeodeticMeshLoader(String modelFileName) throws PatriusException
modelFileName
- mesh model .tab file namePatriusException
- thrown if loading failedpublic Triangle[] getTriangles()
getTriangles
in interface MeshProvider
public void toObjFile(String fileName) throws PatriusException
fileName
- output file namePatriusException
- thrown if writing failedpublic Map<Integer,Vertex> getVertices()
getVertices
in interface MeshProvider
Copyright © 2021 CNES. All rights reserved.