|
Blender V4.5
|
Namespaces | |
| namespace | detail_size |
Classes | |
| struct | SculptDetailRaycastData |
| struct | DyntopoDetailSizeEditCustomData |
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 wmOperatorStatus | sample_detail (bContext *C, const int event_xy[2], const SampleDetailModeType mode) |
| static wmOperatorStatus | sculpt_sample_detail_size_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | sculpt_sample_detail_size_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static wmOperatorStatus | 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 460 of file sculpt_detail.cc.
| Enumerator | |
|---|---|
| Dyntopo | |
| Voxel | |
Definition at line 193 of file sculpt_detail.cc.
| Enumerator | |
|---|---|
| VDATA | |
| EDATA | |
| LDATA | |
| MODIFIER | |
Definition at line 26 of file sculpt_dyntopo.hh.
Definition at line 264 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 150 of file sculpt_dyntopo.cc.
References C, 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 108 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(), Object::data, DEG_id_tag_update(), depsgraph, Object::id, ID_RECALC_GEOMETRY, ME_SCULPT_DYNAMIC_TOPOLOGY, PTCACHE_RESET_OUTDATED, blender::ed::sculpt_paint::undo::restore_from_bmesh_enter_geometry(), and Object::sculpt.
Referenced by blender::ed::sculpt_paint::undo::bmesh_handle_dyntopo_begin(), blender::ed::sculpt_paint::undo::bmesh_handle_dyntopo_end(), 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 159 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 619 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 602 of file sculpt_detail.cc.
References C, 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(), ARegion::runtime, and Object::sculpt.
Referenced by dyntopo_detail_size_edit_modal(), and SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 557 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 822 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, C, 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, i, IFACE_, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_mval, blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::init_value, MEM_callocN(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, mul_m4_m4_post(), blender::ed::sculpt_paint::object_space_radius_get(), 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(), ARegion::runtime, Object::sculpt, ToolSettings::sculpt, SCULPT_DYNTOPO_DETAIL_BRUSH, SCULPT_DYNTOPO_DETAIL_CONSTANT, SCULPT_DYNTOPO_DETAIL_MANUAL, translate_m4(), blender::ed::sculpt_paint::vert_random_access_ensure(), WM_event_add_modal_handler(), and zero_v3().
Referenced by SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 741 of file sculpt_detail.cc.
References C, 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, ARegion::runtime, 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 811 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 497 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::active_object, angle(), 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, GPU_PRIM_LINES, i, immBegin(), immEnd(), immVertex3fv(), 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(), sub_v3_v3v3(), U, and zero_v3().
Referenced by dyntopo_detail_size_edit_draw().
|
static |
Definition at line 636 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(), U, and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by dyntopo_detail_size_edit_modal().
|
static |
Definition at line 674 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, 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 704 of file sculpt_detail.cc.
References blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::accurate_mode, C, 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(), Scene::id, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::mode, RNA_pointer_create_discrete(), RNA_property_ui_name(), RNA_struct_find_property(), blender::ed::sculpt_paint::dyntopo::DyntopoDetailSizeEditCustomData::sample_mode, ToolSettings::sculpt, SNPRINTF, Scene::toolsettings, and UI_MAX_DRAW_STR.
Referenced by dyntopo_detail_size_edit_invoke(), and dyntopo_detail_size_edit_modal().
|
static |
Definition at line 257 of file sculpt_dyntopo.cc.
References blender::Span< T >::begin(), and blender::Span< T >::end().
Referenced by check_attribute_warning().
|
static |
Definition at line 246 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, CustomDataLayer::name, STREQ, and CustomDataLayer::type.
|
static |
Definition at line 216 of file sculpt_dyntopo.cc.
References C, EDATA, flag, IFACE_, uiLayout::label(), LDATA, MODIFIER, uiLayout::op(), OPERATOR_INTERFACE, ot, RPT_, uiLayout::separator(), UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), 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 59 of file sculpt_dyntopo.cc.
References BMeshFromMeshParams::active_shapekey, 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, BMeshFromMeshParams::calc_vert_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(), BMeshFromMeshParams::use_shapekey, BMeshCreateParams::use_toolflags, and BMesh::vdata.
Referenced by enable_with_undo(), and blender::ed::sculpt_paint::object_sculpt_mode_enter().
|
static |
Definition at line 176 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 292 of file sculpt_detail.cc.
References BKE_area_find_region_xy(), BKE_base_is_visible(), BKE_screen_find_area_xy(), blender::bke::pbvh::BMesh, C, 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(), Voxel, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by sculpt_sample_detail_size_exec(), and sculpt_sample_detail_size_modal().
|
static |
Definition at line 254 of file sculpt_detail.cc.
References BKE_paint_brush_for_read(), C, Sculpt::constant_detail, CTX_data_tool_settings(), 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, 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(), blender::ed::sculpt_paint::raycast_init(), ToolSettings::sculpt, sculpt_raycast_detail_cb(), and SCULPT_stroke_modifiers_check().
Referenced by sample_detail().
|
static |
Definition at line 204 of file sculpt_detail.cc.
References SculptSession::active_vert(), BKE_sculpt_update_object_for_edit(), C, CTX_data_depsgraph_pointer(), blender::ed::sculpt_paint::cursor_geometry_info_update(), Object::data, depsgraph, blender::math::distance(), blender::bke::Face, faces, blender::bke::AttributeAccessor::lookup(), ViewContext::obact, Object::sculpt, 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 80 of file sculpt_detail.cc.
References SculptSession::bm, C, 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 89 of file sculpt_detail.cc.
References SculptSession::bm, C, CTX_data_active_object(), Object::sculpt, and SCULPT_mode_poll().
Referenced by SCULPT_OT_dyntopo_detail_size_edit().
|
static |
Definition at line 102 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(), C, 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(), i, Object::id, ID_RECALC_GEOMETRY, LOG, mat4_to_scale(), blender::math::midpoint(), 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, size(), and WM_event_add_notifier().
Referenced by SCULPT_OT_detail_flood_fill().
|
static |
Definition at line 193 of file sculpt_dyntopo.cc.
References SculptSession::bm, C, 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 309 of file sculpt_dyntopo.cc.
References SculptSession::bm, C, 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 173 of file sculpt_detail.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 329 of file sculpt_dyntopo.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 913 of file sculpt_detail.cc.
References dyntopo_detail_size_edit_cancel(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 414 of file sculpt_detail.cc.
References Dyntopo, OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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(), and sculpt_sample_detail_size_modal().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt().
|
static |
Definition at line 240 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 363 of file sculpt_detail.cc.
References C, wmOperator::ptr, RNA_enum_get(), RNA_int_get_array(), and sample_detail().
Referenced by SCULPT_OT_sample_detail_size().
|
static |
Definition at line 371 of file sculpt_detail.cc.
References C, 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 381 of file sculpt_detail.cc.
References C, 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 851 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(), blender::bke::brush::supports_dyntopo(), and blender::bke::pbvh::Tree::type().
Referenced by blender::ed::sculpt_paint::calc_area_center(), blender::ed::sculpt_paint::calc_area_normal(), blender::ed::sculpt_paint::calc_area_normal_and_center(), blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::ed::sculpt_paint::sculpt_brush_stroke_cancel(), and blender::ed::sculpt_paint::stroke_update_step().
| void blender::ed::sculpt_paint::dyntopo::triangulate | ( | BMesh * | bm | ) |
Definition at line 45 of file sculpt_dyntopo.cc.
References bm, BM_mesh_triangulate(), MOD_TRIANGULATE_NGON_EARCLIP, and MOD_TRIANGULATE_QUAD_BEAUTY.
Referenced by enable_ex(), and blender::ed::sculpt_paint::symmetrize_exec().
|
static |
Definition at line 65 of file sculpt_detail.cc.
Referenced by sculpt_detail_flood_fill_exec().
|
static |
Definition at line 198 of file sculpt_detail.cc.
Referenced by SCULPT_OT_sample_detail_size().