|
Lagrange
|
Result of compute_uv_overlap. More...
#include <lagrange/bvh/compute_uv_overlap.h>
Public Attributes | |
| bool | has_overlap = false |
| True when at least one pair of UV triangles has a positive-area interior intersection. | |
| std::optional< Scalar > | overlap_area |
| Sum of intersection areas over all overlapping triangle pairs. | |
| std::vector< std::pair< Index, Index > > | overlapping_pairs |
| Sorted list of (i, j) facet-index pairs (i < j) that have a positive-area interior intersection. | |
| AttributeId | overlap_coloring_id = invalid_attribute_id() |
| AttributeId of the per-facet integer coloring attribute written to the mesh. | |
Result of compute_uv_overlap.
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
| bool has_overlap = false |
True when at least one pair of UV triangles has a positive-area interior intersection.
This is the canonical overlap indicator and is valid regardless of compute_overlap_area.
Sum of intersection areas over all overlapping triangle pairs.
std::nullopt when UVOverlapOptions::compute_overlap_area is false or when has_overlap is false. Check has_overlap (not this field) to test for overlap existence.
| std::vector<std::pair<Index, Index> > overlapping_pairs |
Sorted list of (i, j) facet-index pairs (i < j) that have a positive-area interior intersection.
Empty when UVOverlapOptions::compute_overlapping_pairs is false or when there are no overlapping triangles.
| AttributeId overlap_coloring_id = invalid_attribute_id() |
AttributeId of the per-facet integer coloring attribute written to the mesh.
Equals invalid_attribute_id() when UVOverlapOptions::compute_overlap_coloring is false or when there are no overlapping triangles.