Blender V5.0
blender::bke::crazyspace Namespace Reference

Classes

struct  GeometryDeformation

Functions

GeometryDeformation get_evaluated_curves_deformation (const Object *ob_eval, const Object &ob_orig)
GeometryDeformation get_evaluated_curves_deformation (const Depsgraph &depsgraph, const Object &ob_orig)
GeometryDeformation get_evaluated_grease_pencil_drawing_deformation (const Object *ob_eval, const Object &ob_orig, const bke::greasepencil::Drawing &drawing_orig)
GeometryDeformation get_evaluated_grease_pencil_drawing_deformation (const Depsgraph &depsgraph, const Object &ob_orig, const bke::greasepencil::Drawing &drawing_orig)
static const GreasePencilDrawingEditHintsget_drawing_edit_hint_for_original_drawing (const GreasePencilEditHints *edit_hints, const bke::greasepencil::Drawing &drawing_orig)

Function Documentation

◆ get_drawing_edit_hint_for_original_drawing()

const GreasePencilDrawingEditHints * blender::bke::crazyspace::get_drawing_edit_hint_for_original_drawing ( const GreasePencilEditHints * edit_hints,
const bke::greasepencil::Drawing & drawing_orig )
static

◆ get_evaluated_curves_deformation() [1/2]

GeometryDeformation blender::bke::crazyspace::get_evaluated_curves_deformation ( const Depsgraph & depsgraph,
const Object & ob_orig )

Definition at line 620 of file crazyspace.cc.

References DEG_get_evaluated(), depsgraph, and get_evaluated_curves_deformation().

◆ get_evaluated_curves_deformation() [2/2]

GeometryDeformation blender::bke::crazyspace::get_evaluated_curves_deformation ( const Object * ob_eval,
const Object & ob_orig )

During evaluation of the object, deformation data may have been generated for this object. This function either retrieves the deformation data from the evaluated object, or falls back to returning the original data.

Definition at line 566 of file crazyspace.cc.

References BLI_assert, blender::bke::GeometryComponentEditData::curves_edit_hints_, blender::bke::CurvesEditHints::curves_id_orig, Object::data, blender::bke::crazyspace::GeometryDeformation::deform_mats, blender::bke::CurvesEditHints::deform_mats, Curves::geometry, blender::bke::CurveComponent::get(), blender::bke::GeometrySet::get_component(), OB_CURVES, blender::bke::CurvesGeometry::points_num(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesEditHints::positions(), blender::bke::CurvesGeometry::positions(), Object::runtime, and Object::type.

Referenced by blender::ed::sculpt_paint::CombOperationExecutor::comb_projected(), blender::ed::sculpt_paint::CombOperationExecutor::comb_spherical(), blender::ed::transform::curves::createTransCurvesVerts(), blender::draw::DRW_curves_batch_cache_create_requested(), ed_curves_select_pick(), ED_view3d_minmax_verts(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::curves::find_closest_curve(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curve_weights_projected(), blender::ed::sculpt_paint::PuffOperationExecutor::find_curves_weights_spherical(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_projected_smooth_factors(), blender::ed::sculpt_paint::SmoothOperationExecutor::find_spherical_smooth_factors(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_projected(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::gather_influences_spherical(), get_evaluated_curves_deformation(), blender::ed::transform::gizmo_3d_foreach_selected(), obedit_circle_select(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_projected(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_curve_selection_spherical(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_projected(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::paint_point_selection_spherical(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_projected(), blender::ed::sculpt_paint::PinchOperationExecutor::pinch_spherical(), blender::ed::sculpt_paint::DensityAddOperationExecutor::prepare_curve_roots_kdtrees(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::projected_snake_hook(), blender::ed::sculpt_paint::sample_curves_3d_brush(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::spherical_snake_hook(), blender::ed::sculpt_paint::use_add_density_mode(), view3d_box_select_exec(), and view3d_lasso_select().

◆ get_evaluated_grease_pencil_drawing_deformation() [1/2]

GeometryDeformation blender::bke::crazyspace::get_evaluated_grease_pencil_drawing_deformation ( const Depsgraph & depsgraph,
const Object & ob_orig,
const bke::greasepencil::Drawing & drawing_orig )

◆ get_evaluated_grease_pencil_drawing_deformation() [2/2]