Blender  V3.3
BKE_mesh_remesh_voxel.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
4 #pragma once
5 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Mesh;
15 
17 struct Mesh *BKE_mesh_remesh_voxel(const struct Mesh *mesh,
18  float voxel_size,
19  float adaptivity,
20  float isovalue);
21 struct Mesh *BKE_mesh_remesh_quadriflow(const struct Mesh *mesh,
22  int target_faces,
23  int seed,
24  bool preserve_sharp,
25  bool preserve_boundary,
26  bool adaptive_scale,
27  void (*update_cb)(void *, float progress, int *cancel),
28  void *update_cb_data);
29 
30 /* Data reprojection functions */
31 void BKE_mesh_remesh_reproject_paint_mask(struct Mesh *target, struct Mesh *source);
32 void BKE_remesh_reproject_vertex_paint(struct Mesh *target, const struct Mesh *source);
33 void BKE_remesh_reproject_sculpt_face_sets(struct Mesh *target, struct Mesh *source);
34 
35 #ifdef __cplusplus
36 }
37 #endif
void BKE_mesh_remesh_reproject_paint_mask(struct Mesh *target, struct Mesh *source)
struct Mesh * BKE_mesh_remesh_voxel(const struct Mesh *mesh, float voxel_size, float adaptivity, float isovalue)
struct Mesh * BKE_mesh_remesh_quadriflow(const struct 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)
void BKE_remesh_reproject_sculpt_face_sets(struct Mesh *target, struct Mesh *source)
struct Mesh * BKE_mesh_remesh_voxel_fix_poles(const struct Mesh *mesh)
void BKE_remesh_reproject_vertex_paint(struct Mesh *target, const struct Mesh *source)
static unsigned long seed
Definition: btSoftBody.h:39
static void update_cb(PBVHNode *node, void *rebuild)
Definition: sculpt_undo.c:133