https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 71ab68babd6d51d028e0dcb91abb0bb8c4f21a48 authored by Dmitry Yu. Naumov on 28 August 2023, 21:10:08 UTC
Merge branch 'SmallFixes' into 'master'
Tip revision: 71ab68b
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