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

Intersection produces strange result for given surfaces #275

Open
alexnoe88 opened this issue Jan 20, 2025 · 0 comments
Open

Intersection produces strange result for given surfaces #275

alexnoe88 opened this issue Jan 20, 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

@alexnoe88
Copy link

alexnoe88 commented Jan 20, 2025

Description

The intersection between the two given faces produces a strange edge.

Image

Expected Behavior

The intersection between the two surfaces should produce a correct edge.

Actual Behavior

The intersection produced an edge which is not expected by intersecting this two surfaces.

Sample Code or DRAW Tcl Script

C++

BRepAlgoAPI_Section section(surface1, surface2, Standard_False);
section.Approximation(Standard_True);
section.ComputePCurveOn1(Standard_True);
section.ComputePCurveOn2(Standard_True);
section.Build();
if(!section.IsDone())
{
	return false;
}
auto result = section.Shape();

DRAW:

restore surface1.brep s1
vdisplay s1
restore surface2.brep s2
vdisplay s2
intersect my_intersect s1 s2
whatis my_intersect //whatis cannot tell me what it is, so I guess the intersection failed

Operating System

Windows

Compiler

MSVC

Bitness

64-bit

OCCT Version

7.6

Additional Files

surfaces.zip

@alexnoe88 alexnoe88 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 20, 2025
@dpasukhi dpasukhi added the 1. Modeling Boolean operations, offsets, primitives, any conversion, brep builders and etc... label Jan 20, 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