(Handle(GEOM_Object) theShape1,
Handle(GEOM_Object) theShape2,
const Standard_Integer theOp,
- const Standard_Boolean IsCheckSelfInte)
+ const Standard_Boolean IsCheckSelfInte,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShape1(aRef1);
aCI.SetShape2(aRef2);
aCI.SetCheckSelfIntersection(IsCheckSelfInte);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Boolean value
try {
pd << ", True";
}
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
+
pd << ")";
SetErrorCode(OK);
(Handle(GEOM_Object) theShape1,
Handle(GEOM_Object) theShape2,
const bool IsCheckSelfInte,
- const bool IsRmExtraEdges)
+ const bool IsRmExtraEdges,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShape2(aRef2);
aCI.SetCheckSelfIntersection(IsCheckSelfInte);
aCI.SetRmExtraEdges(IsRmExtraEdges);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Boolean value
try {
pd << aBool << " = geompy.MakeFuse(";
pd << theShape1 << ", " << theShape2 << ", "
- << IsCheckSelfInte << ", " << IsRmExtraEdges << ")";
+ << IsCheckSelfInte << ", " << IsRmExtraEdges;
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
+ pd << ")";
SetErrorCode(OK);
return aBool;
Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeFuseList
(const Handle(TColStd_HSequenceOfTransient)& theShapes,
const bool IsCheckSelfInte,
- const bool IsRmExtraEdges)
+ const bool IsRmExtraEdges,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShapes(aShapesSeq);
aCI.SetCheckSelfIntersection(IsCheckSelfInte);
aCI.SetRmExtraEdges(IsRmExtraEdges);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Boolean value
try {
GEOM::TPythonDump pd (aFunction);
pd << aBool << " = geompy.MakeFuseList([" << aDescription.ToCString() << "], "
- << IsCheckSelfInte << ", " << IsRmExtraEdges << ")";
+ << IsCheckSelfInte << ", " << IsRmExtraEdges;
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
+ pd << ")";
SetErrorCode(OK);
return aBool;
//=============================================================================
Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeCommonList
(const Handle(TColStd_HSequenceOfTransient)& theShapes,
- const Standard_Boolean IsCheckSelfInte)
+ const Standard_Boolean IsCheckSelfInte,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShapes(aShapesSeq);
aCI.SetCheckSelfIntersection(IsCheckSelfInte);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Boolean value
try {
if (IsCheckSelfInte) {
pd << ", True";
}
-
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
pd << ")";
SetErrorCode(OK);
Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeCutList
(Handle(GEOM_Object) theMainShape,
const Handle(TColStd_HSequenceOfTransient)& theShapes,
- const Standard_Boolean IsCheckSelfInte)
+ const Standard_Boolean IsCheckSelfInte,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShape1(aMainRef);
aCI.SetShapes(aShapesSeq);
aCI.SetCheckSelfIntersection(IsCheckSelfInte);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Boolean value
try {
pd << ", True";
}
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
+
pd << ")";
SetErrorCode(OK);
const Handle(TColStd_HArray1OfInteger)& theMaterials,
const Standard_Integer theKeepNonlimitShapes,
const Standard_Boolean thePerformSelfIntersections,
- const Standard_Boolean IsCheckSelfInte)
+ const Standard_Boolean IsCheckSelfInte,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
}
}
+ // Fuzzy parameter
+ aCI.SetFuzzyParameter(theFuzzyParam);
+
//Compute the Partition
try {
OCC_CATCH_SIGNALS;
if (IsCheckSelfInte && !thePerformSelfIntersections) {
pd << ", True";
}
+
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
pd << ")";
*/
//=============================================================================
Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakeHalfPartition
- (Handle(GEOM_Object) theShape, Handle(GEOM_Object) thePlane)
+ (Handle(GEOM_Object) theShape,
+ Handle(GEOM_Object) thePlane,
+ const Standard_Real theFuzzyParam)
{
SetErrorCode(KO);
aCI.SetShape(aRef1);
aCI.SetPlane(aRef2);
+ aCI.SetFuzzyParameter(theFuzzyParam);
//Compute the Partition value
try {
//Make a Python command
GEOM::TPythonDump pd (aFunction);
pd << aPart << " = geompy.MakeHalfPartition("
- << theShape << ", " << thePlane << ")";
+ << theShape << ", " << thePlane;
+ if (theFuzzyParam > 0) {
+ // Use named argument for the fuzzy parameter
+ pd << ", theFuzzyParam=" << theFuzzyParam;
+ }
+ pd << ")";
SetErrorCode(OK);
return aPart;