|
Blender V4.3
|
#include <pbvh_uv_islands.hh>
Public Attributes | |
| int | id |
| VectorList< UVVertex > | uv_vertices |
| VectorList< UVEdge > | uv_edges |
| VectorList< UVPrimitive > | uv_primitives |
| Vector< UVBorder > | borders |
| Map< int64_t, Vector< UVVertex * > > | uv_vertex_lookup |
UVIsland | |
| UVVertex * | lookup (const UVVertex &vertex) |
| UVVertex * | lookup_or_create (const UVVertex &vertex) |
| UVEdge * | lookup (const UVEdge &edge) |
| UVEdge * | lookup_or_create (const UVEdge &edge) |
| void | extract_borders () |
| void | extend_border (const MeshData &mesh_data, const UVIslandsMask &mask, const short island_index) |
| bool | has_shared_edge (const UVPrimitive &primitive) const |
| bool | has_shared_edge (const MeshData &mesh_data, const int primitive_i) const |
| void | extend_border (const UVPrimitive &primitive) |
| void | print_debug (const MeshData &mesh_data) const |
Definition at line 284 of file pbvh_uv_islands.hh.
| void blender::bke::pbvh::uv_islands::UVIsland::extend_border | ( | const MeshData & | mesh_data, |
| const UVIslandsMask & | mask, | ||
| const short | island_index ) |
Iterative extend border to fit the mask.
Definition at line 1045 of file pbvh_uv_islands.cc.
References borders, blender::bke::pbvh::uv_islands::extend_at_vert(), blender::bke::pbvh::uv_islands::UVVertex::flags, blender::bke::pbvh::uv_islands::UVVertex::is_extended, blender::bke::pbvh::uv_islands::reset_extendability_flags(), blender::bke::pbvh::uv_islands::sharpest_border_corner(), tile, and blender::bke::pbvh::uv_islands::UVVertex::uv.
| void blender::bke::pbvh::uv_islands::UVIsland::extend_border | ( | const UVPrimitive & | primitive | ) |
Definition at line 410 of file pbvh_uv_islands.cc.
References append, and uv_primitives.
| void blender::bke::pbvh::uv_islands::UVIsland::extract_borders | ( | ) |
Initialize the border attribute.
Definition at line 444 of file pbvh_uv_islands.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::pbvh::uv_islands::UVBorder::extract_from_edges(), and uv_primitives.
| bool blender::bke::pbvh::uv_islands::UVIsland::has_shared_edge | ( | const MeshData & | mesh_data, |
| const int | primitive_i ) const |
Definition at line 398 of file pbvh_uv_islands.cc.
References uv_primitives.
| bool blender::bke::pbvh::uv_islands::UVIsland::has_shared_edge | ( | const UVPrimitive & | primitive | ) | const |
Definition at line 386 of file pbvh_uv_islands.cc.
References uv_primitives.
Definition at line 341 of file pbvh_uv_islands.cc.
References e, lookup(), blender::bke::pbvh::uv_islands::UVVertex::uv, blender::bke::pbvh::uv_islands::UVVertex::uv_edges, and blender::bke::pbvh::uv_islands::UVVertex::vertex.
Definition at line 314 of file pbvh_uv_islands.cc.
References uv_vertex_lookup, v, and blender::bke::pbvh::uv_islands::UVVertex::vertex.
Referenced by lookup(), lookup_or_create(), and lookup_or_create().
Definition at line 358 of file pbvh_uv_islands.cc.
References lookup(), result, uv_edges, and blender::bke::pbvh::uv_islands::UVEdge::uv_primitives.
Definition at line 326 of file pbvh_uv_islands.cc.
References lookup(), result, blender::bke::pbvh::uv_islands::UVVertex::uv_edges, uv_vertex_lookup, and uv_vertices.
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(), and blender::bke::pbvh::uv_islands::extend_at_vert().
| void blender::bke::pbvh::uv_islands::UVIsland::print_debug | ( | const MeshData & | mesh_data | ) | const |
Print a python script to the console that generates a mesh representing this UVIsland.
Definition at line 1074 of file pbvh_uv_islands.cc.
References uv_primitives, and blender::bke::pbvh::uv_islands::MeshData::vert_positions.
List of borders of this island. There can be multiple borders per island as a border could be completely encapsulated by another one.
Definition at line 298 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), extend_border(), blender::bke::pbvh::uv_islands::reset_extendability_flags(), and blender::bke::pbvh::uv_islands::sharpest_border_corner().
| int blender::bke::pbvh::uv_islands::UVIsland::id |
Id (Index) of the UVIsland. Contains the index of this island in UVIslands.
Useful during debugging to set a breaking condition on a specific island/vert.
Definition at line 290 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::UVIslands::UVIslands().
| VectorList<UVEdge> blender::bke::pbvh::uv_islands::UVIsland::uv_edges |
Definition at line 292 of file pbvh_uv_islands.hh.
Referenced by lookup_or_create().
| VectorList<UVPrimitive> blender::bke::pbvh::uv_islands::UVIsland::uv_primitives |
Definition at line 293 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::add_primitive(), blender::bke::pbvh::uv_islands::add_uv_island(), blender::bke::pbvh::uv_islands::add_uv_primitive_fill(), blender::bke::pbvh::uv_islands::add_uv_primitive_shared_uv_edge(), blender::bke::pbvh::uv_islands::extend_at_vert(), extend_border(), extract_borders(), has_shared_edge(), has_shared_edge(), and print_debug().
Key is mesh vert index, Value is list of UVVertices that refer to the mesh vertex with that index. Map is used internally to quickly lookup similar UVVertices.
Definition at line 304 of file pbvh_uv_islands.hh.
Referenced by lookup(), and lookup_or_create().
| VectorList<UVVertex> blender::bke::pbvh::uv_islands::UVIsland::uv_vertices |
Definition at line 291 of file pbvh_uv_islands.hh.
Referenced by lookup_or_create(), and blender::bke::pbvh::uv_islands::reset_extendability_flags().