Blender V5.0
blender::nodes::node_geo_uv_pack_islands_cc Namespace Reference

Classes

class  PackIslandsFieldInput

Enumerations

enum class  ShapeMethod : int16_t { Aabb = 0 , Convex = 1 , Concave = 2 }

Functions

static eUVPackIsland_ShapeMethod convert_shape_method (const ShapeMethod method)
static void node_declare (NodeDeclarationBuilder &b)
static VArray< float3construct_uv_gvarray (const Mesh &mesh, const Field< bool > selection_field, const Field< float3 > uv_field, const bool rotate, const float margin, const eUVPackIsland_ShapeMethod shape_method, const AttrDomain domain)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Variables

static const EnumPropertyItem shape_method_items []

Enumeration Type Documentation

◆ ShapeMethod

Local node enum that maps to eUVPackIsland_ShapeMethod in GEO_uv_pack.hh.

Enumerator
Aabb 
Convex 
Concave 

Definition at line 15 of file node_geo_uv_pack_islands.cc.

Function Documentation

◆ construct_uv_gvarray()

◆ convert_shape_method()

eUVPackIsland_ShapeMethod blender::nodes::node_geo_uv_pack_islands_cc::convert_shape_method ( const ShapeMethod method)
static

◆ node_declare()

void blender::nodes::node_geo_uv_pack_islands_cc::node_declare ( NodeDeclarationBuilder & b)
static

◆ node_geo_exec()

void blender::nodes::node_geo_uv_pack_islands_cc::node_geo_exec ( GeoNodeExecParams params)
static

Definition at line 188 of file node_geo_uv_pack_islands.cc.

References convert_shape_method(), params, and rotate().

Referenced by node_register().

◆ node_register()

Variable Documentation

◆ shape_method_items

const EnumPropertyItem blender::nodes::node_geo_uv_pack_islands_cc::shape_method_items[]
static
Initial value:
= {
"AABB",
0,
N_("Bounding Box"),
N_("Use axis-aligned bounding boxes for packing (fastest, least space efficient)")},
"CONVEX",
0,
N_("Convex Hull"),
N_("Use convex hull approximation of islands (good balance of speed and space efficiency)")},
"CONCAVE",
0,
N_("Exact Shape"),
N_("Use exact geometry for most efficient packing (slowest)")},
{0, nullptr, 0, nullptr, nullptr},
}
#define N_(msgid)

Definition at line 21 of file node_geo_uv_pack_islands.cc.

Referenced by node_declare().