Blender V5.0
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 171 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 1272 of file pbvh_uv_islands.cc.

References primitive_i.

Referenced by extract_border(), has_shared_edge(), and shared_edges().

Member Function Documentation

◆ contains_uv_vertex()

bool blender::bke::pbvh::uv_islands::UVPrimitive::contains_uv_vertex ( const UVVertex * uv_vertex) const

Definition at line 1357 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

Definition at line 1368 of file pbvh_uv_islands.cc.

References BLI_assert, BLI_assert_unreachable, contains_uv_vertex(), edges, ELEM, and v2.

◆ 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 1331 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

Definition at line 1344 of file pbvh_uv_islands.cc.

References BLI_assert_unreachable, edges, and v2.

◆ 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

◆ 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 1287 of file pbvh_uv_islands.cc.

References edges, has_shared_edge(), i, and UVPrimitive().

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)

Definition at line 1274 of file pbvh_uv_islands.cc.

References edges, has_shared_edge(), i, result, and UVPrimitive().

Member Data Documentation

◆ edges

◆ primitive_i


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