DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0029824

Intersection of cylinder and sphere is incorrect

Open CASCADEOCCT:Modeling Algorithmsclosed4 public notes

Search issues

Description

This problem can be solved by modifying IntPatch_ALineToWLine: method MakeWLine sometimes generates two different points with the same parameter on "ALine" - a vertex and an ordinary point. But when preventing the excess ordinary point from addition to the "WLine", we have a regression: different structures of the pcurve in the case "bugs modalg_6 bug27431" on Linux and Windows platforms.

Steps to reproduce

restore [locate_data_file OCC20964_revsolid.brep] b1
restore [locate_data_file OCC20964_sphere.brep] b2
explode b1 f
explode b2 f
donly b1_7 b2_1

bop b1_7 b2_1
bopsection r
explode r
donly r_3

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue May 29 16:07:52 2018 +0300

    0029824: Intersection of cylinder and sphere is incorrect
    
    IntPatch_ALineToWLine: modified method MakeWLine - now insertion of special point is done with check to avoid its duplication by wrong point.
02Commenter 2
This problem is fixed by the branch CR29807*
03Commenter 3
This problem has been fixed. See "tests/bugs/modalg_7/bug29824" test case.
04Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]