Blender V5.3
mesh_remesh_voxel.cc File Reference
#include <cctype>
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_index_range.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_span.hh"
#include "BLI_task.hh"
#include "BKE_attribute.h"
#include "BKE_attribute.hh"
#include "BKE_attribute_math.hh"
#include "BKE_bvhutils.hh"
#include "BKE_deform.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_remesh_voxel.hh"
#include "BKE_mesh_sample.hh"
#include "BKE_modifier.hh"
#include "BKE_report.hh"
#include "bmesh.hh"
#include "bmesh_tools.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Functions

Mesh * blender::BKE_mesh_remesh_quadriflow (const Mesh *mesh, int target_faces, int seed, bool preserve_sharp, bool preserve_boundary, bool adaptive_scale, void(*update_cb)(void *, float progress, int *cancel), void *update_cb_data)
Mesh * blender::BKE_mesh_remesh_voxel (const Mesh *mesh, float voxel_size, float adaptivity, float isovalue, const Object *object, ModifierData *modifier_data)
Mesh * blender::BKE_mesh_remesh_voxel (const Mesh *mesh, float voxel_size, float adaptivity, float isovalue, ReportList *reports)
static void blender::bke::calc_edge_centers (const Span< float3 > positions, const Span< int2 > edges, MutableSpan< float3 > edge_centers)
static void blender::bke::calc_face_centers (const Span< float3 > positions, const OffsetIndices< int > faces, const Span< int > corner_verts, MutableSpan< float3 > face_centers)
static void blender::bke::find_nearest_tris (const Span< float3 > positions, const bvh::Tree &bvhtree, MutableSpan< int > tris, MutableSpan< float3 > bary_coords)
static void blender::bke::find_nearest_tris_parallel (const Span< float3 > positions, const bvh::Tree &bvhtree, MutableSpan< int > tris, MutableSpan< float3 > bary_coords)
static void blender::bke::find_nearest_faces (const Span< int > src_tri_faces, const Span< float3 > dst_positions, const OffsetIndices< int > dst_faces, const Span< int > dst_corner_verts, const bvh::Tree &bvhtree, MutableSpan< int > nearest_faces)
static void blender::bke::find_nearest_edges (const Span< float3 > src_positions, const Span< int2 > src_edges, const OffsetIndices< int > src_faces, const Span< int > src_corner_edges, const Span< int > src_tri_faces, const Span< float3 > dst_positions, const Span< int2 > dst_edges, const bvh::Tree &bvhtree, MutableSpan< int > nearest_edges)
static void blender::bke::gather_attributes (const Span< StringRef > names, const AttributeAccessor src_attributes, const AttrDomain domain, const Span< int > index_map, MutableAttributeAccessor dst_attributes)
static void blender::bke::sample_vertex_attributes (const Span< StringRef > names, Span< int > corner_verts, Span< int3 > corner_tris, Span< int > tri_indices, Span< float3 > bary_coords, const AttributeAccessor src_attributes, MutableAttributeAccessor dst_attributes)
static void blender::bke::sample_corner_attributes (const Span< StringRef > names, Span< int3 > corner_tris, Span< int > tri_indices, Span< float3 > bary_coords, const AttributeAccessor src_attributes, MutableAttributeAccessor dst_attributes)
void blender::bke::mesh_remesh_reproject_attributes (const Mesh &src, Mesh &dst)
Mesh * blender::BKE_mesh_remesh_voxel_fix_poles (const Mesh *mesh)