24#include "testing/testing.h"
46 <<
"Paint BVH should have some non-zero amount of nodes";
84 <<
"Paint BVH should have some non-zero amount of nodes";
125 <<
"Paint BVH should have some non-zero amount of nodes";
A BVH for high poly meshes.
#define BMALLOC_TEMPLATE_FROM_ME(...)
static Tree from_bmesh(BMesh &bm)
Span< NodeT > nodes() const
static Tree from_grids(const Mesh &base_mesh, const SubdivCCG &subdiv_ccg)
static Tree from_mesh(const Mesh &mesh)
std::unique_ptr< SubdivCCG > subdiv_ccg
#define EXPECT_GT(result, expect)
@ SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER
bool eval_begin_from_mesh(Subdiv *subdiv, const Mesh *mesh, eSubdivEvaluatorType evaluator_type, Span< float3 > coarse_vert_positions={}, OpenSubdiv_EvaluatorCache *evaluator_cache=nullptr)
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES
Subdiv * new_from_mesh(const Settings *settings, const Mesh *mesh)
@ SUBDIV_EVALUATOR_TYPE_CPU
TEST_F(AnimDataTest, BKE_fcurves_id_cb_test)
void triangulate(BMesh *bm)
Mesh * create_cuboid_mesh(const float3 &size, int verts_x, int verts_y, int verts_z, std::optional< StringRef > uv_id)
void BM_mesh_free(BMesh *bm)
BMesh Free Mesh.
void BM_mesh_bm_from_me(BMesh *bm, const Mesh *mesh, const BMeshFromMeshParams *params)
Mesh -> BMesh.
void BKE_id_free(Main *bmain, void *idv)
void BM_data_layer_ensure_named(BMesh *bm, CustomData *data, int type, const StringRef name)
std::unique_ptr< SubdivCCG > BKE_subdiv_to_ccg(bke::subdiv::Subdiv &subdiv, const SubdivToCCGSettings &settings, const Mesh &coarse_mesh, SubdivCCGMaskEvaluator *mask_evaluator=nullptr)
VecBase< float, 3 > float3
BMesh * BM_mesh_create(const BMAllocTemplate *allocsize, const BMeshCreateParams *params)
BMesh Make Mesh.
VtxBoundaryInterpolation vtx_boundary_interpolation
FVarLinearInterpolation fvar_linear_interpolation