View Issue Details

IDProjectCategoryView StatusLast Update
0025962Open CASCADEOCCT:Modeling Algorithmspublic2023-08-01 15:08
ReporternbvAssigned Tomsv 
PrioritynormalSeverityminor 
Status newResolutionopen 
Target VersionUnscheduled 
Summary0025962: Wrong domain definition while doing intersection algorithm
DescriptionPart of an intersection curve lies in face domain. However, GeomInt_LineConstructor rejects this curve because it is OUT of the domain.
Steps To Reproduce#Test cases bugs\moddata_2\bug26_1 and bugs\moddata_2\bug26_2.

Draw[]> restore [locate_data_file OCC26.brep] a
Draw[]> explode a
Draw[]> explode a_1 f
Draw[]> explode a_2 f
Draw[]> copy a_1_3 f1
Draw[]> copy a_2_21 f2
Draw[]> bopcurv f1 f2
#has no 3d curve (WRONG!!!)

However,

Draw[]> xbounds f1
#U1=0
#U2=3.14159
#V1=-7.4767e-006
#V2=237
Draw[]> xbounds f2
#U1=-1.49833e-008
#U2=3.14159
#U3=6.36832e-007
#U4=29

Draw[]> mksurf s1 f1
Draw[]> mksurf s2 f2
Draw[]> intersect rr s1 s2
#rr_1 rr_2 rr_3 rr_4 rr_5 rr_6 rr_7

Draw[]> cval rr_2 1.57079645 xx1 yy1 zz1
Draw[]> cval rr_2 1.57079650 xx2 yy2 zz2
Draw[]> point pp1 xx1 yy1 zz1
Draw[]> point pp2 xx2 yy2 zz2

Draw[]> projponf f1 pp1
#proj dist = 0 uvproj = (1.570796449821795 27.201176297959002); pproj = (15818.479326830242 -5631.2913499773267 -2432)

Draw[]> projponf f1 pp2
#proj dist = 0 uvproj = (1.5707964995829906 14.745838372847228); pproj = (15828.743041390169 -5638.3476667404166 -2432.0000000000005)

I.e. pp1 and pp2 is in f1-domain ((0 <= 1.570796449821795 <= 3.14159) && (-7.4767e-006 <= 27.201176297959002 <= 237). Analogically for pp2.

Draw[]> projponf f2 pp1
#proj dist = 0 uvproj = (1.2420372623767422e-007 9.7985586774345066); pproj = (15818.479326830242 -5631.2913499773267 -2432)

Draw[]> projponf f2 pp2
#proj dist = 0 uvproj = (1.7444254760380926e-007 22.253896602546277); pproj = (15828.743041390169 -5638.3476667404166 -2432.0000000000005)

I.e. pp1 and pp2 is in f2-domain.

CONCLUSION!
Bopcurv cannot find any intersection curve. However, it is proven that curve (example)

***********
Trimmed curve
Parameters : 1.57079645 1.57079650
Basis curve :
Ellipse
  Center :15793.1884865181, -5613.90386522167, -2450
  Axis :0.566529531797242, 0.824041436823172, 4.04832179340053e-023
  XAxis :-0.824041436823172, 0.566529531797242, -2.91127199732383e-030
  YAxis :-2.29349409008065e-023, -3.33598474242418e-023, 1
  Radii :249106758.909924, 18
***********

can be considered as intersection curve between given faces. Why it is not found?

P.S.
Trim range (1.57079645...1.57079650) is quite small. Therefore, it possibly will be better, if ellipse replace with gp_Line. However, it should be investigated.
TagsNo tags attached.
Test case numberbugs moddata_2 bug26_1, bug26_2

Attached Files

  • diff_images.png (40,605 bytes)

Activities

nbv

2015-03-20 15:33

developer   ~0038740

Last edited: 2015-03-20 15:34

The problem has been detected after fixing bug #0025416 (differences in images were detected - see diff_images.png file).

It is necessary after fixing to check new pictures in bugs moddata_2 bug26_1(bug26_2) test cases. Maybe, they will be changed.

nbv

2015-03-20 15:33

developer  

diff_images.png (40,605 bytes)

apv

2017-08-07 15:14

tester   ~0069159

Problem described in issue is reproduced on current state of OCCT.

Issue History

Date Modified Username Field Change
2015-03-20 14:02 nbv New Issue
2015-03-20 14:02 nbv Assigned To => msv
2015-03-20 14:19 nbv Steps to Reproduce Updated
2015-03-20 15:33 nbv Note Added: 0038740
2015-03-20 15:33 nbv File Added: diff_images.png
2015-03-20 15:34 nbv Note Edited: 0038740
2015-04-06 14:03 abv Target Version 6.9.0 => 7.1.0
2016-10-28 17:52 msv Target Version 7.1.0 => 7.2.0
2017-07-24 09:22 msv Target Version 7.2.0 => 7.3.0
2017-08-07 15:11 apv Test case number => bugs moddata_2 bug26_1, bug26_2
2017-08-07 15:14 apv Note Added: 0069159
2017-12-05 17:01 msv Target Version 7.3.0 => 7.4.0
2019-08-12 16:37 msv Target Version 7.4.0 => 7.5.0
2020-09-14 22:56 msv Target Version 7.5.0 => 7.6.0
2021-08-29 18:51 msv Target Version 7.6.0 => 7.7.0
2022-10-24 10:43 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:08 dpasukhi Target Version 7.8.0 => Unscheduled