Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
144
void WireNetwork::center_at_origin() {
145
translate(-1 * center());
146
}
147
148
VectorF WireNetwork::center() const {
149
return 0.5 * (get_bbox_min() + get_bbox_max());
Callers
7
initialize_wire_network
Method · 0.45
tile
Method · 0.45
normalize_unit_wire
Method · 0.45
TEST_F
Function · 0.45
run_periodic_vertex_index_check
Method · 0.45
run_periodic_edge_index_check
Method · 0.45
run_min_angle_check
Method · 0.45
Calls
no outgoing calls
Tested by
4
TEST_F
Function · 0.36
run_periodic_vertex_index_check
Method · 0.36
run_periodic_edge_index_check
Method · 0.36
run_min_angle_check
Method · 0.36