1#ifndef TP_TRIAG_MESH_BUILDER_H
2#define TP_TRIAG_MESH_BUILDER_H
4#include "lf/mesh/mesh_factory.h"
5#include "structured_mesh_builder.h"
35 "TPTriagMeshBuilder can only construct meshes with DimWorld==2");
42 [[nodiscard]] std::shared_ptr<mesh::Mesh>
Build()
override;
56 static std::shared_ptr<spdlog::logger>&
Logger();
mesh::Mesh::size_type size_type
size_type num_of_x_cells_
std::unique_ptr< mesh::MeshFactory > mesh_factory_
Implements a MeshBuilder that generates a triangular structured mesh.
size_type VertexIndex(size_type i, size_type j) const
vertex index from grid position
std::shared_ptr< mesh::Mesh > Build() override
actual construction of the mesh
static std::shared_ptr< spdlog::logger > & Logger()
Used by Build() method to output additional debug info.
TPTriagMeshBuilder(std::unique_ptr< mesh::MeshFactory > mesh_factory)
Constructor: set factory object to be used by the builder.
Contains helper functions and classes that all operate on the interface classes defined in lf::mesh.