Blender V4.3
editmesh_bisect.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_editmesh.hh"
#include "BKE_global.hh"
#include "BKE_layer.hh"
#include "BKE_report.hh"
#include "BKE_workspace.hh"
#include "BLI_math_geom.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_gizmo_utils.hh"
#include "ED_mesh.hh"
#include "ED_screen.hh"
#include "ED_view3d.hh"
#include "UI_resources.hh"
#include "mesh_intern.hh"
#include "ED_gizmo_library.hh"
#include "ED_undo.hh"

Go to the source code of this file.

Classes

struct  BisectData
 
struct  BisectData::BisectDataBackup
 
struct  GizmoGroup
 

Macros

#define USE_GIZMO
 

Functions

static int mesh_bisect_exec (bContext *C, wmOperator *op)
 
static void mesh_bisect_interactive_calc (bContext *C, wmOperator *op, float plane_co[3], float plane_no[3])
 
static int mesh_bisect_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static void edbm_bisect_exit (BisectData *opdata)
 
static int mesh_bisect_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
void MESH_OT_bisect (wmOperatorType *ot)
 
Bisect Gizmo
static void MESH_GGT_bisect (wmGizmoGroupType *gzgt)
 
static void gizmo_bisect_exec (GizmoGroup *ggd)
 
static void gizmo_mesh_bisect_update_from_op (GizmoGroup *ggd)
 
static void gizmo_bisect_prop_depth_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
 
static void gizmo_bisect_prop_depth_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
 
static void gizmo_bisect_prop_translate_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
 
static void gizmo_bisect_prop_translate_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
 
static void gizmo_bisect_prop_angle_get (const wmGizmo *gz, wmGizmoProperty *gz_prop, void *value_p)
 
static void gizmo_bisect_prop_angle_set (const wmGizmo *gz, wmGizmoProperty *gz_prop, const void *value_p)
 
static bool gizmo_mesh_bisect_poll (const bContext *C, wmGizmoGroupType *gzgt)
 
static void gizmo_mesh_bisect_setup (const bContext *C, wmGizmoGroup *gzgroup)
 
static void gizmo_mesh_bisect_draw_prepare (const bContext *, wmGizmoGroup *gzgroup)
 

Macro Definition Documentation

◆ USE_GIZMO

#define USE_GIZMO

Definition at line 42 of file editmesh_bisect.cc.

Function Documentation

◆ edbm_bisect_exit()

◆ gizmo_bisect_exec()

static void gizmo_bisect_exec ( GizmoGroup * ggd)
static

XXX. calling redo from property updates is not great. This is needed because changing the RNA doesn't cause a redo and we're not using operator UI which does just this.

Definition at line 499 of file editmesh_bisect.cc.

References GizmoGroup::context, GizmoGroup::data, ED_undo_operator_repeat(), GizmoGroup::op, and WM_operator_last_redo().

Referenced by gizmo_bisect_prop_angle_set(), gizmo_bisect_prop_depth_set(), and gizmo_bisect_prop_translate_set().

◆ gizmo_bisect_prop_angle_get()

◆ gizmo_bisect_prop_angle_set()

◆ gizmo_bisect_prop_depth_get()

◆ gizmo_bisect_prop_depth_set()

◆ gizmo_bisect_prop_translate_get()

◆ gizmo_bisect_prop_translate_set()

◆ gizmo_mesh_bisect_draw_prepare()

static void gizmo_mesh_bisect_draw_prepare ( const bContext * ,
wmGizmoGroup * gzgroup )
static

◆ gizmo_mesh_bisect_poll()

static bool gizmo_mesh_bisect_poll ( const bContext * C,
wmGizmoGroupType * gzgt )
static

Definition at line 674 of file editmesh_bisect.cc.

References ED_gizmo_poll_or_unlink_delayed_from_operator().

Referenced by MESH_GGT_bisect().

◆ gizmo_mesh_bisect_setup()

◆ gizmo_mesh_bisect_update_from_op()

◆ mesh_bisect_exec()

◆ mesh_bisect_interactive_calc()

◆ mesh_bisect_invoke()

◆ mesh_bisect_modal()

◆ MESH_GGT_bisect()

◆ MESH_OT_bisect()