Skip to content

ludus::foundation::geometry::SurfaceMeshProfile

Ludus Wiki · API overview · Browse API

Struct

Mesh accuracy, failure behavior and budgets for TryBuildSurfaceMesh.
Errors are measured against the prepared surface, the exact patches of its stored float32 controls, in chunk-relative asset units. Source narrowing error is checked separately by TryPrepareSurface.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

#include <ludus/foundation/geometry/tessellation.hpp>
struct ludus::foundation::geometry::SurfaceMeshProfile final

Fields

Precision

PrecisionProfile ludus::foundation::geometry::SurfaceMeshProfile::Precision = PrecisionProfile::Strict
Strict accepts only Certified or Exact bounds.

Related types: PrecisionProfile

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

PositionError

float64 ludus::foundation::geometry::SurfaceMeshProfile::PositionError = 0.0
Asset units; finite, > 0 and at least the surface's PositionFloor.

Related types: float64

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

NormalAngleError

float64 ludus::foundation::geometry::SurfaceMeshProfile::NormalAngleError = 0.0
Radians; 0 requests no normal bound, otherwise in (0, pi/2). The only available normal bound is Estimated, so a Strict profile with a nonzero value fails with UnsupportedPrecision.

Related types: float64

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

Degeneracy

SurfaceDegeneracyPolicy ludus::foundation::geometry::SurfaceMeshProfile::Degeneracy = SurfaceDegeneracyPolicy::Reject
Singular normal treatment.

Related types: SurfaceDegeneracyPolicy

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

IsCoarserMeshAccepted

bool ludus::foundation::geometry::SurfaceMeshProfile::IsCoarserMeshAccepted = false
Visual only: when MaxLevel stops refinement, emit the finest grids reached and report the achieved bounds instead of failing. A Strict profile must leave it false.

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp

Limits

SurfaceMeshLimits ludus::foundation::geometry::SurfaceMeshProfile::Limits {}
Work and output budgets.

Related types: SurfaceMeshLimits

Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp