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

Function ply_grow_property

src/IO/rply.c:1157–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155}
1156
1157static p_ply_property ply_grow_property(p_ply ply, p_ply_element element) {
1158 p_ply_property property = NULL;
1159 assert(ply);
1160 assert(element);
1161 assert(element->property || element->nproperties == 0);
1162 assert(!element->property || element->nproperties > 0);
1163 property = (p_ply_property) ply_grow_array(ply,
1164 (void **) &element->property,
1165 &element->nproperties, sizeof(t_ply_property));
1166 if (!property) return NULL;
1167 ply_property_init(property);
1168 return property;
1169}
1170
1171static int ply_read_header_format(p_ply ply) {
1172 assert(ply && ply->fp && ply->io_mode == PLY_READ);

Callers 3

ply_add_scalar_propertyFunction · 0.85
ply_add_list_propertyFunction · 0.85
ply_read_header_propertyFunction · 0.85

Calls 2

ply_grow_arrayFunction · 0.85
ply_property_initFunction · 0.85

Tested by

no test coverage detected