You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
813 B
37 lines
813 B
#pragma once
|
|
|
|
#include <Eigen/Eigen>
|
|
#include <vector>
|
|
|
|
namespace ImplictSIM {
|
|
|
|
template <size_t dim>
|
|
class BgMeshData {
|
|
public:
|
|
Eigen::Vector<double, dim> leftDownPnt;
|
|
Eigen::Vector<double, dim> centerPnt;
|
|
Eigen::Vector<double, dim> rightUpPnt;
|
|
|
|
public:
|
|
BgMeshData(Eigen::Vector<double, dim> leftDownPnt_, Eigen::Vector<double, dim> rightUpPnt_)
|
|
{
|
|
leftDownPnt = leftDownPnt_;
|
|
rightUpPnt = rightUpPnt_;
|
|
centerPnt = (leftDownPnt + rightUpPnt) / 2.0;
|
|
}
|
|
};
|
|
|
|
template <size_t dim>
|
|
class BgMesh {
|
|
public:
|
|
int leafNum;
|
|
Eigen::Vector<double, dim> leftDownPnt;
|
|
Eigen::Vector<double, dim> rightUpPnt;
|
|
std::vector<BgMeshData<dim>> meshData;
|
|
|
|
public:
|
|
BgMesh(Eigen::Vector<double, dim> leftDownPnt_, Eigen::Vector<double, dim> rightUpPnt_)
|
|
{
|
|
}
|
|
};
|
|
};
|