X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_IBoolean.hxx;h=3b6707cbc2fc4783bc1f5e6134ae078244528a33;hb=e6d5c5f71b52f0ff68aea8d681acd8ab80fade01;hp=46d5c8e482e02934abba0328d636d360243327c7;hpb=af323ccd1d47fe27b941822a729014c33859acfe;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_IBoolean.hxx b/src/GEOMImpl/GEOMImpl_IBoolean.hxx index 46d5c8e48..3b6707cbc 100644 --- a/src/GEOMImpl/GEOMImpl_IBoolean.hxx +++ b/src/GEOMImpl/GEOMImpl_IBoolean.hxx @@ -25,9 +25,10 @@ #include "GEOM_Function.hxx" #include "TColStd_HSequenceOfTransient.hxx" -#define BOOL_ARG_SHAPE1 1 -#define BOOL_ARG_SHAPE2 2 -#define BOOL_ARG_SHAPES 3 +#define BOOL_ARG_SHAPE1 1 +#define BOOL_ARG_SHAPE2 2 +#define BOOL_ARG_SHAPES 3 +#define BOOL_ARG_CHECK_SELF_INTERSECTION 4 class GEOMImpl_IBoolean { @@ -39,11 +40,15 @@ class GEOMImpl_IBoolean void SetShape2(Handle(GEOM_Function) theRef) { _func->SetReference(BOOL_ARG_SHAPE2, theRef); } void SetShapes(const Handle(TColStd_HSequenceOfTransient)& theShapes) { _func->SetReferenceList(BOOL_ARG_SHAPES, theShapes); } + void SetCheckSelfIntersection (Standard_Boolean theFlag) + { _func->SetInteger(BOOL_ARG_CHECK_SELF_INTERSECTION, theFlag ? 1 : 0); } Handle(GEOM_Function) GetShape1() { return _func->GetReference(BOOL_ARG_SHAPE1); } Handle(GEOM_Function) GetShape2() { return _func->GetReference(BOOL_ARG_SHAPE2); } Handle(TColStd_HSequenceOfTransient) GetShapes() { return _func->GetReferenceList(BOOL_ARG_SHAPES); } + Standard_Boolean GetCheckSelfIntersection() + { return (_func->GetInteger(BOOL_ARG_CHECK_SELF_INTERSECTION) != 0); } private: