Commit a19984f4 authored by Tomáš Jakubec's avatar Tomáš Jakubec
Browse files

MeshFunctions readme

parent 8c138aa8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -50,4 +50,5 @@ HEADERS += \
    ../src/NumericStaticArray/Vertex.h

DISTFILES += \
    ../src/Debug/README.md
    ../src/Debug/README.md \
    ../src/UnstructuredMesh/MeshFunctions/README.md
+7 −2
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@
#include "GrammSchmidt.h"
#include <array>



namespace Detail {


template <unsigned int dim, unsigned int Dimension, ComputationMethod Method = DEFAULT>
struct _ComputeMeasures{
    template <typename IndexType, typename Real, unsigned int ...Reserve>
@@ -188,7 +193,7 @@ struct _ComputeMeasures<3, 3, TESSELLATED>{
    }
};


}



@@ -198,7 +203,7 @@ template <ComputationMethod Method, unsigned int Dimension,typename IndexType, t
MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> ComputeMeasures(MeshElements<Dimension, IndexType, Real, Reserve...>& mesh){
    MakeMeshDataContainer_t<Real, make_custom_integer_sequence_t<unsigned int, 1, Dimension>> measures(mesh);

    _ComputeMeasures<1, Dimension, Method>::compute(measures, mesh);
    Detail::_ComputeMeasures<1, Dimension, Method>::compute(measures, mesh);

    return measures;
}
+18 −0
Original line number Diff line number Diff line
## Mesh functions ##

The directory MeshFunctions includes headder files implementing several important algorithms to work with an unstructured mesh.
<table>
<tr>
    <th>headder name</th><th>functionality</th>
</tr>
<tr>
    <ti>ComputeCenter.h</ti><ti>defines class computing centers of mesh elements</ti>
</tr>

Example how to calculate centers of mesh elements.
```c++
UnstructuredMesh<3, size_t, double> mesh;
MeshDataContainer<Vertex<3,double>, 1,2,3> centers = ComputeCenters(mesh);
```

</table>