@@ -170,10 +170,10 @@ class PLYMesh final : public Mesh<Float, Spectrum> {
170
170
m_name = file_path.filename ().string ();
171
171
172
172
auto fail = [&](const char *descr) {
173
- Throw (" Error while loading PLY file \" %s\" : %s!" , m_name , descr);
173
+ Throw (" Error while loading PLY file \" %s\" : %s!" , file_path. string () , descr);
174
174
};
175
175
176
- Log (Debug, " Loading mesh from \" %s\" .." , m_name );
176
+ Log (Debug, " Loading mesh from \" %s\" .." , file_path. string () );
177
177
if (!fs::exists (file_path))
178
178
fail (" file not found" );
179
179
@@ -189,7 +189,7 @@ class PLYMesh final : public Mesh<Float, Spectrum> {
189
189
Log (Warn,
190
190
" \" %s\" : performance warning -- this file uses the ASCII PLY format, which "
191
191
" is slow to parse. Consider converting it to the binary PLY format." ,
192
- m_name );
192
+ file_path. string () );
193
193
stream = parse_ascii ((FileStream *) stream.get (), header.elements );
194
194
}
195
195
} catch (const std::exception &e) {
@@ -417,7 +417,7 @@ class PLYMesh final : public Mesh<Float, Spectrum> {
417
417
418
418
m_faces = dr::load<DynamicBuffer<UInt32 >>(faces.get (), m_face_count * 3 );
419
419
} else {
420
- Log (Warn, " \" %s\" : skipping unknown element \" %s\" " , m_name , el.name );
420
+ Log (Warn, " \" %s\" : skipping unknown element \" %s\" " , file_path. string () , el.name );
421
421
stream->seek (stream->tell () + el.struct_ ->size () * el.count );
422
422
}
423
423
}
@@ -426,7 +426,7 @@ class PLYMesh final : public Mesh<Float, Spectrum> {
426
426
fail (" invalid file -- trailing content" );
427
427
428
428
Log (Debug, " \" %s\" : read %i faces, %i vertices (%s in %s)" ,
429
- m_name , m_face_count, m_vertex_count,
429
+ file_path. string () , m_face_count, m_vertex_count,
430
430
util::mem_string (m_face_count * face_struct->size () +
431
431
m_vertex_count * vertex_struct->size ()),
432
432
util::time_string ((float ) timer.value ())
@@ -435,7 +435,7 @@ class PLYMesh final : public Mesh<Float, Spectrum> {
435
435
if (!m_face_normals && !has_vertex_normals) {
436
436
Timer timer2;
437
437
recompute_vertex_normals ();
438
- Log (Debug, " \" %s\" : computed vertex normals (took %s)" , m_name ,
438
+ Log (Debug, " \" %s\" : computed vertex normals (took %s)" , file_path. string () ,
439
439
util::time_string ((float ) timer2.value ()));
440
440
}
441
441
0 commit comments