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

fix

parent b8b6b912
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -174,8 +174,7 @@ MeshDataContainer<Vector<Dimension, Real>, Dimension-1> computeFaceNormals(const




template <ComputationMethod Method, unsigned int MeshDimension,typename IndexType, typename Real, unsigned int ...Reserve>
template <ComputationMethod Method, unsigned int MeshDimension,typename IndexType, typename Real, unsigned int ...Reserve>
MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals(
MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals( const MakeMeshDataContainer_t<Vertex<MeshDimension, Real>, make_custom_integer_sequence_t<unsigned int, 1, MeshDimension>>& centers,
        const MakeMeshDataContainer_t<Vertex<MeshDimension, Real>, make_custom_integer_sequence_t<unsigned int, 1, MeshDimension>>& centers,
                                                                                    const MeshElements<MeshDimension, IndexType, Real, Reserve...>& mesh ){
                                                                                    const MeshElements<MeshDimension, IndexType, Real, Reserve...>& mesh ){


    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> normals(mesh);
    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> normals(mesh);
+0 −3
Original line number Original line Diff line number Diff line
@@ -49,9 +49,6 @@ struct GetCenters {


        IndexType sube = mesh.template getElements<CurrentDimension>()[elementIndex].getBoundaryElementIndex();
        IndexType sube = mesh.template getElements<CurrentDimension>()[elementIndex].getBoundaryElementIndex();
        GetCenters<Dimension, CurrentDimension - 1, MeshDimension>::get(res, centers, mesh, sube);
        GetCenters<Dimension, CurrentDimension - 1, MeshDimension>::get(res, centers, mesh, sube);

        return res;

    }
    }




+2 −2
Original line number Original line Diff line number Diff line
@@ -91,7 +91,7 @@ public:
     */
     */
    template<ComputationMethod Method = ComputationMethod::METHOD_DEFAULT, typename ..., unsigned int MD = MeshDimension, typename std::enable_if< (MD <= 3) , bool >::type = true>
    template<ComputationMethod Method = ComputationMethod::METHOD_DEFAULT, typename ..., unsigned int MD = MeshDimension, typename std::enable_if< (MD <= 3) , bool >::type = true>
    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals() const {
    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals() const {
        return computeFaceNormals<Method>(*this);
        return ::computeFaceNormals<Method>(*this);
    }
    }


    /**
    /**
@@ -99,7 +99,7 @@ public:
     */
     */
    template<ComputationMethod Method = ComputationMethod::METHOD_DEFAULT, typename ..., unsigned int MD = MeshDimension, typename std::enable_if< (MD > 3) , bool >::type = true>
    template<ComputationMethod Method = ComputationMethod::METHOD_DEFAULT, typename ..., unsigned int MD = MeshDimension, typename std::enable_if< (MD > 3) , bool >::type = true>
    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals() const {
    MeshDataContainer<Vector<MeshDimension, Real>, MeshDimension-1> computeFaceNormals() const {
        return computeFaceNormals<Method>(computeCenters<Method>(*this), *this);
        return ::computeFaceNormals<Method>(computeCenters<Method>(*this), *this);
    }
    }


    /**
    /**