public class ObjMeshLoader extends Object implements MeshProvider
Read data is considered to be in km.
This readers reads only "vertex" lines (starting with 'v' character) and "facet" lines (starting with 'f' character)
Constructor and Description |
---|
ObjMeshLoader(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.
|
public ObjMeshLoader(String modelFileName) throws PatriusException
modelFileName
- mesh model .obj file namePatriusException
- thrown if loading failedpublic Triangle[] getTriangles()
getTriangles
in interface MeshProvider
public Map<Integer,Vertex> getVertices()
getVertices
in interface MeshProvider
Copyright © 2021 CNES. All rights reserved.