|
Blender V4.3
|
#include <pbvh_uv_islands.hh>
Public Member Functions | |
UVPrimitive | |
| UVPrimitive (const int primitive_i) | |
| Vector< std::pair< UVEdge *, UVEdge * > > | shared_edges (UVPrimitive &other) |
| bool | has_shared_edge (const UVPrimitive &other) const |
| bool | has_shared_edge (const MeshData &mesh_data, int other_triangle_index) const |
| const UVVertex * | get_uv_vertex (const MeshData &mesh_data, const uint8_t mesh_vert_index) const |
| UVEdge * | get_uv_edge (const float2 uv1, const float2 uv2) const |
| UVEdge * | get_uv_edge (const int v1, const int v2) const |
| bool | contains_uv_vertex (const UVVertex *uv_vertex) const |
| const UVVertex * | get_other_uv_vertex (const UVVertex *v1, const UVVertex *v2) const |
| UVBorder | extract_border () const |
Public Attributes | |
| const int | primitive_i |
| Vector< UVEdge *, 3 > | edges |
Definition at line 176 of file pbvh_uv_islands.hh.
|
explicit |
Definition at line 1285 of file pbvh_uv_islands.cc.
| bool blender::bke::pbvh::uv_islands::UVPrimitive::contains_uv_vertex | ( | const UVVertex * | uv_vertex | ) | const |
Definition at line 1370 of file pbvh_uv_islands.cc.
References edges.
Referenced by get_other_uv_vertex().
| UVBorder blender::bke::pbvh::uv_islands::UVPrimitive::extract_border | ( | ) | const |
Definition at line 1397 of file pbvh_uv_islands.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), edges, and blender::bke::pbvh::uv_islands::UVBorder::extract_from_edges().
| const UVVertex * blender::bke::pbvh::uv_islands::UVPrimitive::get_other_uv_vertex | ( | const UVVertex * | v1, |
| const UVVertex * | v2 ) const |
Definition at line 1381 of file pbvh_uv_islands.cc.
References BLI_assert, BLI_assert_unreachable, contains_uv_vertex(), edges, ELEM, and v2.
Referenced by blender::bke::pbvh::uv_islands::UVBorderEdge::get_other_uv_vertex().
| UVEdge * blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_edge | ( | const float2 | uv1, |
| const float2 | uv2 ) const |
Get the UVEdge that share the given uv coordinates. Will assert when no UVEdge found.
Definition at line 1344 of file pbvh_uv_islands.cc.
References BLI_assert_unreachable, and edges.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().
| UVEdge * blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_edge | ( | const int | v1, |
| const int | v2 ) const |
Definition at line 1357 of file pbvh_uv_islands.cc.
References BLI_assert_unreachable, edges, v2, and blender::bke::pbvh::uv_islands::UVEdge::vertices.
| const UVVertex * blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_vertex | ( | const MeshData & | mesh_data, |
| const uint8_t | mesh_vert_index ) const |
Get the UVVertex in the order that the verts are ordered in the MeshPrimitive.
Definition at line 1328 of file pbvh_uv_islands.cc.
References BLI_assert_unreachable, blender::bke::pbvh::uv_islands::MeshData::corner_tris, blender::bke::pbvh::uv_islands::MeshData::corner_verts, edges, and primitive_i.
| bool blender::bke::pbvh::uv_islands::UVPrimitive::has_shared_edge | ( | const MeshData & | mesh_data, |
| int | other_triangle_index ) const |
Definition at line 1312 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::MeshData::corner_tris, edges, primitive_i, and blender::bke::pbvh::uv_islands::MeshData::uv_map.
| bool blender::bke::pbvh::uv_islands::UVPrimitive::has_shared_edge | ( | const UVPrimitive & | other | ) | const |
Definition at line 1300 of file pbvh_uv_islands.cc.
References has_shared_edge().
Referenced by has_shared_edge(), and shared_edges().
| Vector< std::pair< UVEdge *, UVEdge * > > blender::bke::pbvh::uv_islands::UVPrimitive::shared_edges | ( | UVPrimitive & | other | ) |
Definition at line 1287 of file pbvh_uv_islands.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), has_shared_edge(), and result.
Definition at line 181 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::add_primitive(), blender::bke::pbvh::uv_islands::add_uv_primitive_fill(), blender::bke::pbvh::uv_islands::add_uv_primitive_shared_uv_edge(), contains_uv_vertex(), extract_border(), get_other_uv_vertex(), get_uv_edge(), get_uv_edge(), get_uv_vertex(), has_shared_edge(), blender::bke::pbvh::uv_islands::uv_primitive_append_to_uv_edges(), and blender::bke::pbvh::uv_islands::uv_primitive_append_to_uv_vertices().
| const int blender::bke::pbvh::uv_islands::UVPrimitive::primitive_i |
Index of the primitive in the original mesh.
Definition at line 180 of file pbvh_uv_islands.hh.
Referenced by get_uv_vertex(), and has_shared_edge().