Blender V4.3
object_remesh.cc File Reference
#include <cctype>
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_math_matrix.h"
#include "BLI_string_utf8.h"
#include "BLI_utildefines.h"
#include "DNA_object_types.h"
#include "DNA_userdef_types.h"
#include "BLT_translation.hh"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_mirror.hh"
#include "BKE_mesh_remesh_voxel.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "BKE_shrinkwrap.hh"
#include "BKE_unit.hh"
#include "DEG_depsgraph.hh"
#include "ED_screen.hh"
#include "ED_sculpt.hh"
#include "ED_space_api.hh"
#include "ED_view3d.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "GPU_immediate.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_interface.hh"
#include "BLF_api.hh"
#include "object_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ed::object::VoxelSizeEditCustomData
 
struct  blender::ed::object::QuadriFlowJob
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::object
 

Functions

Voxel Remesh Operator
static bool blender::ed::object::object_remesh_poll (bContext *C)
 
static int blender::ed::object::voxel_remesh_exec (bContext *C, wmOperator *op)
 
void blender::ed::object::OBJECT_OT_voxel_remesh (wmOperatorType *ot)
 

Voxel Size Operator

#define VOXEL_SIZE_EDIT_MAX_GRIDS_LINES   500
 
#define VOXEL_SIZE_EDIT_MAX_STR_LEN   20
 
static void blender::ed::object::voxel_size_parallel_lines_draw (uint pos3d, const float initial_co[3], const float end_co[3], const float length_co[3], const float spacing)
 
static void blender::ed::object::voxel_size_edit_draw (const bContext *C, ARegion *, void *arg)
 
static void blender::ed::object::voxel_size_edit_cancel (bContext *C, wmOperator *op)
 
static void blender::ed::object::voxel_size_edit_update_header (wmOperator *op, bContext *C)
 
static int blender::ed::object::voxel_size_edit_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int blender::ed::object::voxel_size_edit_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static bool blender::ed::object::voxel_size_edit_poll (bContext *C)
 
void blender::ed::object::OBJECT_OT_voxel_size_edit (wmOperatorType *ot)
 

Quadriflow Remesh Operator

#define QUADRIFLOW_MIRROR_BISECT_TOLERANCE   0.005f
 
enum  { blender::ed::object::QUADRIFLOW_REMESH_RATIO = 1 , blender::ed::object::QUADRIFLOW_REMESH_EDGE_LENGTH , blender::ed::object::QUADRIFLOW_REMESH_FACES }
 
enum  blender::ed::object::eSymmetryAxes { blender::ed::object::SYMMETRY_AXES_X = (1 << 0) , blender::ed::object::SYMMETRY_AXES_Y = (1 << 1) , blender::ed::object::SYMMETRY_AXES_Z = (1 << 2) }
 
static const EnumPropertyItem blender::ed::object::mode_type_items []
 
static bool blender::ed::object::mesh_is_manifold_consistent (Mesh *mesh)
 
static void blender::ed::object::quadriflow_free_job (void *customdata)
 
static int blender::ed::object::quadriflow_break_job (void *customdata)
 
static void blender::ed::object::quadriflow_update_job (void *customdata, float progress, int *cancel)
 
static Meshblender::ed::object::remesh_symmetry_bisect (Mesh *mesh, eSymmetryAxes symmetry_axes)
 
static Meshblender::ed::object::remesh_symmetry_mirror (Object *ob, Mesh *mesh, eSymmetryAxes symmetry_axes)
 
static void blender::ed::object::quadriflow_start_job (void *customdata, wmJobWorkerStatus *worker_status)
 
static void blender::ed::object::quadriflow_end_job (void *customdata)
 
static int blender::ed::object::quadriflow_remesh_exec (bContext *C, wmOperator *op)
 
static bool blender::ed::object::quadriflow_check (bContext *C, wmOperator *op)
 
static bool blender::ed::object::quadriflow_poll_property (const bContext *C, wmOperator *op, const PropertyRNA *prop)
 
static int blender::ed::object::quadriflow_remesh_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::object::OBJECT_OT_quadriflow_remesh (wmOperatorType *ot)
 

Macro Definition Documentation

◆ QUADRIFLOW_MIRROR_BISECT_TOLERANCE

#define QUADRIFLOW_MIRROR_BISECT_TOLERANCE   0.005f

◆ VOXEL_SIZE_EDIT_MAX_GRIDS_LINES

◆ VOXEL_SIZE_EDIT_MAX_STR_LEN

#define VOXEL_SIZE_EDIT_MAX_STR_LEN   20

Definition at line 197 of file object_remesh.cc.

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