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

Method belong_to_the_same_loop

tools/Wires/Inflator/SimpleInflator.cpp:381–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool SimpleInflator::belong_to_the_same_loop(
382 const VectorI& indices, const VectorI& source_ids) const {
383 const size_t size = indices.size();
384 assert(size > 0);
385 const int id = source_ids[indices[0]];
386 for (size_t i=1; i<size; i++) {
387 if (id != source_ids[indices[i]]) return false;
388 }
389 return true;
390}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected