MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / ply_read

Function ply_read

src/IO/rply.c:429–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429int ply_read(p_ply ply) {
430 long i;
431 p_ply_argument argument;
432 assert(ply && ply->fp && ply->io_mode == PLY_READ);
433 argument = &ply->argument;
434 /* for each element type */
435 for (i = 0; i < ply->nelements; i++) {
436 p_ply_element element = &ply->element[i];
437 argument->element = element;
438 if (!ply_read_element(ply, element, argument))
439 return 0;
440 }
441 return 1;
442}
443
444/* ----------------------------------------------------------------------
445 * Write support functions

Callers 1

parse_plyFunction · 0.85

Calls 1

ply_read_elementFunction · 0.85

Tested by

no test coverage detected