|
Blender V4.3
|
Functions | |
| static bool | sculpt_geodesic_mesh_test_dist_add (Span< float3 > vert_positions, const int v0, const int v1, const int v2, MutableSpan< float > dists, const Set< int > &initial_verts) |
| Array< float > | distances_create (const Span< float3 > vert_positions, const Span< int2 > edges, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_edge_map, const GroupedSpan< int > edge_to_face_map, const Span< bool > hide_poly, const Set< int > &initial_verts, const float limit_radius) |
| Array< float > blender::ed::sculpt_paint::geodesic::distances_create | ( | Span< float3 > | vert_positions, |
| Span< int2 > | edges, | ||
| OffsetIndices< int > | faces, | ||
| Span< int > | corner_verts, | ||
| GroupedSpan< int > | vert_to_edge_map, | ||
| GroupedSpan< int > | edge_to_face_map, | ||
| Span< bool > | hide_poly, | ||
| const Set< int > & | initial_verts, | ||
| float | limit_radius ) |
Returns an array indexed by vertex index containing the geodesic distance to the closest vertex in the initial vertex set.
Definition at line 81 of file sculpt_geodesic.cc.
References BLI_LINKSTACK_DECLARE, BLI_LINKSTACK_FREE, BLI_LINKSTACK_INIT, BLI_LINKSTACK_POP, BLI_LINKSTACK_PUSH, BLI_LINKSTACK_SIZE, BLI_LINKSTACK_SWAP, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), e, ELEM, blender::bits::BitVector< InlineBufferCapacity, Allocator >::fill(), FLT_MAX, blender::Span< T >::index_range(), blender::Span< T >::is_empty(), len_squared_v3v3(), LinkNode::next, POINTER_AS_INT, POINTER_FROM_INT, sculpt_geodesic_mesh_test_dist_add(), SCULPT_GEODESIC_VERTEX_NONE, blender::Span< T >::size(), blender::Span< T >::slice(), v, and v2.
Referenced by blender::ed::sculpt_paint::expand::geodesic_falloff_create().
|
static |
Definition at line 42 of file sculpt_geodesic.cc.
References BLI_assert, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), FLT_MAX, geodesic_distance_propagate_across_triangle(), len_v3(), SCULPT_GEODESIC_VERTEX_NONE, sub_v3_v3v3(), and v2.
Referenced by distances_create().