Blender V5.0
sculpt_gesture.cc File Reference
#include "sculpt_gesture.hh"
#include "MEM_guardedalloc.h"
#include "DNA_vec_types.h"
#include "BLI_bitmap_draw_2d.h"
#include "BLI_lasso_2d.hh"
#include "BLI_math_geom.h"
#include "BLI_math_matrix.h"
#include "BLI_math_matrix.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_rect.h"
#include "BKE_context.hh"
#include "BKE_paint.hh"
#include "ED_view3d.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "paint_intern.hh"
#include "sculpt_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::sculpt_paint
namespace  blender::ed::sculpt_paint::gesture

Functions

void blender::ed::sculpt_paint::gesture::operator_properties (wmOperatorType *ot, ShapeType shapeType)
static void blender::ed::sculpt_paint::gesture::init_common (bContext *C, const wmOperator *op, GestureData &gesture_data)
static void blender::ed::sculpt_paint::gesture::lasso_px_cb (const int x, const int x_end, const int y, void *user_data)
std::unique_ptr< GestureDatablender::ed::sculpt_paint::gesture::init_from_polyline (bContext *C, wmOperator *op)
std::unique_ptr< GestureDatablender::ed::sculpt_paint::gesture::init_from_lasso (bContext *C, wmOperator *op)
std::unique_ptr< GestureDatablender::ed::sculpt_paint::gesture::init_from_box (bContext *C, wmOperator *op)
static void blender::ed::sculpt_paint::gesture::line_plane_from_tri (float *r_plane, const GestureData &gesture_data, const bool flip, const float3 &p1, const float3 &p2, const float3 &p3)
static void blender::ed::sculpt_paint::gesture::line_calculate_plane_points (const GestureData &gesture_data, const Span< float2 > line_points, std::array< float3, 4 > &r_plane_points, std::array< float3, 2 > &r_offset_plane_points)
std::unique_ptr< GestureDatablender::ed::sculpt_paint::gesture::init_from_line (bContext *C, const wmOperator *op)
static void blender::ed::sculpt_paint::gesture::flip_plane (float out[4], const float in[4], const char symm)
static void blender::ed::sculpt_paint::gesture::flip_for_symmetry_pass (GestureData &gesture_data, const ePaintSymmetryFlags symmpass)
static void blender::ed::sculpt_paint::gesture::update_affected_nodes_by_line_plane (GestureData &gesture_data)
static void blender::ed::sculpt_paint::gesture::update_affected_nodes_by_clip_planes (GestureData &gesture_data)
static void blender::ed::sculpt_paint::gesture::update_affected_nodes (GestureData &gesture_data)
static bool blender::ed::sculpt_paint::gesture::is_affected_lasso (const GestureData &gesture_data, const float3 &position)
bool blender::ed::sculpt_paint::gesture::is_affected (const GestureData &gesture_data, const float3 &position, const float3 &normal)
void blender::ed::sculpt_paint::gesture::filter_factors (const GestureData &gesture_data, const Span< float3 > positions, const Span< float3 > normals, const MutableSpan< float > factors)
void blender::ed::sculpt_paint::gesture::apply (bContext &C, GestureData &gesture_data, wmOperator &op)

Detailed Description

Common helper methods and structures for gesture operations.

Definition in file sculpt_gesture.cc.