21 .default_value(0.001f)
39 if (
mesh ==
nullptr) {
46 face_evaluator.
add(selection_field);
47 face_evaluator.evaluate();
48 const IndexMask selection = face_evaluator.get_evaluated_as_mask(0);
61 for (
const int mp_index : selection) {
108 selection_field(selection_field),
123 mesh_component, selection_field, uv_field,
rotate, margin, domain);
133 const bool rotate =
params.extract_input<
bool>(
"Rotate");
134 const float margin =
params.extract_input<
float>(
"Margin");
137 selection_field, uv_field,
rotate, margin)));
@ GEO_COMPONENT_TYPE_MESH
#define NODE_CLASS_CONVERTER
#define GEO_NODE_UV_PACK_ISLANDS
void nodeRegisterType(struct bNodeType *ntype)
static uint8 component(Color32 c, uint i)
void GEO_uv_parametrizer_flush(ParamHandle *handle)
ParamHandle * GEO_uv_parametrizer_construct_begin(void)
void GEO_uv_parametrizer_face_add(ParamHandle *handle, const ParamKey key, const int nverts, const ParamKey *vkeys, const float **co, float **uv, const bool *pin, const bool *select)
void GEO_uv_parametrizer_pack(ParamHandle *handle, float margin, bool do_rotate, bool ignore_pinned)
void GEO_uv_parametrizer_construct_end(ParamHandle *handle, bool fill, bool topology_from_uvs, int *count_fail)
void GEO_uv_parametrizer_delete(ParamHandle *handle)
SIMD_FORCE_INLINE btVector3 rotate(const btVector3 &wAxis, const btScalar angle) const
Return a rotated version of this vector.
MutableSpan< T > as_mutable_span()
static VArray ForContainer(ContainerT container)
int add(GField field, GVArray *varray_ptr)
StringRefNull description() const
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static VArray< float3 > construct_uv_gvarray(const MeshComponent &component, const Field< bool > selection_field, const Field< float3 > uv_field, const bool rotate, const float margin, const eAttrDomain domain)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_uv_pack_islands()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare