|
PolyFEM
|
#include <OBJReader.hpp>
Public Member Functions | |
| OBJReader ()=delete | |
Static Public Member Functions | |
| static bool | read (const std::string obj_file_name, std::vector< std::vector< double > > &V, std::vector< std::vector< double > > &TC, std::vector< std::vector< double > > &N, std::vector< std::vector< int > > &F, std::vector< std::vector< int > > &FTC, std::vector< std::vector< int > > &FN, std::vector< std::vector< int > > &L) |
| Read a mesh from an ascii obj file. | |
| static bool | read (FILE *obj_file, std::vector< std::vector< double > > &V, std::vector< std::vector< double > > &TC, std::vector< std::vector< double > > &N, std::vector< std::vector< int > > &F, std::vector< std::vector< int > > &FTC, std::vector< std::vector< int > > &FN, std::vector< std::vector< int > > &L) |
| Read a mesh from an already opened ascii obj file. | |
| static bool | read (const std::string obj_file_name, std::vector< std::vector< double > > &V, std::vector< std::vector< int > > &F, std::vector< std::vector< int > > &L) |
| Just read V, F, and L from obj file. | |
| static bool | read (const std::string str, Eigen::MatrixXd &V, Eigen::MatrixXi &E, Eigen::MatrixXi &F) |
| Eigen Wrappers of read_obj. | |
Definition at line 19 of file OBJReader.hpp.
|
delete |
|
static |
Read a mesh from an ascii obj file.
Fills in vertex positions, normals and texture coordinates. Mesh may have faces of any number of degree.
| [in] | obj_file_name | path to .obj file |
| [out] | V | double matrix of vertex positions |
| [out] | TC | double matrix of texture coordinates |
| [out] | N | double matrix of corner normals #N by 3 |
| [out] | F | F list of face indices into vertex positions |
| [out] | FTC | F list of face indices into vertex texture coordinates |
| [out] | FN | F list of face indices into vertex normals |
| [out] | L | list of polyline indices into vertex positions |
Definition at line 32 of file OBJReader.cpp.
References polyfem::F, polyfem::logger(), read(), and V.
Referenced by polyfem::solver::AdjointOptUtils::create_form(), read(), read(), read(), and polyfem::mesh::read_surface_mesh().
|
static |
Just read V, F, and L from obj file.
Definition at line 282 of file OBJReader.cpp.
References polyfem::F, read(), and V.
|
static |
Eigen Wrappers of read_obj.
@retruns These will return true only if the data is perfectly "rectangular": All faces are the same degree, all have the same number of textures/normals etc.
Definition at line 293 of file OBJReader.cpp.
References polyfem::F, polyfem::logger(), read(), and V.
|
static |
Read a mesh from an already opened ascii obj file.
| [in] | obj_file | pointer to already opened .obj file |
Definition at line 52 of file OBJReader.cpp.
References polyfem::F, polyfem::logger(), V, and x.