|
Blender V5.0
|
#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 279 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 1036 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, mask(), 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 407 of file pbvh_uv_islands.cc.
References uv_primitives.
| void blender::bke::pbvh::uv_islands::UVIsland::extract_borders | ( | ) |
Initialize the border attribute.
Definition at line 439 of file pbvh_uv_islands.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), borders, blender::bke::pbvh::uv_islands::UVBorder::extract_from_edges(), blender::bke::pbvh::uv_islands::UVEdge::is_border_edge(), 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 397 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 387 of file pbvh_uv_islands.cc.
References uv_primitives.
Definition at line 342 of file pbvh_uv_islands.cc.
References e, lookup(), blender::bke::pbvh::uv_islands::UVVertex::uv, blender::bke::pbvh::uv_islands::UVVertex::uv_edges, blender::bke::pbvh::uv_islands::UVVertex::vertex, and blender::bke::pbvh::uv_islands::UVEdge::vertices.
Definition at line 315 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::UVVertex::uv, 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 359 of file pbvh_uv_islands.cc.
Definition at line 327 of file pbvh_uv_islands.cc.
References lookup(), result, uv_vertex_lookup, uv_vertices, and blender::bke::pbvh::uv_islands::UVVertex::vertex.
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 1065 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 293 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), extend_border(), extract_borders(), 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 285 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 287 of file pbvh_uv_islands.hh.
Referenced by lookup_or_create().
| VectorList<UVPrimitive> blender::bke::pbvh::uv_islands::UVIsland::uv_primitives |
Definition at line 288 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(), print_debug(), and blender::bke::pbvh::pixels::UVPrimitiveLookup::UVPrimitiveLookup().
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 299 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 286 of file pbvh_uv_islands.hh.
Referenced by lookup_or_create(), and blender::bke::pbvh::uv_islands::reset_extendability_flags().