Forked from
ogs / ogs
25842 commits behind the upstream repository.
-
Dmitri Naumov authored
Using ORIGIN and variadic constructors added before.
Dmitri Naumov authoredUsing ORIGIN and variadic constructors added before.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
MeshGenerator.h 1.38 KiB
/**
* \file
* \author Norihiro Watanabe
* \date 2012-08-03
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#ifndef MESHGENERATOR_H_
#define MESHGENERATOR_H_
#include "GeoLib/Point.h"
#include "MeshLib/Mesh.h"
namespace MeshLib
{
namespace MeshGenerator
{
/**
* Generate an 1D Line-Element mesh. The mesh is generated in x-direction.
*
* \param length Mesh's length in x-direction.
* \param subdivision Number of subdivisions.
* \param origin Optional mesh's origin with GeoLib::ORIGIN default.
*/
Mesh* generateLineMesh(const double length,
const std::size_t subdivision,
GeoLib::Point const& origin = GeoLib::ORIGIN);
/**
* Generate a regular 2D Quad-Element mesh. The mesh is generated in the
* x-y-plane.
*
* \param length Mesh's dimensions in x- and y-directions.
* \param subdivision Number of subdivisions.
* \param origin Optional mesh's origin with GeoLib::ORIGIN default.
*/
Mesh* generateRegularQuadMesh(const double length,
const std::size_t subdivision,
GeoLib::Point const& origin = GeoLib::ORIGIN);
} //MeshGenerator
} //MeshLib
#endif //MESHGENERATOR_H_