ludus::foundation::geometry::SurfaceMeshVertex¶
Ludus Wiki · API overview · Browse API
Struct
One render vertex: a shared position plus per-patch shading data.
Vertices of different patches at one point copy the same Position bitwise and name the same PositionIndex, while their normals and parameters may differ (a normal or parameter seam). Parameter is never a texture coordinate.
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp
#include <ludus/foundation/geometry/tessellation.hpp>
struct ludus::foundation::geometry::SurfaceMeshVertex final
Fields¶
Position¶
math::Vector3 ludus::foundation::geometry::SurfaceMeshVertex::Position {}
Bitwise copy of the referenced SurfaceMeshPosition.
Related types: math::Vector3
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp
Normal¶
math::Vector3 ludus::foundation::geometry::SurfaceMeshVertex::Normal {}
Unit normal of the vertex's patch (Rounded), or zero when NormalStatus fails.
Related types: math::Vector3
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp
PositionIndex¶
usize ludus::foundation::geometry::SurfaceMeshVertex::PositionIndex = 0
Index into SurfaceMeshView::Positions.
Related types: usize
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp
Parameter¶
SurfaceParameter ludus::foundation::geometry::SurfaceMeshVertex::Parameter {}
Patch index and exact dyadic (U, V) of the vertex.
Related types: SurfaceParameter
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp
NormalStatus¶
GeometryStatus ludus::foundation::geometry::SurfaceMeshVertex::NormalStatus = GeometryStatus::Success
Success, Degenerate or IllConditioned.
Related types: GeometryStatus
Declared in modules/foundation/geometry/include/ludus/foundation/geometry/tessellation.hpp