Lagrange
Loading...
Searching...
No Matches
UVOverlapResult< Scalar, Index > Struct Template Reference

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< Scalaroverlap_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.
 

Detailed Description

template<typename Scalar, typename Index>
struct lagrange::bvh::UVOverlapResult< Scalar, Index >

Result of compute_uv_overlap.

Template Parameters
ScalarMesh scalar type.
IndexMesh index type.

Member Data Documentation

◆ has_overlap

template<typename Scalar, typename Index>
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.

◆ overlap_area

template<typename Scalar, typename Index>
std::optional<Scalar> 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.

◆ overlapping_pairs

template<typename Scalar, typename Index>
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.

◆ overlap_coloring_id

template<typename Scalar, typename Index>
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.


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