MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / create_box_vector

Function create_box_vector

tests/geometry/test-aabb.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template < geode::index_t dimension >
52std::vector< geode::BoundingBox< dimension > > create_box_vector(
53 geode::index_t nb_box_range, double box_size )
54{
55 std::vector< geode::BoundingBox< dimension > > box_vector(
56 nb_box_range * nb_box_range );
57 for( const auto i : geode::Range{ nb_box_range } )
58 {
59 for( const auto j : geode::Range{ nb_box_range } )
60 {
61 geode::Point< dimension > point;
62 point.set_value( 0, i );
63 point.set_value( 1, j );
64 box_vector[nb_box_range * i + j] =
65 create_bounding_box( point, box_size );
66 }
67 }
68 return box_vector;
69}
70
71geode::index_t global_box_index(
72 geode::index_t i, geode::index_t j, geode::index_t size )

Callers

nothing calls this directly

Calls 2

create_bounding_boxFunction · 0.85
set_valueMethod · 0.45

Tested by

no test coverage detected