Lagrange
Loading...
Searching...
No Matches
RepackOptions Struct Reference

Options controlling a repack (existing UVs → new packing, no chart computation). More...

#include <lagrange/xatlas/Options.h>

Public Attributes

PackOptions packing
 Packing options.
 
std::string_view input_uv_attribute_name
 Input indexed UV attribute name. Must be an indexed float or double UV attribute.
 
std::string_view input_chart_attribute_name
 Optional per-facet chart id attribute name.
 
MultiAtlasPolicy multi_atlas_policy = MultiAtlasPolicy::NormalizePerTile
 Multi-atlas encoding policy for the output UV attribute.
 
std::string_view output_uv_attribute_name = "@uv"
 Output indexed UV attribute name.
 
std::string_view output_atlas_attribute_name = ""
 Output corner attribute name for the per-corner xatlas atlas tile id (only written when attribute name is non-empty).
 
std::string_view output_chart_attribute_name = ""
 Output corner attribute name for the per-corner xatlas chart id (only written when attribute name is non-empty).
 
bool enable_sharing_uvs_between_instances = false
 Whether to share generated UVs between instances of the same scene mesh.
 

Detailed Description

Options controlling a repack (existing UVs → new packing, no chart computation).

Member Data Documentation

◆ input_chart_attribute_name

std::string_view input_chart_attribute_name

Optional per-facet chart id attribute name.

When set, each input UV island is pinned to its own chart; otherwise xatlas re-derives charts from shared UV edges.

◆ output_uv_attribute_name

std::string_view output_uv_attribute_name = "@uv"

Output indexed UV attribute name.

If the attribute already exists, its value type is preserved; otherwise a new attribute is created using the mesh Scalar type.

◆ enable_sharing_uvs_between_instances

bool enable_sharing_uvs_between_instances = false

Whether to share generated UVs between instances of the same scene mesh.

When false, each scene instance is repacked independently.


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