|
Blender V5.3
|
#include <bmesh_polygon.hh>
Classes | |
| class | Iterator |
Public Member Functions | |
| constexpr | IndexRange ()=default |
| constexpr | IndexRange (int64_t size) |
| constexpr | IndexRange (const int64_t start, const int64_t size) |
| constexpr Iterator | begin () const |
| constexpr Iterator | end () const |
| constexpr int64_t | operator[] (int64_t index) const |
| constexpr int64_t | size () const |
| constexpr IndexRange | index_range () const |
| constexpr bool | is_empty () const |
| constexpr IndexRange | with_new_end (const int64_t new_end) const |
| constexpr IndexRange | after (int64_t n) const |
| constexpr IndexRange | before (int64_t n) const |
| constexpr int64_t | first () const |
| constexpr int64_t | last (const int64_t n=0) const |
| constexpr int64_t | one_before_start () const |
| constexpr int64_t | one_after_last () const |
| constexpr int64_t | start () const |
| constexpr bool | contains (int64_t value) const |
| constexpr bool | contains (const IndexRange range) const |
| constexpr IndexRange | slice (int64_t start, int64_t size) const |
| constexpr IndexRange | slice (IndexRange range) const |
| constexpr IndexRange | intersect (IndexRange other) const |
| constexpr IndexRange | drop_front (int64_t n) const |
| constexpr IndexRange | drop_back (int64_t n) const |
| constexpr IndexRange | take_front (int64_t n) const |
| constexpr IndexRange | take_back (int64_t n) const |
| constexpr IndexRange | shift (int64_t n) const |
Static Public Member Functions | |
| static constexpr IndexRange | from_begin_size (const int64_t begin, const int64_t size) |
| static constexpr IndexRange | from_begin_end (const int64_t begin, const int64_t end) |
| static constexpr IndexRange | from_begin_end_inclusive (const int64_t begin, const int64_t last) |
| static constexpr IndexRange | from_end_size (const int64_t end, const int64_t size) |
| static constexpr IndexRange | from_single (const int64_t index) |
Friends | |
| constexpr friend bool | operator== (IndexRange a, IndexRange b) |
| constexpr friend bool | operator!= (IndexRange a, IndexRange b) |
| std::ostream & | operator<< (std::ostream &stream, IndexRange range) |
Definition at line 54 of file bmesh_polygon.hh.
|
constexprdefault |
|
inlineexplicitconstexpr |
Definition at line 62 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 67 of file bmesh_polygon.hh.
|
inlineconstexpr |
Create a new range starting at the end of the current one.
Definition at line 185 of file bmesh_polygon.hh.
Referenced by blender::ed::sculpt_paint::grease_pencil_apply_fill().
|
inlineconstexpr |
Create a new range that ends at the start of the current one.
Definition at line 194 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 121 of file bmesh_polygon.hh.
References blender::ATTR_NONNULL(), and blender::BM_face_calc_tangent_from_vert_diagonal().
|
inlineconstexpr |
Returns true when all indices in the given range are also in the current range.
Definition at line 259 of file bmesh_polygon.hh.
|
inlineconstexpr |
Returns true when the range contains a certain number, otherwise false.
Definition at line 251 of file bmesh_polygon.hh.
References blender::ATTR_NONNULL(), blender::bm, blender::BM_face_splits_check_legal(), and len().
Referenced by blender::DRW_select_buffer_elem_get(), blender::ED_userpref_asset_library_active_get(), blender::new_project_existing_directory_update(), and blender::new_project_root_path().
|
inlineconstexpr |
Returns a new IndexRange with n elements removed from the end of the range. This invokes undefined behavior when n is negative.
Definition at line 317 of file bmesh_polygon.hh.
Referenced by blender::BLI_lasso_is_edge_inside().
|
inlineconstexpr |
Returns a new IndexRange with n elements removed from the beginning of the range. This invokes undefined behavior when n is negative.
Definition at line 306 of file bmesh_polygon.hh.
Referenced by blender::BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), blender::BLI_lasso_boundbox(), blender::bm_to_mesh_edges(), blender::bm_to_mesh_faces(), blender::bm_to_mesh_loops(), blender::bm_to_mesh_verts(), blender::calculate_target_locations(), and blender::find_closest_point().
|
inlineconstexpr |
Definition at line 126 of file bmesh_polygon.hh.
|
inlineconstexpr |
Get the first element in the range. Asserts when the range is empty.
Definition at line 204 of file bmesh_polygon.hh.
References blender::ATTR_NONNULL(), blender::ATTR_WARN_UNUSED_RESULT, and blender::BM_face_point_inside_test().
|
inlinestaticconstexpr |
Definition at line 78 of file bmesh_polygon.hh.
|
inlinestaticconstexpr |
Definition at line 83 of file bmesh_polygon.hh.
|
inlinestaticconstexpr |
Definition at line 73 of file bmesh_polygon.hh.
|
inlinestaticconstexpr |
Definition at line 88 of file bmesh_polygon.hh.
References blender::ATTR_NONNULL(), blender::ATTR_WARN_UNUSED_RESULT, and blender::BM_face_calc_perimeter().
|
inlinestaticconstexpr |
Definition at line 93 of file bmesh_polygon.hh.
References blender::BM_face_calc_perimeter_with_mat3().
|
inlineconstexpr |
Definition at line 161 of file bmesh_polygon.hh.
|
inlineconstexpr |
Returns a new IndexRange that contains the intersection of the current one with the given range. Returns empty range if there are no overlapping indices. The returned range is always a valid slice of this range.
Definition at line 294 of file bmesh_polygon.hh.
|
inlineconstexpr |
Returns true if the size is zero.
Definition at line 169 of file bmesh_polygon.hh.
Get the nth last element in the range. Asserts when the range is empty or when n is negative.
Definition at line 214 of file bmesh_polygon.hh.
Referenced by blender::gpu::Line::last(), and blender::MOD_lineart_gpencil_generate_v3().
|
inlineconstexpr |
Get the element one after the end. The returned value is undefined when the range is empty.
Definition at line 235 of file bmesh_polygon.hh.
Referenced by blender::split_index_range_by_alignment().
|
inlineconstexpr |
Get the element one before the beginning. The returned value is undefined when the range is empty, and the range must start after zero already.
Definition at line 226 of file bmesh_polygon.hh.
Access an element in the range.
Definition at line 134 of file bmesh_polygon.hh.
References blender::ATTR_NONNULL().
|
inlineconstexpr |
Move the range forward or backward within the larger array. The amount may be negative, but its absolute value cannot be greater than the existing start of the range.
Definition at line 350 of file bmesh_polygon.hh.
|
inlineconstexpr |
Get the amount of numbers in the range.
Definition at line 156 of file bmesh_polygon.hh.
Referenced by blender::gpu::Line::last(), blender::MOD_solidify_nonmanifold_modifyMesh(), and blender::gpu::PruningStream::parse_token_range().
|
inlineconstexpr |
Definition at line 284 of file bmesh_polygon.hh.
|
inlineconstexpr |
Returns a new range, that contains a sub-interval of the current one.
Definition at line 276 of file bmesh_polygon.hh.
|
inlineconstexpr |
Get the first element in the range. The returned value is undefined when the range is empty.
Definition at line 243 of file bmesh_polygon.hh.
Referenced by blender::DRW_select_buffer_context_offset_for_object_elem(), blender::DRW_select_buffer_elem_get(), and blender::MOD_solidify_nonmanifold_modifyMesh().
|
inlineconstexpr |
Returns a new IndexRange that only contains the last n elements. This invokes undefined behavior when n is negative.
Definition at line 339 of file bmesh_polygon.hh.
|
inlineconstexpr |
Returns a new IndexRange that only contains the first n elements. This invokes undefined behavior when n is negative.
Definition at line 328 of file bmesh_polygon.hh.
Referenced by blender::bm_to_mesh_edges(), blender::bm_to_mesh_faces(), blender::bm_to_mesh_loops(), and blender::bm_to_mesh_verts().
|
inlineconstexpr |
Creates a new index range with the same beginning but a different end.
Definition at line 177 of file bmesh_polygon.hh.
|
friend |
Definition at line 148 of file bmesh_polygon.hh.
|
friend |
|
friend |
Two ranges compare equal when they contain the same numbers.
Definition at line 144 of file bmesh_polygon.hh.