19#include "testing/testing.h"
54 boundary_info_cache.
verts,
55 boundary_info_cache.
edges,
64 ASSERT_EQ(
result.size(), 8);
66 for (
const int i :
result.index_range()) {
68 result[i].size(), [](
int *value) { *value = 1; }, [](
int *value) { (*value)++; });
70 for (
const int key : expected_counts.
keys()) {
94 boundary_info_cache.
verts,
95 boundary_info_cache.
edges,
104 ASSERT_EQ(
result.size(), 6);
106 for (
const int i :
result.index_range()) {
108 result[i].size(), [](
int *value) { *value = 1; }, [](
int *value) { (*value)++; });
110 for (
const int key : expected_counts.
keys()) {
MutableSpan< T > as_mutable_span()
Value lookup_default(const Key &key, const Value &default_value) const
KeyIterator keys() const &
auto add_or_modify(const Key &key, const CreateValueF &create_value, const ModifyValueF &modify_value) -> decltype(create_value(nullptr))
void fill_index_range(MutableSpan< T > span, const T start=0)
SculptBoundaryInfoCache create_boundary_info(const Mesh &mesh)
TEST_F(MeshBrushCommonTests, calc_vert_neighbors_interior__cube)
GroupedSpan< int > calc_vert_neighbors_interior(OffsetIndices< int > faces, Span< int > corner_verts, GroupedSpan< int > vert_to_face, BitSpan boundary_verts, const Set< OrderedEdge > &boundary_edges, Span< bool > hide_poly, Span< int > verts, Vector< int > &r_offset_data, Vector< int > &r_data)
Mesh * create_cuboid_mesh(const float3 &size, int verts_x, int verts_y, int verts_z, std::optional< StringRef > uv_id)
Mesh * create_grid_mesh(int verts_x, int verts_y, float size_x, float size_y, std::optional< StringRef > uv_map_id)
BMesh const char void * data
void BKE_id_free(Main *bmain, void *idv)
VecBase< float, 3 > float3