13 #ifndef KRATOS_SUB_MODEL_PART_OPERATIONS_H_INCLUDED
14 #define KRATOS_SUB_MODEL_PART_OPERATIONS_H_INCLUDED
46 template<
class TEntityType,
class TContainerType>
78 BooleanOperation(rModelPartA, rModelPartB, rDestination, BooleanOperators::Union);
83 BooleanOperation(rModelPartA, rModelPartB, rDestination, BooleanOperators::Intersection);
88 BooleanOperation(rModelPartA, rModelPartB, rDestination, BooleanOperators::Difference);
97 static void AddEntities(
const std::vector<IndexType>& rIds,
ModelPart& rModelPart);
101 static std::vector<IndexType> GetContainerIds(
ModelPart& rModelPart);
103 static void BooleanOperation(
107 BooleanOperators ThisOperator);
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Wrapper of boolean operations: union, intersection and difference.
Definition: sub_model_part_entities_boolean_operation_utility.h:48
KRATOS_CLASS_POINTER_DEFINITION(SubModelPartEntitiesBooleanOperationUtility)
Pointer definition of SubModelPartEntitiesBooleanOperationUtility.
static void Intersection(ModelPart &rModelPartA, ModelPart &rModelPartB, ModelPart &rDestination)
Definition: sub_model_part_entities_boolean_operation_utility.h:81
std::size_t IndexType
Definition: sub_model_part_entities_boolean_operation_utility.h:56
BooleanOperators
Definition: sub_model_part_entities_boolean_operation_utility.h:62
static void Difference(ModelPart &rModelPartA, ModelPart &rModelPartB, ModelPart &rDestination)
Definition: sub_model_part_entities_boolean_operation_utility.h:86
static void Union(ModelPart &rModelPartA, ModelPart &rModelPartB, ModelPart &rDestination)
Definition: sub_model_part_entities_boolean_operation_utility.h:76
TContainerType & GetContainer(ModelPart::MeshType &rMesh)
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
@ Intersection
The point belongs to the slave entity.