Wildmeshing Toolkit
primitive_range.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <wmtk/Primitive.hpp>
5 namespace wmtk::utils {
6 // returns a vector of primitives including the endpoints of the range
7 std::vector<PrimitiveType> primitive_range(PrimitiveType pt0, PrimitiveType pt1);
8 // returns a vector of primitives including the endpoint
9 std::vector<PrimitiveType> primitive_above(PrimitiveType pt0, bool lower_to_upper = true);
10 // returns a vector of primitives including the endpoint
11 std::vector<PrimitiveType> primitive_below(PrimitiveType pt1, bool lower_to_upper = false);
12 } // namespace wmtk::utils
std::vector< PrimitiveType > primitive_above(PrimitiveType pt, bool lower_to_upper)
std::vector< PrimitiveType > primitive_range(PrimitiveType pt0, PrimitiveType pt1)
std::vector< PrimitiveType > primitive_below(PrimitiveType pt, bool lower_to_upper)