Skip to content

ludus::foundation::geometry::SurfaceMeshPatch

Ludus Wiki · API overview · Browse API

Struct

Grid and error record of one tessellated patch.

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

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

Fields

LevelU

usize ludus::foundation::geometry::SurfaceMeshPatch::LevelU = 0
2^LevelU cells along u.

Related types: usize

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

LevelV

usize ludus::foundation::geometry::SurfaceMeshPatch::LevelV = 0
2^LevelV cells along v.

Related types: usize

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

FirstVertex

usize ludus::foundation::geometry::SurfaceMeshPatch::FirstVertex = 0
First render vertex; vertex (i, j) is FirstVertex + i * (2^LevelV + 1) + j.

Related types: usize

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

VertexCount

usize ludus::foundation::geometry::SurfaceMeshPatch::VertexCount = 0
(2^LevelU + 1) * (2^LevelV + 1).

Related types: usize

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

FirstIndex

usize ludus::foundation::geometry::SurfaceMeshPatch::FirstIndex = 0
First entry of this patch's triangles in SurfaceMeshView::Indices.

Related types: usize

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

IndexCount

usize ludus::foundation::geometry::SurfaceMeshPatch::IndexCount = 0
6 * 2^LevelU * 2^LevelV.

Related types: usize

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

PositionBound

float64 ludus::foundation::geometry::SurfaceMeshPatch::PositionBound = 0.0
Certified largest distance between a cell and its two triangles.

Related types: float64

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

NormalAngleEstimate

float64 ludus::foundation::geometry::SurfaceMeshPatch::NormalAngleEstimate = 0.0
Estimated largest sampled normal angle in a cell, radians.

Related types: float64

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

IsWithinTolerance

bool ludus::foundation::geometry::SurfaceMeshPatch::IsWithinTolerance = false
Both bounds fit the profile; false only for an accepted coarser grid.

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