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

Method center_at_origin

tools/Wires/WireNetwork/WireNetwork.cpp:144–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void WireNetwork::center_at_origin() {
145 translate(-1 * center());
146}
147
148VectorF WireNetwork::center() const {
149 return 0.5 * (get_bbox_min() + get_bbox_max());

Callers 7

tileMethod · 0.45
normalize_unit_wireMethod · 0.45
TEST_FFunction · 0.45
run_min_angle_checkMethod · 0.45

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.36
run_min_angle_checkMethod · 0.36