View Issue Details

IDProjectCategoryView StatusLast Update
0023860CommunityOCCT:Modeling Algorithmspublic2022-07-05 11:08
ReporterAaron Michalk Assigned Tovmigunov  
PrioritynormalSeveritycrash 
Status assignedResolutionunable to reproduce 
PlatformAOSL 
Product Version6.5.4 
Target Version7.7.0 
Summary0023860: Bad memory access intersecting two nearly coincident cylindrical faces
DescriptionExecuting the following code results in an access violation in Release on Windows and MacOS. It throws an exception in debug.
Steps To Reproduce        gp_Ax3 axes1(gp_Pnt(1031.3339148728076, -113.25868616662650, 56.152387686082520),
                        gp_Dir(-0.86602540378443815, 0.50000000000000089, 0.00000000000000000),
                        gp_Dir(-0.50000000000000089, -0.86602540378443815, 0.00000000000000000));
        Handle(Geom_CylindricalSurface) surface1(new Geom_CylindricalSurface(axes1, 76.499999999999986));
        gp_Ax3 axes2(gp_Pnt(1017.0706583606553, -103.24955863669388, 56.152387686082548),
                        gp_Dir(0.86602540378443915, -0.49999999999999933, 0.00000000000000000),
                        gp_Dir(0.49999999999999933, 0.86602540378443915, 0.00000000000000000));
        Handle(Geom_CylindricalSurface) surface2(new Geom_CylindricalSurface(axes2, 76.499999999999986));
        BRep_Builder builder;
        TopoDS_Face face1;
        TopoDS_Face face2;
        builder.MakeFace(face1, surface1, Precision::Confusion());
        builder.MakeFace(face2, surface2, Precision::Confusion());
        IntTools_FaceFace intersection;
        intersection.SetParameters(false, true, true, Precision::Confusion());
        intersection.Perform(face1, face2);
TagsNo tags attached.
Test case number

Activities

msv

2021-11-25 12:07

developer   ~0105416

It is needed to create a test case.

git

2022-06-29 10:04

administrator   ~0109355

Branch CR23860 has been created by vmigunov.

SHA-1: f5a092b6cf73141df8a7a322b024ea9534c75e2c


Detailed log of new commits:

Author: vmigunov
Date: Wed Jun 29 09:58:57 2022 +0300

    0023860: Bad memory access intersecting two nearly coincident cylindrical faces
    
    Test of 2 nearly coincident cylindrical faces intersection is added

git

2022-07-04 11:16

administrator   ~0109526

Branch CR23860 has been updated forcibly by vmigunov.

SHA-1: 337415de745a0d340776aab23b9a1f0cdb17b09d

vmigunov

2022-07-05 09:04

developer   ~0109551

See branch CR23860

azv

2022-07-05 11:08

administrator   ~0109558

No need to convert curves to edges:
mkedge e1 c_1
mkedge e2 c_2


Check of picture for each edge is redundant:
checkview -display e1 -2d -path ${imagedir}/${test_image}_e1.png
checkview -display e2 -2d -path ${imagedir}/${test_image}_e2.png

Both edges could be shown at once, you may use
xwd ${imagedir}/${test_image}.png


Also, I would expect the check of some numeric values of the result, at least the number of curves, and probably some other values of those curves.

Issue History

Date Modified Username Field Change
2013-03-26 21:24 Aaron Michalk New Issue
2013-03-26 21:24 Aaron Michalk Assigned To => abv
2013-09-22 13:17 abv Assigned To abv => ifv
2013-09-22 13:17 abv Status new => assigned
2013-09-22 13:17 abv Category OCCT:Foundation Classes => OCCT:Modeling Algorithms
2021-11-25 11:42 ifv Status assigned => resolved
2021-11-25 11:42 ifv Resolution open => unable to reproduce
2021-11-25 12:07 msv Note Added: 0105416
2021-11-25 12:07 msv Status resolved => assigned
2022-06-24 14:58 azv Assigned To ifv => vmigunov
2022-06-24 14:58 azv Target Version => 7.7.0
2022-06-29 10:04 git Note Added: 0109355
2022-07-04 11:16 git Note Added: 0109526
2022-07-04 19:05 vmigunov Assigned To vmigunov => azv
2022-07-05 09:04 vmigunov Status assigned => resolved
2022-07-05 09:04 vmigunov Note Added: 0109551
2022-07-05 11:08 azv Assigned To azv => vmigunov
2022-07-05 11:08 azv Status resolved => assigned
2022-07-05 11:08 azv Note Added: 0109558