14#include <lagrange/packing/api.h>
16#include <lagrange/SurfaceMesh.h>
20namespace lagrange::packing {
35#ifndef RECTANGLE_BIN_PACK_OSS
57template <
typename Scalar,
typename Index>
58LA_PACKING_API
void repack_uv_charts(
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
RepackOptions allows one to customize packing options.
Definition repack_uv_charts.h:26
std::string_view chart_attribute_name
Name of the facet attribute that group facets into UV charts.
Definition repack_uv_charts.h:33
std::string_view uv_attribute_name
Name of the indexed attribute to use as UV coordinates.
Definition repack_uv_charts.h:29
bool allow_rotation
Whether to allow box to rotate by 90 degree when packing.
Definition repack_uv_charts.h:37
float margin
Minimum allowed distance between two boxes.
Definition repack_uv_charts.h:48
bool normalize
Whether the output should be normalized to fit into a unit box.
Definition repack_uv_charts.h:43