Blender V4.3
blender::bke::pbvh::uv_islands::UVPrimitive Struct Reference

#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 UVVertexget_uv_vertex (const MeshData &mesh_data, const uint8_t mesh_vert_index) const
 
UVEdgeget_uv_edge (const float2 uv1, const float2 uv2) const
 
UVEdgeget_uv_edge (const int v1, const int v2) const
 
bool contains_uv_vertex (const UVVertex *uv_vertex) const
 
const UVVertexget_other_uv_vertex (const UVVertex *v1, const UVVertex *v2) const
 
UVBorder extract_border () const
 

Public Attributes

const int primitive_i
 
Vector< UVEdge *, 3 > edges
 

Detailed Description

Definition at line 176 of file pbvh_uv_islands.hh.

Constructor & Destructor Documentation

◆ UVPrimitive()

blender::bke::pbvh::uv_islands::UVPrimitive::UVPrimitive ( const int primitive_i)
explicit

Definition at line 1285 of file pbvh_uv_islands.cc.

Member Function Documentation

◆ contains_uv_vertex()

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().

◆ extract_border()

UVBorder blender::bke::pbvh::uv_islands::UVPrimitive::extract_border ( ) const

◆ get_other_uv_vertex()

const UVVertex * blender::bke::pbvh::uv_islands::UVPrimitive::get_other_uv_vertex ( const UVVertex * v1,
const UVVertex * v2 ) const

◆ get_uv_edge() [1/2]

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().

◆ get_uv_edge() [2/2]

UVEdge * blender::bke::pbvh::uv_islands::UVPrimitive::get_uv_edge ( const int v1,
const int v2 ) const

◆ get_uv_vertex()

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.

◆ has_shared_edge() [1/2]

bool blender::bke::pbvh::uv_islands::UVPrimitive::has_shared_edge ( const MeshData & mesh_data,
int other_triangle_index ) const

◆ has_shared_edge() [2/2]

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().

◆ shared_edges()

Vector< std::pair< UVEdge *, UVEdge * > > blender::bke::pbvh::uv_islands::UVPrimitive::shared_edges ( UVPrimitive & other)

Member Data Documentation

◆ edges

◆ primitive_i

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().


The documentation for this struct was generated from the following files: