Anonymous | Login 2019-09-22 13:34 MSK Project: All Projects Community Open CASCADE
 My View | View Issues | Change Log | Roadmap

 View Revisions: Issue #24418 Summary 0024418: Modeling Algorithms - Wrong section curves when intersecting analytical surfaces Revision 2018-07-09 10:50 by nbv Steps To Reproduce 1. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 # Sphere + Cylinder intersect ii s1t s2 # 3 curves bounds ii_2 u1 u2 xdistcs ii_2 s1 u1 u2 10 2.0e-7 # Max distance = 3.2632852455436544e-006 xdistcs ii_2 s2 u1 u2 10 2.0e-7 # Max distance = 0.01375619471412208 2. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect ii s1t s2t bounds ii_1 u1 u2 xdistcs ii_1 s1 u1 u2 10 2.0e-7 # Max distance = 4.0530416013101348e-006 xdistcs ii_1 s2 u1 u2 10 2.0e-7 # Max distance = 1.7347713433437292e-005 3. Test case bugs modalg_5 bug25715_3 Revision 2017-03-13 17:05 by nbv Steps To Reproduce 1. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 # Sphere + Cylinder intersect ii s1t s2 # 3 curves bounds ii_2 u1 u2 xdistcs ii_2 s1 u1 u2 10 2.0e-7 # Max distance = 2.5069776882412663e-007 xdistcs ii_2 s2 u1 u2 10 2.0e-7 # Max distance = 0.008108532733822723 2. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect ii s1t s2t bounds ii_1 u1 u2 xdistcs ii_1 s1 u1 u2 10 2.0e-7 # Max distance = 4.0530416013101348e-006 xdistcs ii_1 s2 u1 u2 10 2.0e-7 # Max distance = 1.7347713433437292e-005 3. Test case bugs modalg_5 bug25715_3 Revision 2015-01-28 09:33 by nbv Steps To Reproduce 1. test boolean bfuse_complex F8 brestore [locate_data_file CTO900_pro12913a.rle] b1 brestore [locate_data_file CTO900_pro12913b.rle] b2 explode b1 f; copy b1_80 b1 explode b2 f; copy b2_11 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 -63.956245792408595 -4.2879929557997203 trimv s2t s2 6.4770134261614603 83.000000000000000 intersect i s1t s2t xdist i_2 s1 0 1 10 # T=0 D=2.84217e-014 # T=0.111111 D=1.93663e-006 # T=0.222222 D=7.95308e-006 # T=0.333333 D=7.53854e-006 # T=0.444444 D=1.95879e-006 # T=0.555556 D=9.22865e-007 # T=0.666667 D=6.53167e-006 # T=0.777778 D=8.17565e-006 # T=0.888889 D=2.93864e-006 # T=1 D=1.21001e-013 2. test boolean bfuse_complex E6 brestore [locate_data_file CTO900_pro10505a.rle] b1 brestore [locate_data_file CTO900_pro10505b.rle] b2 explode b1 f; copy b1_116 b1 explode b2 f; copy b2_62 b2 mksurface s1 b1 mksurface s2 b2 trim s1t s1 -0.0012190867486788701 1.4683833022699488 -0.028801290365758212 55.101451171955297 trim s2t s2 2.2213230393482890 3.3067866568472000 -7.0741083400968003 0.00000000000000000 intersect i s1t s2t xdist i_2 s2 0 1 10 # T=0 D=1.43698e-013 # T=0.111111 D=1.17281e-006 # T=0.222222 D=2.05242e-006 # T=0.333333 D=2.63883e-006 # T=0.444444 D=2.93204e-006 # T=0.555556 D=2.93204e-006 # T=0.666667 D=2.63883e-006 # T=0.777778 D=2.05242e-006 # T=0.888889 D=1.17281e-006 # T=1 D=9.09502e-013 3. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 intersect i s1t s2 xdist i_2 s2 0 1 10 # T=0 D=0 # T=0.111111 D=2.37897e-005 # T=0.222222 D=0.000579035 # T=0.333333 D=0.00142882 # T=0.444444 D=0.00200911 # T=0.555556 D=0.00209179 # T=0.666667 D=0.00167903 # T=0.777778 D=0.000955515 # T=0.888889 D=0.000251052 # T=1 D=1.42109e-014 4. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect i s1t s2t xdist i_1 s2 0 1 10 # T=0 D=4.9738e-014 # T=0.111111 D=1.30838e-005 # T=0.222222 D=1.44843e-005 # T=0.333333 D=5.23496e-006 # T=0.444444 D=7.15449e-006 # T=0.555556 D=3.36401e-007 # T=0.666667 D=3.7473e-006 # T=0.777778 D=6.59327e-006 # T=0.888889 D=4.2374e-007 # T=1 D=5.0243e-014 5. case from the issue 0024094 restore [locate_data_file bug24094_face.brep] b1 mksurface s1 b1 plane s2 183.6 0 0 1 0 0 0 1 0 intersect i s1 s2 xdist i s1 0 1 10 # T=0 D=3.55271e-015 # T=0.111111 D=5.11695e-005 # T=0.222222 D=1.2791e-013 # T=0.333333 D=1.02461e-005 # T=0.444444 D=7.53183e-005 # T=0.555556 D=0.000129858 # T=0.666667 D=0.000110232 # T=0.777778 D=6.62612e-005 # T=0.888889 D=2.95434e-005 # T=1 D=3.87784e-015 6. test boolean bsection R3 1 brestore [locate_data_file heal-Face1.rle] b1 brestore [locate_data_file Plan.rle] b2 bopcurves b1 b2 -2d mkedge e c_1 set t 0.95394471311469753 vertex ve \$t e 2dcvalue c2d1_1 \$t u v mksurface s b1 svalue s u v x y z vertex vs x y z distmini d vs ve # the distance value is : 118.818 # see attached picture 7. Test case bugs modalg_5 bug25715_3 Revision 2014-12-22 12:07 by emv Steps To Reproduce 1. test boolean bfuse_complex F8 brestore [locate_data_file CTO900_pro12913a.rle] b1 brestore [locate_data_file CTO900_pro12913b.rle] b2 explode b1 f; copy b1_80 b1 explode b2 f; copy b2_11 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 -63.956245792408595 -4.2879929557997203 trimv s2t s2 6.4770134261614603 83.000000000000000 intersect i s1t s2t xdist i_2 s1 0 1 10 # T=0 D=2.84217e-014 # T=0.111111 D=1.93663e-006 # T=0.222222 D=7.95308e-006 # T=0.333333 D=7.53854e-006 # T=0.444444 D=1.95879e-006 # T=0.555556 D=9.22865e-007 # T=0.666667 D=6.53167e-006 # T=0.777778 D=8.17565e-006 # T=0.888889 D=2.93864e-006 # T=1 D=1.21001e-013 2. test boolean bfuse_complex E6 brestore [locate_data_file CTO900_pro10505a.rle] b1 brestore [locate_data_file CTO900_pro10505b.rle] b2 explode b1 f; copy b1_116 b1 explode b2 f; copy b2_62 b2 mksurface s1 b1 mksurface s2 b2 trim s1t s1 -0.0012190867486788701 1.4683833022699488 -0.028801290365758212 55.101451171955297 trim s2t s2 2.2213230393482890 3.3067866568472000 -7.0741083400968003 0.00000000000000000 intersect i s1t s2t xdist i_2 s2 0 1 10 # T=0 D=1.43698e-013 # T=0.111111 D=1.17281e-006 # T=0.222222 D=2.05242e-006 # T=0.333333 D=2.63883e-006 # T=0.444444 D=2.93204e-006 # T=0.555556 D=2.93204e-006 # T=0.666667 D=2.63883e-006 # T=0.777778 D=2.05242e-006 # T=0.888889 D=1.17281e-006 # T=1 D=9.09502e-013 3. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 intersect i s1t s2 xdist i_2 s2 0 1 10 # T=0 D=0 # T=0.111111 D=2.37897e-005 # T=0.222222 D=0.000579035 # T=0.333333 D=0.00142882 # T=0.444444 D=0.00200911 # T=0.555556 D=0.00209179 # T=0.666667 D=0.00167903 # T=0.777778 D=0.000955515 # T=0.888889 D=0.000251052 # T=1 D=1.42109e-014 4. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect i s1t s2t xdist i_1 s2 0 1 10 # T=0 D=4.9738e-014 # T=0.111111 D=1.30838e-005 # T=0.222222 D=1.44843e-005 # T=0.333333 D=5.23496e-006 # T=0.444444 D=7.15449e-006 # T=0.555556 D=3.36401e-007 # T=0.666667 D=3.7473e-006 # T=0.777778 D=6.59327e-006 # T=0.888889 D=4.2374e-007 # T=1 D=5.0243e-014 5. case from the issue 0024094 restore [locate_data_file bug24094_face.brep] b1 mksurface s1 b1 plane s2 183.6 0 0 1 0 0 0 1 0 intersect i s1 s2 xdist i s1 0 1 10 # T=0 D=3.55271e-015 # T=0.111111 D=5.11695e-005 # T=0.222222 D=1.2791e-013 # T=0.333333 D=1.02461e-005 # T=0.444444 D=7.53183e-005 # T=0.555556 D=0.000129858 # T=0.666667 D=0.000110232 # T=0.777778 D=6.62612e-005 # T=0.888889 D=2.95434e-005 # T=1 D=3.87784e-015 6. test boolean bsection R3 1 brestore [locate_data_file heal-Face1.rle] b1 brestore [locate_data_file Plan.rle] b2 bopcurves b1 b2 -2d mkedge e c_1 set t 0.95394471311469753 vertex ve \$t e 2dcvalue c2d1_1 \$t u v mksurface s b1 svalue s u v x y z vertex vs x y z distmini d vs ve # the distance value is : 118.818 # see attached picture Revision 2013-11-29 11:27 by emv Steps To Reproduce 1. test boolean bfuse_complex F8 brestore [locate_data_file CTO900_pro12913a.rle] b1 brestore [locate_data_file CTO900_pro12913b.rle] b2 explode b1 f; copy b1_80 b1 explode b2 f; copy b2_11 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 -63.956245792408595 -4.2879929557997203 trimv s2t s2 6.4770134261614603 83.000000000000000 intersect i s1t s2t xdist i_2 s1 0 1 10 # T=0 D=2.84217e-014 # T=0.111111 D=1.93663e-006 # T=0.222222 D=7.95308e-006 # T=0.333333 D=7.53854e-006 # T=0.444444 D=1.95879e-006 # T=0.555556 D=9.22865e-007 # T=0.666667 D=6.53167e-006 # T=0.777778 D=8.17565e-006 # T=0.888889 D=2.93864e-006 # T=1 D=1.21001e-013 2. test boolean bfuse_complex E6 brestore [locate_data_file CTO900_pro10505a.rle] b1 brestore [locate_data_file CTO900_pro10505b.rle] b2 explode b1 f; copy b1_116 b1 explode b2 f; copy b2_62 b2 mksurface s1 b1 mksurface s2 b2 trim s1t s1 -0.0012190867486788701 1.4683833022699488 -0.028801290365758212 55.101451171955297 trim s2t s2 2.2213230393482890 3.3067866568472000 -7.0741083400968003 0.00000000000000000 intersect i s1t s2t xdist i_2 s2 0 1 10 # T=0 D=1.43698e-013 # T=0.111111 D=1.17281e-006 # T=0.222222 D=2.05242e-006 # T=0.333333 D=2.63883e-006 # T=0.444444 D=2.93204e-006 # T=0.555556 D=2.93204e-006 # T=0.666667 D=2.63883e-006 # T=0.777778 D=2.05242e-006 # T=0.888889 D=1.17281e-006 # T=1 D=9.09502e-013 3. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 intersect i s1t s2 xdist i_2 s2 0 1 10 # T=0 D=0 # T=0.111111 D=2.37897e-005 # T=0.222222 D=0.000579035 # T=0.333333 D=0.00142882 # T=0.444444 D=0.00200911 # T=0.555556 D=0.00209179 # T=0.666667 D=0.00167903 # T=0.777778 D=0.000955515 # T=0.888889 D=0.000251052 # T=1 D=1.42109e-014 4. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect i s1t s2t xdist i_1 s2 0 1 10 # T=0 D=4.9738e-014 # T=0.111111 D=1.30838e-005 # T=0.222222 D=1.44843e-005 # T=0.333333 D=5.23496e-006 # T=0.444444 D=7.15449e-006 # T=0.555556 D=3.36401e-007 # T=0.666667 D=3.7473e-006 # T=0.777778 D=6.59327e-006 # T=0.888889 D=4.2374e-007 # T=1 D=5.0243e-014 5. case from the issue 0024094 restore [locate_data_file bug24094_face.brep] b1 mksurface s1 b1 plane s2 183.6 0 0 1 0 0 0 1 0 intersect i s1 s2 xdist i s1 0 1 10 # T=0 D=3.55271e-015 # T=0.111111 D=5.11695e-005 # T=0.222222 D=1.2791e-013 # T=0.333333 D=1.02461e-005 # T=0.444444 D=7.53183e-005 # T=0.555556 D=0.000129858 # T=0.666667 D=0.000110232 # T=0.777778 D=6.62612e-005 # T=0.888889 D=2.95434e-005 # T=1 D=3.87784e-015 Revision 2013-11-29 11:21 by emv Steps To Reproduce 1. test boolean bfuse_complex F8 brestore [locate_data_file CTO900_pro12913a.rle] b1 brestore [locate_data_file CTO900_pro12913b.rle] b2 explode b1 f; copy b1_80 b1 explode b2 f; copy b2_11 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 -63.956245792408595 -4.2879929557997203 trimv s2t s2 6.4770134261614603 83.000000000000000 intersect i s1t s2t xdist i_2 s1 0 1 10 # T=0 D=2.84217e-014 # T=0.111111 D=1.93663e-006 # T=0.222222 D=7.95308e-006 # T=0.333333 D=7.53854e-006 # T=0.444444 D=1.95879e-006 # T=0.555556 D=9.22865e-007 # T=0.666667 D=6.53167e-006 # T=0.777778 D=8.17565e-006 # T=0.888889 D=2.93864e-006 # T=1 D=1.21001e-013 2. test boolean bfuse_complex E6 brestore [locate_data_file CTO900_pro10505a.rle] b1 brestore [locate_data_file CTO900_pro10505b.rle] b2 explode b1 f; copy b1_116 b1 explode b2 f; copy b2_62 b2 mksurface s1 b1 mksurface s2 b2 trim s1t s1 -0.0012190867486788701 1.4683833022699488 -0.028801290365758212 55.101451171955297 trim s2t s2 2.2213230393482890 3.3067866568472000 -7.0741083400968003 0.00000000000000000 intersect i s1t s2t xdist i_2 s2 0 1 10 # T=0 D=1.43698e-013 # T=0.111111 D=1.17281e-006 # T=0.222222 D=2.05242e-006 # T=0.333333 D=2.63883e-006 # T=0.444444 D=2.93204e-006 # T=0.555556 D=2.93204e-006 # T=0.666667 D=2.63883e-006 # T=0.777778 D=2.05242e-006 # T=0.888889 D=1.17281e-006 # T=1 D=9.09502e-013 3. test bugs modalg_2 bug20964_1 brestore [locate_data_file OCC20964_revsolid.brep] b1 brestore [locate_data_file OCC20964_sphere.brep] b2 explode b1 f; copy b1_7 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimv s1t s1 0 230.14184397163115 intersect i s1t s2 xdist i_2 s2 0 1 10 # T=0 D=0 # T=0.111111 D=2.37897e-005 # T=0.222222 D=0.000579035 # T=0.333333 D=0.00142882 # T=0.444444 D=0.00200911 # T=0.555556 D=0.00209179 # T=0.666667 D=0.00167903 # T=0.777778 D=0.000955515 # T=0.888889 D=0.000251052 # T=1 D=1.42109e-014 4. test draft angle F9 ptorus b1 25 24 90 plane p 20 20 10 0 0 1 pcone b2 p 10 8 40 explode b1 f; copy b1_1 b1 explode b2 f; copy b2_1 b2 mksurface s1 b1 mksurface s2 b2 trimu s1t s1 0 1.5707963267948966 trimv s2t s2 0 40.049968789001575 intersect i s1t s2t xdist i_1 s2 0 1 10 # T=0 D=4.9738e-014 # T=0.111111 D=1.30838e-005 # T=0.222222 D=1.44843e-005 # T=0.333333 D=5.23496e-006 # T=0.444444 D=7.15449e-006 # T=0.555556 D=3.36401e-007 # T=0.666667 D=3.7473e-006 # T=0.777778 D=6.59327e-006 # T=0.888889 D=4.2374e-007 # T=1 D=5.0243e-014