You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Interface/FITKInterfaceMeshGen/FITKRegionMeshSizeBox.cpp

58 lines
1.3 KiB
C++

#include "FITKRegionMeshSizeBox.h"
namespace Interface
{
FITKRegionMeshSizeBox::FITKRegionMeshSizeBox()
{
//初始化6个边界类型
for (int i=0;i<6; ++i)
{
this->insertBoundary(i, BoundaryType::BTPatch);
this->insertFaceName(i, "boundaries");
}
}
FITKAbstractRegionMeshSize::RegionType FITKRegionMeshSizeBox::getRegionType()
{
//返回box类型
return FITKAbstractRegionMeshSize::RegionType::RegionBox;
}
void FITKRegionMeshSizeBox::setPoint1(double* p1)
{
//错误判断
if (nullptr == p1) return;
for (int i = 0; i<3; ++i)
_point1[i] = p1[i];
}
void FITKRegionMeshSizeBox::setLength(double* length)
{
//错误判断
if (length == nullptr) return;
for (int i = 0; i < 3; ++i)
_lengthParam[i] = length[i];
}
void FITKRegionMeshSizeBox::getPoint1(double* p1)
{
//错误判断
if (nullptr == p1) return;
for (int i = 0; i < 3; ++i)
p1[i] = _point1[i];
}
void FITKRegionMeshSizeBox::getLength(double* length)
{
//错误判断
if (length == nullptr) return;
for (int i = 0; i < 3; ++i)
length[i] = _lengthParam[i];
}
}