Skip to content

ludus::foundation::geometry::SurfaceMesh

Ludus Wiki · API overview · Browse API

Class

Staging owner of one surface mesh; move-only.
Built only by TryBuildSurfaceMesh, which fills a complete candidate before moving it into the output, so a failed rebuild keeps the previous mesh. Consumers copy or upload from the view. Single owner; synchronize replacement externally.

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

#include <ludus/foundation/geometry/tessellation.hpp>
class ludus::foundation::geometry::SurfaceMesh final

Methods

SurfaceMesh

ludus::foundation::geometry::SurfaceMesh::SurfaceMesh() noexcept=default
Construct an empty mesh.

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

SurfaceMesh

ludus::foundation::geometry::SurfaceMesh::SurfaceMesh(SurfaceMesh &&other) noexcept=default
Transfer the mesh; the source becomes empty.

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

operator=

SurfaceMesh & ludus::foundation::geometry::SurfaceMesh::operator=(SurfaceMesh &&other) noexcept=default
Release this mesh and take the other's; the source becomes empty.

Related types: SurfaceMesh

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

SurfaceMesh

ludus::foundation::geometry::SurfaceMesh::SurfaceMesh(const SurfaceMesh &)=delete
Copying is disabled: one owner holds the mesh storage.

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

operator=

SurfaceMesh & ludus::foundation::geometry::SurfaceMesh::operator=(const SurfaceMesh &)=delete
Copy assignment is disabled: one owner holds the mesh storage.

Related types: SurfaceMesh

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

~SurfaceMesh

ludus::foundation::geometry::SurfaceMesh::~SurfaceMesh()=default
Release the mesh storage; views into it become invalid.

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

GetView

SurfaceMeshView ludus::foundation::geometry::SurfaceMesh::GetView() const noexcept
Borrow the mesh; invalidated by moving or destroying it.

Related types: SurfaceMeshView

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

IsEmpty

bool ludus::foundation::geometry::SurfaceMesh::IsEmpty() const noexcept
Whether no mesh has been built into this owner.

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