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

Function ply_grow_element

src/IO/rply.c:1145–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145static p_ply_element ply_grow_element(p_ply ply) {
1146 p_ply_element element = NULL;
1147 assert(ply);
1148 assert(ply->element || ply->nelements == 0);
1149 assert(!ply->element || ply->nelements > 0);
1150 element = (p_ply_element) ply_grow_array(ply, (void **) &ply->element,
1151 &ply->nelements, sizeof(t_ply_element));
1152 if (!element) return NULL;
1153 ply_element_init(element);
1154 return element;
1155}
1156
1157static p_ply_property ply_grow_property(p_ply ply, p_ply_element element) {
1158 p_ply_property property = NULL;

Callers 2

ply_add_elementFunction · 0.85
ply_read_header_elementFunction · 0.85

Calls 2

ply_grow_arrayFunction · 0.85
ply_element_initFunction · 0.85

Tested by

no test coverage detected