|
Blender V5.3
|
Classes | |
| struct | TrimOperation |
Enumerations | |
| enum class | OperationType { Intersect = 0 , Difference = 1 , Union = 2 , Join = 3 } |
| enum class | OrientationType { View = 0 , Surface = 1 } |
| enum class | ExtrudeMode { Project = 0 , Fixed = 1 } |
Variables | |
| static EnumPropertyItem | operation_types [] |
| static EnumPropertyItem | orientation_types [] |
| static EnumPropertyItem | extrude_modes [] |
| static const EnumPropertyItem | solver_items [] |
|
strong |
| Enumerator | |
|---|---|
| Project | |
| Fixed | |
Definition at line 91 of file sculpt_trim.cc.
|
strong |
| Enumerator | |
|---|---|
| Intersect | |
| Difference | |
| Union | |
| Join | |
Definition at line 49 of file sculpt_trim.cc.
|
strong |
| Enumerator | |
|---|---|
| View | |
| Surface | |
Definition at line 73 of file sculpt_trim.cc.
|
static |
Definition at line 577 of file sculpt_trim.cc.
References apply_join_operation(), blender::BKE_mesh_nomain_to_mesh(), blender::bke::GeometrySet::from_mesh(), blender::bke::GeometrySet::get_component_for_write(), blender::geometry::join_geometries(), blender::bke::ReadOnly, and blender::result.
Referenced by apply_join_operation(), and apply_trim().
|
static |
Definition at line 587 of file sculpt_trim.cc.
References apply_join_operation(), apply_trim(), blender::Array< T, InlineBufferCapacity, Allocator >::Array(), blender::BKE_mesh_nomain_to_mesh(), blender::BKE_report(), blender::geometry::boolean::BooleanOpParameters::boolean_mode, Difference, blender::geometry::boolean::Difference, blender::MatBase< float, 4, 4 >::identity(), Intersect, blender::geometry::boolean::Intersect, Join, blender::ed::sculpt_paint::trim::TrimOperation::mesh, blender::geometry::boolean::mesh_boolean(), blender::ed::sculpt_paint::trim::TrimOperation::mode, blender::geometry::boolean::BooleanOpParameters::no_nested_components, blender::geometry::boolean::BooleanOpParameters::no_self_intersections, blender::geometry::boolean::NonManifold, blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::trim::TrimOperation::reports, blender::result, blender::geometry::boolean::ResultTooBig, blender::RPT_ERROR, blender::ed::sculpt_paint::trim::TrimOperation::solver_mode, blender::geometry::boolean::SolverNotAvailable, blender::geometry::boolean::BooleanError::type, Union, blender::geometry::boolean::Union, blender::geometry::boolean::UnknownError, blender::ed::sculpt_paint::gesture::GestureData::vc, and blender::geometry::boolean::BooleanOpParameters::watertight.
Referenced by apply_trim(), and gesture_apply_for_symmetry_pass().
|
static |
Definition at line 339 of file sculpt_trim.cc.
References blender::BKE_object_boundbox_get(), calc_expand_factor(), blender::math::distance(), blender::ViewContext::obact, paint_convert_bb_to_rect(), blender::ViewContext::region, blender::ViewContext::rv3d, blender::ed::sculpt_paint::gesture::GestureData::vc, blender::rcti::xmax, blender::rcti::xmin, blender::rcti::ymax, and blender::rcti::ymin.
Referenced by calc_expand_factor(), and gesture_to_screen_points().
|
static |
Definition at line 215 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::GestureData::brush, calculate_depth(), blender::SculptSession::cursor_radius, blender::ViewContext::depsgraph, blender::dist_signed_to_plane_v3(), FLT_MAX, get_origin_and_normal(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::trim::TrimOperation::initial_hit, blender::ed::sculpt_paint::trim::TrimOperation::initial_location, blender::mul_v3_m4v3(), blender::ViewContext::obact, blender::ed::sculpt_paint::object_space_radius_get(), blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::trim::TrimOperation::orientation, blender::ed::sculpt_paint::gesture::GestureData::paint, blender::plane_from_point_normal_v3(), blender::ed::sculpt_paint::gesture::GestureData::ss, blender::math::transform_point(), blender::ed::sculpt_paint::trim::TrimOperation::use_cursor_depth, blender::ed::sculpt_paint::gesture::GestureData::vc, blender::bke::pbvh::vert_positions_eval(), and View.
Referenced by calculate_depth(), and generate_geometry().
|
static |
Definition at line 781 of file sculpt_trim.cc.
References C, can_exec(), blender::CTX_data_active_object(), blender::data, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), and report_invalid_mode().
Referenced by can_exec(), gesture_box_exec(), gesture_lasso_exec(), gesture_line_exec(), and gesture_polyline_exec().
|
static |
Definition at line 757 of file sculpt_trim.cc.
References blender::BKE_base_is_visible(), C, can_invoke(), blender::CTX_data_active_base(), and blender::CTX_wm_view3d().
Referenced by can_invoke(), gesture_box_invoke(), gesture_lasso_invoke(), gesture_line_invoke(), and gesture_polyline_invoke().
|
static |
Definition at line 658 of file sculpt_trim.cc.
References blender::BKE_id_free(), free_geometry(), blender::ed::sculpt_paint::trim::TrimOperation::mesh, blender::ed::sculpt_paint::gesture::GestureData::operation, and blender::ed::sculpt_paint::trim::TrimOperation::true_mesh_co.
Referenced by free_geometry(), and gesture_end().
|
static |
Definition at line 387 of file sculpt_trim.cc.
References blender::BKE_mesh_new_nomain(), blender::BLI_assert(), blender::BLI_polyfill_calc(), calculate_depth(), blender::copy_v3_v3(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::dist_signed_to_plane_v3(), blender::ED_view3d_win_to_3d(), blender::ED_view3d_win_to_3d_on_plane(), blender::ed::sculpt_paint::trim::TrimOperation::extrude_mode, blender::bke::mesh::face_triangles_num(), Fixed, float, generate_geometry(), gesture_to_screen_points(), get_origin_and_normal(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::madd_v3_v3fl(), blender::madd_v3_v3v3fl(), blender::MEM_new_array_uninitialized(), blender::ed::sculpt_paint::trim::TrimOperation::mesh, blender::bke::mesh_calc_edges(), blender::bke::mesh_smooth_set(), blender::mul_v3_m4v3(), blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::trim::TrimOperation::orientation, blender::plane_from_point_normal_v3(), Project, blender::ViewContext::region, blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::ed::sculpt_paint::trim::TrimOperation::true_mesh_co, update_normals(), blender::ed::sculpt_paint::trim::TrimOperation::use_cursor_depth, blender::ViewContext::v3d, blender::ed::sculpt_paint::gesture::GestureData::vc, and View.
Referenced by generate_geometry(), and gesture_begin().
|
static |
Definition at line 646 of file sculpt_trim.cc.
References apply_trim(), gesture_apply_for_symmetry_pass(), blender::ed::sculpt_paint::trim::TrimOperation::mesh, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::symmetry_flip(), blender::ed::sculpt_paint::gesture::GestureData::symmpass, blender::ed::sculpt_paint::trim::TrimOperation::true_mesh_co, update_normals(), and blender::Mesh::verts_num.
Referenced by gesture_apply_for_symmetry_pass(), and init_operation().
|
static |
Definition at line 557 of file sculpt_trim.cc.
References BLI_assert_unreachable, C, blender::ed::sculpt_paint::face_set::create_face_sets_mesh(), blender::CTX_data_scene(), generate_geometry(), blender::ed::sculpt_paint::undo::geometry_begin(), gesture_begin(), blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, blender::ViewContext::obact, blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_begin(), and init_operation().
|
static |
Definition at line 822 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, can_exec(), gesture_box_exec(), blender::ed::sculpt_paint::gesture::init_from_box(), init_operation(), initialize_cursor_info(), blender::MEM_new_zeroed(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::wmOperator::reports.
Referenced by gesture_box_exec(), and SCULPT_OT_trim_box_gesture().
|
static |
Definition at line 842 of file sculpt_trim.cc.
References C, can_invoke(), gesture_box_invoke(), blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::wmOperator::ptr, blender::RNA_int_set_array(), and blender::WM_gesture_box_invoke().
Referenced by gesture_box_invoke(), and SCULPT_OT_trim_box_gesture().
|
static |
Definition at line 665 of file sculpt_trim.cc.
References blender::BKE_mesh_batch_cache_dirty_tag(), blender::BKE_MESH_BATCH_DIRTY_ALL, blender::BKE_sculptsession_free_pbvh(), blender::DEG_id_tag_update(), blender::ed::sculpt_paint::face_set::find_next_available_id(), free_geometry(), blender::ed::sculpt_paint::undo::geometry_end(), gesture_end(), blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::face_set::initialize_none_to_id(), blender::ViewContext::obact, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_end(), and init_operation().
|
static |
Definition at line 853 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, can_exec(), gesture_lasso_exec(), blender::ed::sculpt_paint::gesture::init_from_lasso(), init_operation(), initialize_cursor_info(), blender::MEM_new_zeroed(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::wmOperator::reports.
Referenced by gesture_lasso_exec(), and SCULPT_OT_trim_lasso_gesture().
|
static |
Definition at line 873 of file sculpt_trim.cc.
References C, can_invoke(), gesture_lasso_invoke(), blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::wmOperator::ptr, blender::RNA_int_set_array(), and blender::WM_gesture_lasso_invoke().
Referenced by gesture_lasso_invoke(), and SCULPT_OT_trim_lasso_gesture().
|
static |
Definition at line 884 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, can_exec(), gesture_line_exec(), blender::ed::sculpt_paint::gesture::init_from_line(), init_operation(), initialize_cursor_info(), blender::MEM_new_zeroed(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::wmOperator::reports.
Referenced by gesture_line_exec(), and SCULPT_OT_trim_line_gesture().
|
static |
Definition at line 904 of file sculpt_trim.cc.
References C, can_invoke(), gesture_line_invoke(), blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::wmOperator::ptr, blender::RNA_int_set_array(), and blender::WM_gesture_straightline_active_side_invoke().
Referenced by gesture_line_invoke(), and SCULPT_OT_trim_line_gesture().
|
static |
Definition at line 915 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, can_exec(), gesture_polyline_exec(), blender::ed::sculpt_paint::gesture::init_from_polyline(), init_operation(), initialize_cursor_info(), blender::MEM_new_zeroed(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and blender::wmOperator::reports.
Referenced by gesture_polyline_exec(), and SCULPT_OT_trim_polyline_gesture().
|
static |
Definition at line 935 of file sculpt_trim.cc.
References C, can_invoke(), gesture_polyline_invoke(), blender::wmEvent::mval, blender::OPERATOR_CANCELLED, blender::wmOperator::ptr, blender::RNA_int_set_array(), and blender::WM_gesture_polyline_invoke().
Referenced by gesture_polyline_invoke(), and SCULPT_OT_trim_polyline_gesture().
|
static |
Definition at line 357 of file sculpt_trim.cc.
References calc_expand_factor(), blender::ed::sculpt_paint::gesture::LineData::flip, blender::ed::sculpt_paint::gesture::GestureData::gesture_points, gesture_to_screen_points(), blender::ed::sculpt_paint::gesture::Line, blender::ed::sculpt_paint::gesture::GestureData::line, blender::math::normalize(), blender::ed::sculpt_paint::gesture::GestureData::shape_type, and blender::ed::sculpt_paint::gesture::LineData::use_side_planes.
Referenced by generate_geometry(), and gesture_to_screen_points().
|
static |
Definition at line 185 of file sculpt_trim.cc.
References blender::copy_v3_v3(), get_origin_and_normal(), blender::ed::sculpt_paint::trim::TrimOperation::initial_location, blender::ed::sculpt_paint::trim::TrimOperation::initial_normal, blender::mul_mat3_m4_v3(), blender::mul_v3_m4v3(), blender::negate_v3(), blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::trim::TrimOperation::orientation, Surface, blender::ed::sculpt_paint::gesture::GestureData::vc, View, and blender::ed::sculpt_paint::gesture::GestureData::world_space_view_normal.
Referenced by calculate_depth(), generate_geometry(), and get_origin_and_normal().
|
static |
Definition at line 682 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::Operation::apply_for_symmetry_pass, blender::ed::sculpt_paint::gesture::Operation::begin, Difference, blender::ed::sculpt_paint::gesture::Operation::end, blender::ed::sculpt_paint::trim::TrimOperation::extrude_mode, gesture_apply_for_symmetry_pass(), gesture_begin(), gesture_end(), init_operation(), blender::ed::sculpt_paint::trim::TrimOperation::initial_hit, blender::ed::sculpt_paint::gesture::Line, blender::ed::sculpt_paint::trim::TrimOperation::mode, blender::ed::sculpt_paint::trim::TrimOperation::op, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::ed::sculpt_paint::trim::TrimOperation::orientation, blender::wmOperator::ptr, blender::ed::sculpt_paint::trim::TrimOperation::reports, blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::ed::sculpt_paint::gesture::GestureData::shape_type, blender::ed::sculpt_paint::trim::TrimOperation::solver_mode, blender::ed::sculpt_paint::trim::TrimOperation::use_cursor_depth, and View.
Referenced by gesture_box_exec(), gesture_lasso_exec(), gesture_line_exec(), gesture_polyline_exec(), and init_operation().
|
static |
Definition at line 799 of file sculpt_trim.cc.
References C, blender::copy_v3_v3(), blender::CTX_data_active_object(), blender::ed::sculpt_paint::cursor_geometry_info_update(), float, blender::ed::sculpt_paint::trim::TrimOperation::initial_hit, blender::ed::sculpt_paint::trim::TrimOperation::initial_location, blender::ed::sculpt_paint::trim::TrimOperation::initial_normal, initialize_cursor_info(), blender::ed::sculpt_paint::gesture::GestureData::operation, blender::wmOperator::ptr, blender::RNA_int_get_array(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by gesture_box_exec(), gesture_lasso_exec(), gesture_line_exec(), gesture_polyline_exec(), and initialize_cursor_info().
|
static |
Definition at line 708 of file sculpt_trim.cc.
References Difference, extrude_modes, Fixed, INT_MAX, blender::geometry::boolean::Manifold, operation_types, operator_properties(), orientation_types, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_int_vector(), blender::RNA_def_property_flag(), solver_items, blender::wmOperatorType::srna, and View.
Referenced by operator_properties(), SCULPT_OT_trim_box_gesture(), SCULPT_OT_trim_lasso_gesture(), SCULPT_OT_trim_line_gesture(), and SCULPT_OT_trim_polyline_gesture().
|
static |
Convert the object-space axis-aligned bounding box (expressed as its minimum and maximum corners) into a screen-space rectangle, returns zero if the result is empty.
Definition at line 294 of file sculpt_trim.cc.
References blender::BLI_rcti_do_minmax_v(), blender::BLI_rcti_init_minmax(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_project_float_v2_m4(), paint_convert_bb_to_rect(), blender::rcti::xmax, blender::rcti::xmin, blender::rcti::ymax, and blender::rcti::ymin.
Referenced by calc_expand_factor(), and paint_convert_bb_to_rect().
|
static |
Definition at line 768 of file sculpt_trim.cc.
References blender::BKE_report(), BLI_assert_unreachable, blender::bke::pbvh::BMesh, blender::bke::pbvh::Grids, report_invalid_mode(), and blender::RPT_ERROR.
Referenced by can_exec(), and report_invalid_mode().
| void blender::ed::sculpt_paint::trim::SCULPT_OT_trim_box_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 967 of file sculpt_trim.cc.
References blender::ed::sculpt_paint::gesture::Box, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_box_exec(), gesture_box_invoke(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), operator_properties(), blender::OPTYPE_REGISTER, blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), SCULPT_OT_trim_box_gesture(), blender::WM_gesture_box_modal(), and blender::WM_operator_properties_border().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_trim_box_gesture().
| void blender::ed::sculpt_paint::trim::SCULPT_OT_trim_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 946 of file sculpt_trim.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_lasso_exec(), gesture_lasso_invoke(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Lasso, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), operator_properties(), blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_REGISTER, blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), SCULPT_OT_trim_lasso_gesture(), blender::WM_gesture_lasso_modal(), and blender::WM_operator_properties_gesture_lasso().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_trim_lasso_gesture().
| void blender::ed::sculpt_paint::trim::SCULPT_OT_trim_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 989 of file sculpt_trim.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_line_exec(), gesture_line_invoke(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Line, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), operator_properties(), blender::OPTYPE_REGISTER, blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), SCULPT_OT_trim_line_gesture(), blender::WM_CURSOR_EDIT, blender::WM_gesture_straightline_oneshot_modal(), and blender::WM_operator_properties_gesture_straightline().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_trim_line_gesture().
| void blender::ed::sculpt_paint::trim::SCULPT_OT_trim_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1010 of file sculpt_trim.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_polyline_exec(), gesture_polyline_invoke(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Lasso, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), operator_properties(), blender::OPTYPE_REGISTER, blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), SCULPT_OT_trim_polyline_gesture(), blender::WM_gesture_polyline_modal(), and blender::WM_operator_properties_gesture_polyline().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_trim_polyline_gesture().
|
static |
Definition at line 151 of file sculpt_trim.cc.
References blender::BKE_id_free(), blender::BKE_mesh_from_bmesh_nomain(), blender::bm, blender::BM_EDGE, blender::BM_ELEM_TAG, blender::BM_FACE, blender::BM_mesh_bm_from_me(), blender::BM_mesh_create(), blender::BM_mesh_elem_hflag_disable_all(), blender::BM_mesh_elem_hflag_enable_all(), blender::BM_mesh_free(), blender::BM_VERT, BMALLOC_TEMPLATE_FROM_ME, BMO_FLAG_DEFAULTS, blender::BMO_FLAG_RESPECT_HIDE, blender::BMO_op_callf(), blender::BMeshFromMeshParams::calc_face_normal, blender::BMeshToMeshParams::calc_object_remap, blender::BMeshFromMeshParams::calc_vert_normal, blender::ed::sculpt_paint::trim::TrimOperation::mesh, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::result, update_normals(), and blender::BMeshCreateParams::use_toolflags.
Referenced by generate_geometry(), gesture_apply_for_symmetry_pass(), and update_normals().
|
static |
Definition at line 96 of file sculpt_trim.cc.
Referenced by operator_properties().
|
static |
Definition at line 58 of file sculpt_trim.cc.
Referenced by operator_properties().
|
static |
Definition at line 77 of file sculpt_trim.cc.
Referenced by operator_properties().
|
static |
Definition at line 110 of file sculpt_trim.cc.
Referenced by operator_properties().