https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: dcc11e5ced4c6e785c1b6e8728995ea29ac5b04b authored by Dmitry Yu. Naumov on 19 July 2023, 19:53:11 UTC
Merge branch 'UpdateFixedTimeSteppingInPrj' into 'master'
Tip revision: dcc11e5
createMeshFromElementSelection.h
/**
 * \file
 *
 * \copyright
 * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include <memory>
#include <string>
#include <vector>

namespace MeshLib
{
class Mesh;
class Element;

/// Creates a new mesh from a vector of elements.
///
/// \note The elements are owned by the returned mesh object as well as the
/// nodes and will be destructed together with the mesh.
std::unique_ptr<Mesh> createMeshFromElementSelection(
    std::string mesh_name, std::vector<Element*> const& elements);
}  // namespace MeshLib
back to top