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

Public Types

enum class  ElementTypes { IndexedOrVertex , All }
 Supported element types for UV mesh extraction. More...
 

Public Attributes

std::string_view uv_attribute_name = ""
 Input UV attribute name.
 
ElementTypes element_types = ElementTypes::IndexedOrVertex
 Supported element types for UV attribute lookup.
 

Member Enumeration Documentation

◆ ElementTypes

enum class ElementTypes
strong

Supported element types for UV mesh extraction.

Enumerator
IndexedOrVertex 

Only indexed/vertex attributes (zero-copy, no allocation).

All 

Also supports corner attributes (may allocate an index buffer).

Member Data Documentation

◆ uv_attribute_name

std::string_view uv_attribute_name = ""

Input UV attribute name.

The attribute must be a UV attribute of type UVScalar with 2 channels. Supported element types depend on the element_types option. If empty, the first matching UV attribute will be used.

◆ element_types

Supported element types for UV attribute lookup.

By default, only indexed and vertex attributes are supported (zero-copy). Set to ElementTypes::All to also support corner attributes, which may allocate an index buffer.


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