|
Blender V4.3
|
#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 | |
| 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) |
| Mesh * | BKE_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) |
| Mesh * | BKE_mesh_remesh_voxel_fix_poles (const Mesh *mesh) |
| 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().
| Mesh * BKE_mesh_remesh_voxel | ( | const Mesh * | mesh, |
| const float | voxel_size, | ||
| const float | adaptivity, | ||
| const float | isovalue ) |
Definition at line 253 of file mesh_remesh_voxel.cc.
References BKE_mesh_copy_parameters(), result, and UNUSED_VARS.
Referenced by blender::ed::object::voxel_remesh_exec().
Definition at line 595 of file mesh_remesh_voxel.cc.
References add_v3_v3(), BKE_mesh_from_bmesh_nomain(), bm, BM_CREATE_NOP, BM_EDGE, BM_edge_collapse(), BM_edge_create(), BM_edge_exists(), BM_edge_face_count(), BM_edge_other_vert(), BM_EDGES_OF_MESH, BM_EDGES_OF_VERT, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_TAG, BM_FACE, BM_face_kill(), BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_ITER_MESH_MUTABLE, BM_mesh_bm_from_me(), BM_mesh_create(), BM_mesh_delete_hflag_context(), BM_mesh_edgenet(), BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_hflag_enable_all(), BM_mesh_free(), BM_mesh_normals_update(), BM_VERT, BM_vert_edge_count(), BM_VERTS_OF_FACE, BM_VERTS_OF_MESH, BMALLOC_TEMPLATE_FROM_ME, BMO_FLAG_DEFAULTS, BMO_FLAG_RESPECT_HIDE, BMO_op_callf(), BMeshFromMeshParams::calc_face_normal, BMeshToMeshParams::calc_object_remap, BMVert::co, copy_v3_v3(), DEL_VERTS, e, mid_v3_v3v3(), mul_v3_fl(), result, BMeshCreateParams::use_toolflags, v, BMEdge::v1, BMEdge::v2, v2, and zero_v3().
Referenced by blender::ed::object::voxel_remesh_exec().