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

Method init

tests/tools/Envelope/GridTest.h:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16 template<int DIM, typename T>
17 Grid<DIM, T> init() {
18 typedef typename Grid<DIM, T>::Vector_i Vector_i;
19 typedef typename Grid<DIM, T>::Vector_f Vector_f;
20 Grid<DIM, T> grid(0.5);
21 Vector_i size = Vector_i::Ones() * 2;
22 Vector_f base_coord = Vector_f::Zero();
23 grid.initialize(size, base_coord);
24
25 return grid;
26 }
27};
28
29TEST_F(GridTest, 2D) {

Callers 1

TEST_FFunction · 0.45

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected