Blender  V2.93
BKE_mesh_remesh_voxel.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2019 by Blender Foundation
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #ifdef WITH_OPENVDB
27 # include "openvdb_capi.h"
28 #endif
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 struct Mesh;
35 
36 /* OpenVDB Voxel Remesher */
37 #ifdef WITH_OPENVDB
38 struct OpenVDBLevelSet *BKE_mesh_remesh_voxel_ovdb_mesh_to_level_set_create(
39  struct Mesh *mesh, struct OpenVDBTransform *transform);
40 struct Mesh *BKE_mesh_remesh_voxel_ovdb_volume_to_mesh_nomain(struct OpenVDBLevelSet *level_set,
41  double isovalue,
42  double adaptivity,
43  bool relax_disoriented_triangles);
44 #endif
45 
48  float voxel_size,
49  float adaptivity,
50  float isovalue);
52  int target_faces,
53  int seed,
54  bool preserve_sharp,
55  bool preserve_boundary,
56  bool adaptive_scale,
57  void *update_cb,
58  void *update_cb_data);
59 
60 /* Data reprojection functions */
61 void BKE_mesh_remesh_reproject_paint_mask(struct Mesh *target, struct Mesh *source);
62 void BKE_remesh_reproject_vertex_paint(struct Mesh *target, struct Mesh *source);
63 void BKE_remesh_reproject_sculpt_face_sets(struct Mesh *target, struct Mesh *source);
64 
65 #ifdef __cplusplus
66 }
67 #endif
void BKE_mesh_remesh_reproject_paint_mask(struct Mesh *target, struct Mesh *source)
void BKE_remesh_reproject_vertex_paint(struct Mesh *target, struct Mesh *source)
struct Mesh * BKE_mesh_remesh_quadriflow_to_mesh_nomain(struct Mesh *mesh, int target_faces, int seed, bool preserve_sharp, bool preserve_boundary, bool adaptive_scale, void *update_cb, void *update_cb_data)
struct Mesh * BKE_mesh_remesh_voxel_to_mesh_nomain(struct Mesh *mesh, float voxel_size, float adaptivity, float isovalue)
struct Mesh * BKE_mesh_remesh_voxel_fix_poles(struct Mesh *mesh)
void BKE_remesh_reproject_sculpt_face_sets(struct Mesh *target, struct Mesh *source)
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
static unsigned long seed
Definition: btSoftBody.h:39
static void update_cb(PBVHNode *node, void *rebuild)
Definition: sculpt_undo.c:120