|
Blender V5.3
|
#include <pbvh_uv_islands.hh>
Public Member Functions | |
UVPrimitive | |
| UVPrimitive (int primitive_i) | |
| int | get_uv_vert (const UVIsland &island, const MeshData &mesh_data, uint8_t mesh_vert_index) const |
| int | get_uv_edge (const UVIsland &island, float2 uv1, float2 uv2) const |
| int | get_uv_edge (const UVIsland &island, int v1, int v2) const |
| bool | contains_uv_vert (const UVIsland &island, const int uv_vert) const |
| int | get_other_uv_vert (const UVIsland &island, const int v1, const int v2) const |
Public Attributes | |
| int | primitive_i |
| std::array< int, 3 > | edges |
Definition at line 114 of file pbvh_uv_islands.hh.
|
explicit |
Definition at line 1279 of file pbvh_uv_islands.cc.
References primitive_i.
| bool blender::bke::pbvh::uv_islands::UVPrimitive::contains_uv_vert | ( | const UVIsland & | island, |
| const int | uv_vert ) const |
Definition at line 1325 of file pbvh_uv_islands.cc.
References edges, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, and blender::bke::pbvh::uv_islands::UVEdge::verts.
Referenced by get_other_uv_vert().
| int blender::bke::pbvh::uv_islands::UVPrimitive::get_other_uv_vert | ( | const UVIsland & | island, |
| const int | v1, | ||
| const int | v2 ) const |
Definition at line 1336 of file pbvh_uv_islands.cc.
References blender::BLI_assert(), BLI_assert_unreachable, contains_uv_vert(), edges, ELEM, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, blender::v2, and blender::bke::pbvh::uv_islands::UVEdge::verts.
| int blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_edge | ( | const UVIsland & | island, |
| float2 | uv1, | ||
| float2 | uv2 ) const |
Get the UVEdge that share the given uv coordinates. Will assert when no UVEdge found.
Definition at line 1299 of file pbvh_uv_islands.cc.
References BLI_assert_unreachable, edges, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, and blender::bke::pbvh::uv_islands::UVIsland::uv_verts.
| int blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_edge | ( | const UVIsland & | island, |
| int | v1, | ||
| int | v2 ) const |
Definition at line 1312 of file pbvh_uv_islands.cc.
References BLI_assert_unreachable, edges, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, blender::bke::pbvh::uv_islands::UVIsland::uv_verts, and blender::v2.
| int blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_vert | ( | const UVIsland & | island, |
| const MeshData & | mesh_data, | ||
| uint8_t | mesh_vert_index ) const |
Get the UVVert in the order that the verts are ordered in the MeshPrimitive.
Definition at line 1281 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, primitive_i, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, blender::bke::pbvh::uv_islands::UVIsland::uv_verts, and blender::bke::pbvh::uv_islands::UVVert::vert.
Referenced by blender::bke::pbvh::pixels::build_border_triangles().
| std::array<int, 3> blender::bke::pbvh::uv_islands::UVPrimitive::edges |
Definition at line 119 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_vert(), blender::bke::pbvh::uv_islands::UVIsland::extract_borders(), get_other_uv_vert(), get_uv_edge(), get_uv_edge(), get_uv_vert(), blender::bke::pbvh::uv_islands::uv_primitive_append_to_uv_edges(), and blender::bke::pbvh::uv_islands::uv_primitive_append_to_uv_verts().
| int blender::bke::pbvh::uv_islands::UVPrimitive::primitive_i |
Index of the primitive in the original mesh.
Definition at line 118 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::add_primitive(), blender::bke::pbvh::pixels::build_border_triangles(), get_uv_vert(), blender::bke::pbvh::uv_islands::uv_primitive_append_to_uv_edges(), and UVPrimitive().