OCCT icon indicating copy to clipboard operation
OCCT copied to clipboard

Intersection produces strange result for given surfaces

Open alexnoe88 opened this issue 10 months ago • 0 comments

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 avatar Jan 20 '25 09:01 alexnoe88