Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean cut has issues when it involves a common Edge between argument and the tool. #245

Open
kavindaTurbogen opened this issue Jan 6, 2025 · 0 comments
Labels
0. New The issue was created, but not updated by maintainer. Waiting for updates labels and categories 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working

Comments

@kavindaTurbogen
Copy link

kavindaTurbogen commented Jan 6, 2025

Description

In this operation the argument and the tool both have a common edge (Attachment: Highlighted in blue) which affects the boolean cut operation.
When we rotate or offset the shape to avoid the common edge boolean cut operation works as intended.
BRep files are attached in the opencascade forum issue (link included below).

Expected Behavior

Boolean cut should be done without issues even a common edge exists.

Actual Behavior

Boolean operation is not completed

Sample Code or DRAW Tcl Script

  BRepAlgoAPI_Cut _operation;

void geo_OperationCut::setArguments(const TopTools_ListOfShape& targetList, const TopTools_ListOfShape& toolList)
{
	_operation.SetArguments(targetList);
	_operation.SetTools(toolList);
}

void geo_OperationCut::build()
{
	if (validate(_operation.Arguments(), _operation.Tools()))
		try
	{
		OCC_CATCH_SIGNALS
			_operation.Build();
	}
	catch (const std::exception&)
	{
		return;
	}
}

Operating System

Windows

Compiler

MSVC

Bitness

64-bit

OCCT Version

7.8

Additional Files

Boolean cut shapes
files_to_cut.zip

@kavindaTurbogen kavindaTurbogen added 0. New The issue was created, but not updated by maintainer. Waiting for updates labels and categories 2. Bug Something isn't working labels Jan 6, 2025
@dpasukhi dpasukhi added the 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. New The issue was created, but not updated by maintainer. Waiting for updates labels and categories 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... 2. Bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants