4#ifndef MOFEM_CGAL_INTERFACE_HPP
5#define MOFEM_CGAL_INTERFACE_HPP
37 Range &entities, EntityHandle &volume,
63 const Range &selected_cells,
133 const std::vector<CrackFrontRequest> &requests,
135 Range &entities, EntityHandle &new_face,
138 Range *closure_faces =
nullptr) = 0;
147 const std::vector<CrackFrontRequest> &requests,
149 Range &entities, EntityHandle &new_face,
152 Range *closure_faces =
nullptr) = 0;
160 const std::vector<CrackFrontRequest> &requests,
162 Range &entities, EntityHandle &new_face,
165 Range *closure_faces =
nullptr) = 0;
178 Range &join_faces, std::vector<int> *categories =
nullptr,
179 const std::vector<EntityHandle> &front_order = {},
180 EntityHandle *selected_front =
nullptr,
bool gaps_only =
false) = 0;
189 Range &fill_faces) = 0;
231 int verb =
QUIET) = 0;
243 int verb =
QUIET) = 0;
const Settings & settings
std::vector< int > vertices
std::unordered_map< int, NodeConstraint > constraints
std::vector< Cell > cells
SearchCacheScope & operator=(const SearchCacheScope &)=delete
SearchCacheScope(CrackExtension &bridge)
SearchCacheScope(const SearchCacheScope &)=delete
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
implementation of Data Operators for Forces and Sources
CGALInterface * createInterface< CGALInterface >(const MoFEM::Core &core)
std::array< double, 3 > direction
virtual MoFEMErrorCode joinCrack(BitRefLevel source_bit, BitRefLevel output_bit, const Range &crack_faces, const Range &constraints, const std::vector< CrackFrontRequest > &requests, const CGALTools::CrackExtensionSettings &settings, Range &entities, EntityHandle &new_face, CGALTools::CrackExtensionCandidate *applied=nullptr, CGALTools::CrackExtensionReport *report=nullptr, Range *closure_faces=nullptr)=0
virtual MoFEMErrorCode closeCrackGap(BitRefLevel source_bit, BitRefLevel output_bit, const Range &crack_faces, const Range &constraints, const std::vector< CrackFrontRequest > &requests, const CGALTools::CrackExtensionSettings &settings, Range &entities, EntityHandle &new_face, CGALTools::CrackExtensionCandidate *applied=nullptr, CGALTools::CrackExtensionReport *report=nullptr, Range *closure_faces=nullptr)=0
virtual ~CrackExtension()=default
virtual void openSearchCache()=0
See SearchCacheScope.
virtual MoFEMErrorCode crackFill(BitRefLevel bit, const Range &crack_faces, const Range &constraints, Range &fill_faces)=0
virtual void closeSearchCache()=0
See SearchCacheScope.
virtual MoFEMErrorCode crackJoin(BitRefLevel bit, const Range &crack_faces, const Range &constraints, Range &join_faces, std::vector< int > *categories=nullptr, const std::vector< EntityHandle > &front_order={}, EntityHandle *selected_front=nullptr, bool gaps_only=false)=0
virtual MoFEMErrorCode extendCrack(BitRefLevel source_bit, BitRefLevel output_bit, const Range &crack_faces, const Range &constraints, const std::vector< CrackFrontRequest > &requests, const CGALTools::CrackExtensionSettings &settings, Range &entities, EntityHandle &new_face, CGALTools::CrackExtensionCandidate *applied=nullptr, CGALTools::CrackExtensionReport *report=nullptr, Range *closure_faces=nullptr)=0
virtual MoFEMErrorCode getMesh(BitRefLevel bit, CGALMesh *&mesh)=0
MoFEMErrorCode cgalToMoab(BitRefLevel bit, int verb=QUIET)
virtual CrackExtension & getCrackExtension()=0
~CGALInterface() override=default
virtual CGALTools & getTools()=0
virtual MoFEMErrorCode clear(BitRefLevel bit)=0
virtual MoFEMErrorCode getLinkedVertices(BitRefLevel bit, Range &vertices) const =0
virtual MoFEMErrorCode remesh(const Range &source_entities, const Range &selected_cells, BitRefLevel output_bit, Range &entities, const CGALTools::RemeshSettings &settings, CGALTools::RemeshReport &report)=0
virtual MoFEMErrorCode importMesh(const TetMeshData &data, BitRefLevel bit, Range &entities, EntityHandle &volume, EntityHandle &surface)=0
virtual MoFEMErrorCode cgalToMoab(BitRefLevel source_bit, BitRefLevel output_bit, int verb=QUIET)=0
virtual MoFEMErrorCode reconstructDelaunay(const Range &source_entities, BitRefLevel output_bit, Range &entities, CGALTools::ReconstructionMethod method=CGALTools::ReconstructionMethod::PointDelaunay)=0
virtual MoFEMErrorCode moabToCgal(BitRefLevel bit, BitRefLevel mask=BitRefLevel().set(), int verb=QUIET)=0
virtual MoFEMErrorCode retireLevel(BitRefLevel bit)=0
virtual MoFEMErrorCode exportMesh(const Range &cells, TetMeshData &data)=0
base class for all interface classes