Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::geometry::mesh3d Namespace Reference

Functions

template<typename FloatType, typename IndexType>
Mesh3D< FloatType, IndexType > readVTU (const std::string &filename, bool check_vtxs_unique=false, bool add_tags=true)
 Reads a 3D mesh from a VTU file.
template<typename FloatType, typename IndexType>
Mesh3D< FloatType, IndexType > rect_cuboid (const Point< FloatType, 3 > &corner_a, const Point< FloatType, 3 > &corner_b, const Point< IndexType, 3 > &n_divisions, bool tetra_elements=false)
 Creates a rectangular cuboid mesh.
template Mesh3D< double, int32_t > readVTU< double, int32_t > (const std::string &, bool, bool)
template Mesh3D< double, uint32_t > readVTU< double, uint32_t > (const std::string &, bool, bool)
template Mesh3D< double, int64_t > readVTU< double, int64_t > (const std::string &, bool, bool)
template Mesh3D< double, uint64_t > readVTU< double, uint64_t > (const std::string &, bool, bool)
template Mesh3D< double, int32_t > rect_cuboid< double, int32_t > (const Point< double, 3 > &, const Point< double, 3 > &, const Point< int32_t, 3 > &, bool)
template Mesh3D< double, uint32_t > rect_cuboid< double, uint32_t > (const Point< double, 3 > &, const Point< double, 3 > &, const Point< uint32_t, 3 > &, bool)
template Mesh3D< double, int64_t > rect_cuboid< double, int64_t > (const Point< double, 3 > &, const Point< double, 3 > &, const Point< int64_t, 3 > &, bool)
template Mesh3D< double, uint64_t > rect_cuboid< double, uint64_t > (const Point< double, 3 > &, const Point< double, 3 > &, const Point< uint64_t, 3 > &, bool)

Function Documentation

◆ readVTU()

template<typename FloatType, typename IndexType>
Mesh3D< FloatType, IndexType > vulpes::geometry::mesh3d::readVTU ( const std::string & filename,
bool check_vtxs_unique = false,
bool add_tags = true )

Reads a 3D mesh from a VTU file.

This function reads an unstructured grid from a VTU file (a format from the VTK library) and creates a Mesh3D object from it. It handles different cell types like polyhedrons and tetrahedrons and can also read associated cell tags.

Template Parameters
FloatTypeThe floating-point type.
IndexTypeThe integer type.
Parameters
filenameThe path to the VTU file.
check_vtxs_uniqueA boolean flag (not used in the current implementation).
add_tagsA boolean flag to indicate if cell tags should be read.
Returns
A new Mesh3D object.

◆ readVTU< double, int32_t >()

template Mesh3D< double, int32_t > vulpes::geometry::mesh3d::readVTU< double, int32_t > ( const std::string & ,
bool ,
bool  )

◆ readVTU< double, int64_t >()

template Mesh3D< double, int64_t > vulpes::geometry::mesh3d::readVTU< double, int64_t > ( const std::string & ,
bool ,
bool  )

◆ readVTU< double, uint32_t >()

template Mesh3D< double, uint32_t > vulpes::geometry::mesh3d::readVTU< double, uint32_t > ( const std::string & ,
bool ,
bool  )

◆ readVTU< double, uint64_t >()

template Mesh3D< double, uint64_t > vulpes::geometry::mesh3d::readVTU< double, uint64_t > ( const std::string & ,
bool ,
bool  )

◆ rect_cuboid()

template<typename FloatType, typename IndexType>
Mesh3D< FloatType, IndexType > vulpes::geometry::mesh3d::rect_cuboid ( const Point< FloatType, 3 > & corner_a,
const Point< FloatType, 3 > & corner_b,
const Point< IndexType, 3 > & n_divisions,
bool tetra_elements = false )

Creates a rectangular cuboid mesh.

This function generates a structured mesh of a rectangular cuboid (a box) defined by two opposite corners. The mesh can be composed of either hexahedral (cube) elements or tetrahedral elements.

Template Parameters
FloatTypeThe floating-point type.
IndexTypeThe integer type.
Parameters
corner_aThe coordinates of the first corner of the cuboid.
corner_bThe coordinates of the opposite corner of the cuboid.
n_divisionsThe number of divisions along each axis (x, y, z).
tetra_elementsA boolean flag to determine if the elements should be hexahedrons (false) or if each hexaedron should be cut in six tetrahedrons (true).
Returns
The generated Mesh3D object.

◆ rect_cuboid< double, int32_t >()

template Mesh3D< double, int32_t > vulpes::geometry::mesh3d::rect_cuboid< double, int32_t > ( const Point< double, 3 > & ,
const Point< double, 3 > & ,
const Point< int32_t, 3 > & ,
bool  )

◆ rect_cuboid< double, int64_t >()

template Mesh3D< double, int64_t > vulpes::geometry::mesh3d::rect_cuboid< double, int64_t > ( const Point< double, 3 > & ,
const Point< double, 3 > & ,
const Point< int64_t, 3 > & ,
bool  )

◆ rect_cuboid< double, uint32_t >()

template Mesh3D< double, uint32_t > vulpes::geometry::mesh3d::rect_cuboid< double, uint32_t > ( const Point< double, 3 > & ,
const Point< double, 3 > & ,
const Point< uint32_t, 3 > & ,
bool  )

◆ rect_cuboid< double, uint64_t >()

template Mesh3D< double, uint64_t > vulpes::geometry::mesh3d::rect_cuboid< double, uint64_t > ( const Point< double, 3 > & ,
const Point< double, 3 > & ,
const Point< uint64_t, 3 > & ,
bool  )