tk::STLMesh class

STLMesh.

Constructors, destructors, conversion operators

STLMesh() explicit
Constructor.

Public functions

void alloc(std::size_t num)
Allocate memory for mesh.
void setName(const std::string& n)
Set mesh name.
auto name() const -> const std::string& noexcept
Get mesh name.
auto getx() const -> tk::real* noexcept
Coordinate array accessors.
auto nnode() const -> std::size_t noexcept
Number of nodes accessor.

Function documentation

void tk::STLMesh::alloc(std::size_t num)

Allocate memory for mesh.

Parameters
num in Number of vertices (nodes) in mesh