Blender V4.3
mesh_remesh_voxel.cc File Reference
#include <cctype>
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include "MEM_guardedalloc.h"
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_index_range.hh"
#include "BLI_math_vector.h"
#include "BLI_span.hh"
#include "BLI_task.hh"
#include "BKE_attribute.hh"
#include "BKE_attribute_math.hh"
#include "BKE_bvhutils.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_lib_id.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_mapping.hh"
#include "BKE_mesh_remesh_voxel.hh"
#include "BKE_mesh_runtime.hh"
#include "BKE_mesh_sample.hh"
#include "bmesh_tools.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::bke
 

Functions

MeshBKE_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)
 
MeshBKE_mesh_remesh_voxel (const Mesh *mesh, const float voxel_size, const float adaptivity, const float isovalue)
 
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, BVHTreeFromMesh &bvhtree, MutableSpan< int > tris)
 
static void blender::bke::find_nearest_tris_parallel (const Span< float3 > positions, BVHTreeFromMesh &bvhtree, MutableSpan< int > tris)
 
static void blender::bke::find_nearest_verts (const Span< float3 > positions, const Span< int > corner_verts, const Span< int3 > src_corner_tris, const Span< float3 > dst_positions, const Span< int > nearest_vert_tris, MutableSpan< int > nearest_verts)
 
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, BVHTreeFromMesh &bvhtree, MutableSpan< int > nearest_faces)
 
static void blender::bke::find_nearest_corners (const Span< float3 > src_positions, const OffsetIndices< int > src_faces, const Span< int > src_corner_verts, const Span< int > src_tri_faces, const Span< float3 > dst_positions, const Span< int > dst_corner_verts, const Span< int > nearest_vert_tris, MutableSpan< int > nearest_corners)
 
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, BVHTreeFromMesh &bvhtree, MutableSpan< int > nearest_edges)
 
static void blender::bke::gather_attributes (const Span< StringRef > ids, const AttributeAccessor src_attributes, const AttrDomain domain, const Span< int > index_map, MutableAttributeAccessor dst_attributes)
 
void blender::bke::mesh_remesh_reproject_attributes (const Mesh &src, Mesh &dst)
 
MeshBKE_mesh_remesh_voxel_fix_poles (const Mesh *mesh)
 

Function Documentation

◆ BKE_mesh_remesh_quadriflow()

Mesh * 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 )

Definition at line 138 of file mesh_remesh_voxel.cc.

References seed, and UNUSED_VARS.

Referenced by blender::ed::object::quadriflow_start_job().

◆ BKE_mesh_remesh_voxel()

Mesh * BKE_mesh_remesh_voxel ( const Mesh * mesh,
const float voxel_size,
const float adaptivity,
const float isovalue )

◆ BKE_mesh_remesh_voxel_fix_poles()