|
Blender V4.3
|
Namespaces | |
| namespace | detail_size |
Classes | |
| struct | DyntopoDetailSizeEditCustomData |
| struct | SculptDetailRaycastData |
Enumerations | |
| enum | WarnFlag { VDATA = (1 << 0) , EDATA = (1 << 1) , LDATA = (1 << 2) , MODIFIER = (1 << 3) } |
Variables | |
| static CLG_LogRef | LOG = {"sculpt.detail"} |
Sample Detail Size | |
| enum class | SampleDetailModeType { Dyntopo = 0 , Voxel = 1 } |
| static EnumPropertyItem | prop_sculpt_sample_detail_mode_types [] |
| static bool | sample_detail_voxel (bContext *C, ViewContext *vc, const int mval[2]) |
| static void | sculpt_raycast_detail_cb (bke::pbvh::BMeshNode &node, SculptDetailRaycastData &srd, float *tmin) |
| static void | sample_detail_dyntopo (bContext *C, ViewContext *vc, const int mval[2]) |
| static int | sample_detail (bContext *C, const int event_xy[2], const SampleDetailModeType mode) |
| static int | sculpt_sample_detail_size_exec (bContext *C, wmOperator *op) |
| static int | sculpt_sample_detail_size_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static int | sculpt_sample_detail_size_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| void | SCULPT_OT_sample_detail_size (wmOperatorType *ot) |
| Enumerator | |
|---|---|
| DETAILING_MODE_RESOLUTION | |
| DETAILING_MODE_BRUSH_PERCENT | |
| DETAILING_MODE_DETAIL_SIZE | |
Definition at line 445 of file sculpt_detail.cc.
|
strong |
| Enumerator | |
|---|---|
| Dyntopo | |
| Voxel | |
Definition at line 189 of file sculpt_detail.cc.
| Enumerator | |
|---|---|
| VDATA | |
| EDATA | |
| LDATA | |
| MODIFIER | |
Definition at line 26 of file sculpt_dyntopo.hh.
Definition at line 275 of file sculpt_dyntopo.cc.
References BKE_modifier_get_info(), BKE_modifier_is_enabled(), BKE_modifiers_get_virtual_modifierlist(), BLI_assert, SculptSession::bm, Constructive, Object::data, dyntopo_supports_customdata_layers(), EDATA, eModifierMode_Realtime, flag, LDATA, MODIFIER, ModifierData::next, Object::sculpt, ModifierData::type, ModifierTypeInfo::type, UNUSED_VARS_NDEBUG, and VDATA.
Referenced by blender::ed::sculpt_paint::object_sculpt_mode_enter(), and sculpt_dynamic_topology_toggle_invoke().
| void blender::ed::sculpt_paint::dyntopo::disable | ( | bContext * | C, |
| undo::StepData * | undo_step ) |
Definition at line 160 of file sculpt_dyntopo.cc.
References CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), depsgraph, and disable().
|
static |
Free the sculpt BMesh and BMLog
If unode is given, the BMesh's data is copied out to the unode before the BMesh is deleted so that it can be restored from.
Definition at line 111 of file sculpt_dyntopo.cc.
References BKE_particlesystem_reset_all(), BKE_ptcache_object_reset(), BKE_scene_graph_update_tagged(), BKE_sculptsession_bm_to_me(), BKE_sculptsession_free_pbvh(), bm, SculptSession::bm, BM_data_layer_free_named(), SculptSession::bm_log, BM_log_free(), BM_mesh_free(), CD_PROP_BOOL, CustomData_get_layer_named_for_write(), Object::data, DEG_id_tag_update(), depsgraph, Object::id, ID_RECALC_GEOMETRY, BMesh::pdata, PTCACHE_RESET_OUTDATED, blender::ed::sculpt_paint::undo::restore_from_bmesh_enter_geometry(), Object::sculpt, and BMesh::vdata.
Referenced by disable(), and disable_with_undo().
| void blender::ed::sculpt_paint::dyntopo::disable_with_undo | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob ) |
Definition at line 169 of file sculpt_dyntopo.cc.
References SculptSession::bm, depsgraph, disable(), blender::ed::sculpt_paint::undo::DyntopoEnd, ED_undo_stack_get(), G, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_node(), and Object::sculpt.
Referenced by blender::ed::sculpt_paint::object_sculpt_mode_exit(), and sculpt_dynamic_topology_toggle_exec().
|
static |
Definition at line 602 of file sculpt_detail.cc.
References DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_RESOLUTION, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::max_value, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::min_value, and blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode.
Referenced by dyntopo_detail_size_edit_invoke().
|
static |
Definition at line 586 of file sculpt_detail.cc.
References CTX_data_active_object(), CTX_wm_area(), CTX_wm_region(), wmOperator::customdata, SculptSession::draw_faded_cursor, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::draw_handle, ED_area_status_text(), ED_region_draw_cb_exit(), ED_workspace_status_text(), MEM_freeN(), and Object::sculpt.
Referenced by dyntopo_detail_size_edit_modal(), and SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 541 of file sculpt_detail.cc.
References dyntopo_detail_size_parallel_lines_draw(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::gizmo_mat, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_draw_circle_wire_3d(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immUniformColor4fv(), immVertex3fv(), immVertexFormat(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::outline_col, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::preview_tri, and blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::radius.
Referenced by dyntopo_detail_size_edit_invoke().
|
static |
Definition at line 801 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::active_object, Brush::add_col, BKE_brush_size_get(), BKE_paint_brush(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::brush_radius, copy_m4_m4(), copy_v3_v3(), copy_v4_v4(), CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_region(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, SculptSession::cursor_location, SculptSession::cursor_normal, SculptSession::cursor_radius, SculptSession::cursor_sampled_normal, wmOperator::customdata, DEG2RAD, depsgraph, DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_DETAIL_SIZE, DETAILING_MODE_RESOLUTION, SculptSession::draw_faded_cursor, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::draw_handle, dyntopo_detail_size_bounds(), dyntopo_detail_size_edit_draw(), dyntopo_detail_size_initial_value(), dyntopo_detail_size_update_header(), ED_region_draw_cb_activate(), ED_region_tag_redraw(), ED_view3d_viewcontext_init(), ED_workspace_status_text(), Sculpt::flags, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::gizmo_mat, IFACE_, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_mval, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_value, is_zero_v3(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, mul_m4_m4_post(), OPERATOR_RUNNING_MODAL, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::outline_col, Sculpt::paint, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::pixel_radius, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::preview_tri, quat_to_mat4(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::radius, REGION_DRAW_POST_VIEW, rotate_v2_v2fl(), rotation_between_vecs_to_quat(), Object::sculpt, ToolSettings::sculpt, blender::ed::sculpt_paint::sculpt_calc_radius(), SCULPT_DYNTOPO_DETAIL_BRUSH, SCULPT_DYNTOPO_DETAIL_CONSTANT, SCULPT_DYNTOPO_DETAIL_MANUAL, SCULPT_vertex_random_access_ensure(), translate_m4(), WM_event_add_modal_handler(), and zero_v3().
Referenced by SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 720 of file sculpt_detail.cc.
References Sculpt::constant_detail, CTX_data_active_object(), CTX_data_tool_settings(), CTX_wm_area(), CTX_wm_region(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, wmOperator::customdata, Sculpt::detail_percent, Sculpt::detail_size, DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_RESOLUTION, SculptSession::draw_faded_cursor, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::draw_handle, dyntopo_detail_size_edit_cancel(), dyntopo_detail_size_sample_from_surface(), dyntopo_detail_size_update_from_mouse_delta(), dyntopo_detail_size_update_header(), ED_area_status_text(), ED_region_draw_cb_exit(), ED_region_tag_redraw(), ED_workspace_status_text(), ELEM, EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_PADENTER, EVT_RETKEY, EVT_RIGHTCTRLKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MEM_freeN(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::sample_mode, Object::sculpt, ToolSettings::sculpt, wmEvent::type, and wmEvent::val.
Referenced by SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 788 of file sculpt_detail.cc.
References Sculpt::constant_detail, Sculpt::detail_percent, Sculpt::detail_size, DETAILING_MODE_BRUSH_PERCENT, and DETAILING_MODE_RESOLUTION.
Referenced by dyntopo_detail_size_edit_invoke().
|
static |
Definition at line 482 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::active_object, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::brush_radius, blender::ed::sculpt_paint::dyntopo::detail_size::brush_to_detail_size(), blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_detail_size(), copy_v3_v3(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, DEG2RAD, DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_RESOLUTION, float, GPU_PRIM_LINES, immBegin(), immEnd(), immVertex3fv(), int, len_v3v3(), madd_v3_v3v3fl(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, mul_v3_fl(), normalize_v3(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::pixel_radius, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::preview_tri, blender::ed::sculpt_paint::dyntopo::detail_size::relative_to_detail_size(), rotate_v2_v2fl(), and sub_v3_v3v3().
Referenced by dyntopo_detail_size_edit_draw().
|
static |
Definition at line 619 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::active_object, SculptSession::active_vert(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::brush_radius, clamp_f(), BMVert::co, blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_brush_detail(), blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_relative_detail(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_RESOLUTION, len_v3v3(), mat4_to_scale(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::max_value, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::min_value, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::pixel_radius, Object::sculpt, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by dyntopo_detail_size_edit_modal().
|
static |
Definition at line 653 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::accurate_mode, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::accurate_mval, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::accurate_value, clamp_f(), copy_v2_v2(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, DETAIL_SIZE_DELTA_ACCURATE_SPEED, DETAIL_SIZE_DELTA_SPEED, DETAILING_MODE_RESOLUTION, EVT_LEFTSHIFTKEY, float, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_mval, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_value, invert(), KM_PRESS, KM_RELEASE, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::max_value, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::min_value, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, wmEvent::mval, wmEvent::type, and wmEvent::val.
Referenced by dyntopo_detail_size_edit_modal().
|
static |
Definition at line 683 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::accurate_mode, CTX_data_scene(), CTX_wm_area(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::current_value, DETAILING_MODE_BRUSH_PERCENT, DETAILING_MODE_RESOLUTION, ED_area_status_text(), IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, RNA_pointer_create(), RNA_property_ui_name(), RNA_struct_find_property(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::sample_mode, SNPRINTF, and UI_MAX_DRAW_STR.
Referenced by dyntopo_detail_size_edit_invoke(), and dyntopo_detail_size_edit_modal().
|
static |
Definition at line 268 of file sculpt_dyntopo.cc.
Referenced by check_attribute_warning().
|
static |
Definition at line 257 of file sculpt_dyntopo.cc.
References BM_attribute_stored_in_bmesh_builtin(), CD_MASK_PROP_ALL, CD_ORIGINDEX, CD_PROP_FLOAT, CD_TYPE_AS_MASK, ELEM, and STREQ.
|
static |
Definition at line 226 of file sculpt_dyntopo.cc.
References EDATA, flag, IFACE_, LDATA, MODIFIER, OPERATOR_INTERFACE, ot, RPT_, UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemFullO_ptr(), uiItemL(), uiItemS(), VDATA, and WM_OP_EXEC_DEFAULT.
Referenced by sculpt_dynamic_topology_toggle_invoke().
| void blender::ed::sculpt_paint::dyntopo::enable_ex | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Object & | ob ) |
Enable dynamic topology; mesh will be triangulated
Definition at line 62 of file sculpt_dyntopo.cc.
References BKE_mesh_mselect_clear(), BKE_scene_graph_update_tagged(), BKE_sculptsession_free_pbvh(), SculptSession::bm, BM_data_layer_ensure_named(), SculptSession::bm_log, BM_log_create(), BM_mesh_bm_from_me(), BM_mesh_create(), BM_mesh_normals_update(), BMALLOC_TEMPLATE_FROM_ME, BMeshFromMeshParams::calc_face_normal, CD_PROP_FLOAT, Object::data, DEG_id_tag_update(), depsgraph, Object::id, ID_RECALC_GEOMETRY, ME_SCULPT_DYNAMIC_TOPOLOGY, Object::sculpt, Object::shapenr, BMesh::totface, triangulate(), BMeshCreateParams::use_toolflags, and BMesh::vdata.
Referenced by enable_with_undo(), and blender::ed::sculpt_paint::object_sculpt_mode_enter().
|
static |
Definition at line 186 of file sculpt_dyntopo.cc.
References SculptSession::bm, depsgraph, blender::ed::sculpt_paint::undo::DyntopoBegin, ED_undo_stack_get(), enable_ex(), G, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_node(), and Object::sculpt.
Referenced by sculpt_dynamic_topology_toggle_exec().
|
static |
Definition at line 286 of file sculpt_detail.cc.
References BKE_area_find_region_xy(), BKE_base_is_visible(), BKE_screen_find_area_xy(), blender::bke::pbvh::BMesh, CTX_data_active_base(), CTX_data_ensure_evaluated_depsgraph(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_screen(), CTX_wm_view3d(), depsgraph, Dyntopo, ED_view3d_viewcontext_init(), blender::bke::pbvh::Mesh, ViewContext::obact, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), RGN_TYPE_WINDOW, sample_detail_dyntopo(), sample_detail_voxel(), SPACE_VIEW3D, blender::bke::pbvh::Tree::type(), and Voxel.
Referenced by sculpt_sample_detail_size_exec(), and sculpt_sample_detail_size_modal().
|
static |
Definition at line 250 of file sculpt_detail.cc.
References BKE_paint_brush_for_read(), Sculpt::constant_detail, CTX_data_tool_settings(), blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::depth, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::edge_length, float, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::hit, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::isect_precalc, isect_ray_tri_watertight_v3_precalc(), mat4_to_scale(), ViewContext::obact, Sculpt::paint, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::ray_start, blender::bke::pbvh::raycast(), ToolSettings::sculpt, sculpt_raycast_detail_cb(), SCULPT_raycast_init(), and SCULPT_stroke_modifiers_check().
Referenced by sample_detail().
|
static |
Definition at line 200 of file sculpt_detail.cc.
References SculptSession::active_vert(), BKE_sculpt_update_object_for_edit(), CTX_data_depsgraph_pointer(), Object::data, depsgraph, blender::math::distance(), blender::bke::Face, float, ViewContext::obact, Object::sculpt, SCULPT_cursor_geometry_info_update(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::ed::sculpt_paint::vert_neighbors_get_mesh(), and blender::bke::pbvh::vert_positions_eval().
Referenced by sample_detail().
|
static |
Definition at line 76 of file sculpt_detail.cc.
References SculptSession::bm, CTX_data_active_object(), CTX_data_tool_settings(), Sculpt::flags, Object::sculpt, ToolSettings::sculpt, SCULPT_DYNTOPO_DETAIL_CONSTANT, SCULPT_DYNTOPO_DETAIL_MANUAL, and SCULPT_mode_poll().
Referenced by SCULPT_OT_detail_flood_fill().
|
static |
Definition at line 85 of file sculpt_detail.cc.
References SculptSession::bm, CTX_data_active_object(), Object::sculpt, and SCULPT_mode_poll().
Referenced by SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 98 of file sculpt_detail.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_base_is_visible(), BKE_pbvh_node_mark_topology_update(), BKE_sculptsession_free_pbvh(), BLI_time_now_seconds(), SculptSession::bm, SculptSession::bm_log, blender::bke::pbvh::bmesh_update_topology(), blender::bke::pbvh::bounds_get(), CLOG_INFO, Sculpt::constant_detail, CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), CTX_wm_view3d(), DEG_id_tag_update(), depsgraph, blender::ed::sculpt_paint::dyntopo::detail_size::EDGE_LENGTH_MIN_FACTOR, blender::index_mask::IndexMask::foreach_index(), Object::id, ID_RECALC_GEOMETRY, LOG, mat4_to_scale(), blender::Bounds< T >::max, blender::math::midpoint(), blender::Bounds< T >::min, NC_OBJECT, ND_DRAW, blender::bke::pbvh::Tree::nodes(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PBVH_Collapse, blender::bke::object::pbvh_get(), PBVH_Subdivide, blender::ed::sculpt_paint::undo::Position, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_node(), blender::math::reduce_max(), Object::sculpt, ToolSettings::sculpt, and WM_event_add_notifier().
Referenced by SCULPT_OT_detail_flood_fill().
|
static |
Definition at line 203 of file sculpt_dyntopo.cc.
References SculptSession::bm, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), depsgraph, disable_with_undo(), enable_with_undo(), NC_SCENE, ND_TOOLSETTINGS, OPERATOR_FINISHED, Object::sculpt, WM_cursor_wait(), and WM_main_add_notifier().
Referenced by sculpt_dynamic_topology_toggle_invoke(), and SCULPT_OT_dynamic_topology_toggle().
|
static |
Definition at line 320 of file sculpt_dyntopo.cc.
References SculptSession::bm, check_attribute_warning(), CTX_data_active_object(), CTX_data_scene(), dyntopo_warning_popup(), flag, Object::sculpt, sculpt_dynamic_topology_toggle_exec(), and wmOperator::type.
Referenced by SCULPT_OT_dynamic_topology_toggle().
| void blender::ed::sculpt_paint::dyntopo::SCULPT_OT_detail_flood_fill | ( | wmOperatorType * | ot | ) |
Definition at line 169 of file sculpt_detail.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sculpt_and_constant_or_manual_detail_poll(), and sculpt_detail_flood_fill_exec().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
| void blender::ed::sculpt_paint::dyntopo::SCULPT_OT_dynamic_topology_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 340 of file sculpt_dyntopo.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, sculpt_dynamic_topology_toggle_exec(), sculpt_dynamic_topology_toggle_invoke(), and SCULPT_mode_poll().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
| void blender::ed::sculpt_paint::dyntopo::SCULPT_OT_dyntopo_detail_size_edit | ( | wmOperatorType * | ot | ) |
Definition at line 890 of file sculpt_detail.cc.
References wmOperatorType::cancel, wmOperatorType::description, dyntopo_detail_size_edit_cancel(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and sculpt_and_dynamic_topology_poll().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
| void blender::ed::sculpt_paint::dyntopo::SCULPT_OT_sample_detail_size | ( | wmOperatorType * | ot | ) |
Definition at line 399 of file sculpt_detail.cc.
References wmOperatorType::description, Dyntopo, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, prop_sculpt_sample_detail_mode_types, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_int_array(), RNA_def_property_flag(), SCULPT_mode_poll(), sculpt_sample_detail_size_exec(), sculpt_sample_detail_size_invoke(), sculpt_sample_detail_size_modal(), and wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
|
static |
Definition at line 236 of file sculpt_detail.cc.
References BKE_pbvh_node_get_tmin(), blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::depth, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::edge_length, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::hit, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::isect_precalc, blender::ed::sculpt_paint::dyntopo::SculptDetailRaycastData::ray_start, and blender::bke::pbvh::raycast_node_detail_bmesh().
Referenced by sample_detail_dyntopo().
|
static |
Definition at line 355 of file sculpt_detail.cc.
References wmOperator::ptr, RNA_enum_get(), RNA_int_get_array(), and sample_detail().
Referenced by SCULPT_OT_sample_detail_size().
|
static |
Definition at line 363 of file sculpt_detail.cc.
References CTX_wm_window(), ED_workspace_status_text(), IFACE_, OPERATOR_RUNNING_MODAL, WM_CURSOR_EYEDROPPER, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by SCULPT_OT_sample_detail_size().
|
static |
Definition at line 371 of file sculpt_detail.cc.
References CTX_wm_window(), ED_workspace_status_text(), EVT_ESCKEY, KM_PRESS, LEFTMOUSE, NC_SCENE, ND_TOOLSETTINGS, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_enum_get(), RNA_int_set_array(), sample_detail(), wmEvent::type, wmEvent::val, WM_cursor_modal_restore(), WM_main_add_notifier(), and wmEvent::xy.
Referenced by SCULPT_OT_sample_detail_size().
| bool blender::ed::sculpt_paint::dyntopo::stroke_is_dyntopo | ( | const Object & | object, |
| const Brush & | brush ) |
Returns true if the stroke will use dynamic topology, false otherwise.
Factors: some brushes like grab cannot do dynamic topology. Others, like smooth, are better without. Same goes for alt-key smoothing.
Definition at line 829 of file sculpt.cc.
References blender::ed::sculpt_paint::StrokeCache::alt_smooth, blender::bke::pbvh::BMesh, BRUSH_ANCHORED, BRUSH_DRAG_DOT, SculptSession::cache, Brush::flag, blender::bke::object::pbvh_get(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_HAS_DYNTOPO, and blender::bke::pbvh::Tree::type().
Referenced by blender::ed::sculpt_paint::calc_area_center(), and blender::ed::sculpt_paint::auto_mask::is_enabled().
| void blender::ed::sculpt_paint::dyntopo::triangulate | ( | BMesh * | bm | ) |
Definition at line 48 of file sculpt_dyntopo.cc.
References bm, BM_mesh_triangulate(), MOD_TRIANGULATE_NGON_EARCLIP, MOD_TRIANGULATE_QUAD_BEAUTY, BMesh::totface, and BMesh::totloop.
Referenced by enable_ex(), and blender::ed::sculpt_paint::symmetrize_exec().
|
static |
Definition at line 61 of file sculpt_detail.cc.
Referenced by sculpt_detail_flood_fill_exec().
|
static |
Definition at line 194 of file sculpt_detail.cc.
Referenced by SCULPT_OT_sample_detail_size().