|
@@ -51,9 +51,9 @@ IGL_INLINE bool igl::readOFF(
|
|
// Read vertices
|
|
// Read vertices
|
|
for(int i = 0;i<number_of_vertices;)
|
|
for(int i = 0;i<number_of_vertices;)
|
|
{
|
|
{
|
|
- float x,y,z,nx,ny,nz;
|
|
|
|
- if((has_normals && fscanf(off_file, "%g %g %g %g %g %g\n",&x,&y,&z,&nx,&ny,&nz)==6) ||
|
|
|
|
- (!has_normals && fscanf(off_file, "%g %g %g\n",&x,&y,&z)==3))
|
|
|
|
|
|
+ double x,y,z,nx,ny,nz;
|
|
|
|
+ if((has_normals && fscanf(off_file, "%lg %lg %lg %lg %lg %lg\n",&x,&y,&z,&nx,&ny,&nz)==6) ||
|
|
|
|
+ (!has_normals && fscanf(off_file, "%lg %lg %lg\n",&x,&y,&z)==3))
|
|
{
|
|
{
|
|
std::vector<Scalar > vertex;
|
|
std::vector<Scalar > vertex;
|
|
vertex.resize(3);
|
|
vertex.resize(3);
|
|
@@ -158,10 +158,10 @@ IGL_INLINE bool igl::readOFF(
|
|
|
|
|
|
template <typename DerivedV, typename DerivedF>
|
|
template <typename DerivedV, typename DerivedF>
|
|
IGL_INLINE bool igl::readOFF(
|
|
IGL_INLINE bool igl::readOFF(
|
|
- const std::string str,
|
|
|
|
- Eigen::PlainObjectBase<DerivedV>& V,
|
|
|
|
- Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
|
- Eigen::PlainObjectBase<DerivedV>& N)
|
|
|
|
|
|
+ const std::string str,
|
|
|
|
+ Eigen::PlainObjectBase<DerivedV>& V,
|
|
|
|
+ Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
|
+ Eigen::PlainObjectBase<DerivedV>& N)
|
|
{
|
|
{
|
|
std::vector<std::vector<double> > vV;
|
|
std::vector<std::vector<double> > vV;
|
|
std::vector<std::vector<double> > vN;
|
|
std::vector<std::vector<double> > vN;
|