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

Function ply_set_read_cb

src/IO/rply.c:413–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413long ply_set_read_cb(p_ply ply, const char *element_name,
414 const char* property_name, p_ply_read_cb read_cb,
415 void *pdata, long idata) {
416 p_ply_element element = NULL;
417 p_ply_property property = NULL;
418 assert(ply && element_name && property_name);
419 element = ply_find_element(ply, element_name);
420 if (!element) return 0;
421 property = ply_find_property(element, property_name);
422 if (!property) return 0;
423 property->read_cb = read_cb;
424 property->pdata = pdata;
425 property->idata = idata;
426 return (int) element->ninstances;
427}
428
429int ply_read(p_ply ply) {
430 long i;

Callers 1

parse_plyFunction · 0.85

Calls 2

ply_find_elementFunction · 0.85
ply_find_propertyFunction · 0.85

Tested by

no test coverage detected