View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023954 | Community | OCCT:Modeling Algorithms | public | 2013-05-11 12:39 | 2023-03-19 22:31 |
Reporter | Roman Lygin | Assigned To | abulyche | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Target Version | 7.7.0 | Fixed in Version | 7.7.0 | ||
Summary | 0023954: Modeling Algorithms - BRepPrimAPI_MakeRevol fails to recognize a torus case | ||||
Description | Adaptor3d_SurfaceOfRevolution::GetType() applies wrong logic to recognize a torus case. Instead of a simple case when rotation axis lies in the circle plane (and does not coincide with its center) it attempts to apply more sophisticated logic which apparently never returns torus (with a single exception when Distance = aRadius + epsilon Also the logic to compute a point with 0. parameter on a circle is wrong as the circle can have arbitrary orientation. The torus should be created regardless even if a Distance < aRadius. This would be a lemon-like torus which is well supported by Open CASCADE. The fix should be straightforward: if (!C.Position().IsCoplanar(myAxis, TolConf, TolAng)) { return bRet; } else if(aLin.Distance(aLC) <= TolConf) { bRet=GeomAbs_Sphere; return bRet; } else { bRet=GeomAbs_Torus; return bRet; } However it is not integrated into OCC git - apparently it was tested and declined (based on the comment //bRet=GeomAbs_Torus; //return bRet; //modified by NIZNHY-PKV Thu Feb 24 09:52:29 2011t) So the OCC team should verify against the #22646 (for which access is denied) See also reproducers. | ||||
Steps To Reproduce | circle c_1 0 100 0 1 0 0 0 1 0 100 circle c_2 0 100 0 1 0 0 0 0 1 100 circle c_3 0 100 0 1 0 0 0 -1 0 100 circle c_4 0 100 0 1 0 0 0 0 1 10 circle c_5 0 100 0 1 0 0 0 0 1 120 for {set i 1} {$i<=5} {incr i} {mkedge e c_$i; revol r e 0 0 0 0 0 1 90; mksurf s_$i r} dump s_$i and verify that they are all torii | ||||
Tags | No tags attached. | ||||
Test case number | bugs modalg_5 bug23954 | ||||
|
Problem is reproduced Test case is required |
|
Test case is bugs/modalg_5/bug23954. |
|
Dear Andrei, The result seems to be OK on the current MASTER. |
|
Please check if test case is OK |
|
Small remark! Result is "surface of revolution" (not Toroidal surface). Nevertheless, it is not the reason to consider, that it is not valid. |
|
The test case bugs/modalg_5/bug23954 does not conform to the bug description. It must be updated so that the output of each "dump" is checked against toroidal surface type, and presence of SurfaceOfRevolution instead of Toroidal must be considered as an error. |
|
Test case bugs modalg_5 bug23954 was updated and it'll be pushed to the next IR and integrated to master (marked with TODO, will be modified when correct output will get). |
|
bug23954 (713 bytes) |
|
Branch CR23954 has been created by abulychev-ext. SHA-1: fe081bb53ab9b712efad8ccea5184a521fe01178 Detailed log of new commits: Author: abulyche Date: Fri Sep 9 13:21:03 2022 +0300 0023954: Modeling Algorithms - BRepPrimAPI_MakeRevol fails to recognize a torus case Fixed the Toroidal surface recognition; The test case bugs/modalg_5/bug23954: BAD -> OK. |
|
Branch CR23954 has been updated forcibly by abulychev-ext. SHA-1: e7bbfab55f187bf209846516b277542efe67dd79 |
|
Branch CR23954 has been updated forcibly by abulychev-ext. SHA-1: 19d9c3ff359d6ecd112dd07f8f86de548062c051 |
|
Branch for review: Products - CR23954 Results: http://jenkins-test-occt.nnov.opencascade.com/view/CR23954-master-abulychev-ext/ |
|
Branch CR23954 seems to be valid |
|
Branch CR23954 has been deleted by mnt. SHA-1: 19d9c3ff359d6ecd112dd07f8f86de548062c051 |
occt: master 259b9303 2022-09-09 13:21:03 Committer: |
0023954: Modeling Algorithms - BRepPrimAPI_MakeRevol fails to recognize a torus case Fixed the Toroidal surface recognition; The test case bugs/moddata_1/bug22296: the result is a torus with parameters: u [0, 2*PI], v [PI, 3*PI]; The test case bugs/modalg_5/bug23954: BAD -> OK. |
Affected Issues 0023954 |
|
mod - src/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx | Diff File | ||
mod - tests/bugs/modalg_5/bug23954 | Diff File | ||
mod - tests/bugs/moddata_1/bug22296 | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-05-11 12:39 | Roman Lygin | New Issue | |
2013-05-11 12:39 | Roman Lygin | Assigned To | => jgv |
2014-01-29 17:42 | bugmaster | Note Added: 0027698 | |
2014-01-29 17:42 | bugmaster | Assigned To | jgv => apn |
2014-01-29 17:42 | bugmaster | Status | new => assigned |
2014-03-17 15:55 | apn | Note Added: 0028302 | |
2014-03-17 15:55 | apn | Test case number | => bugs modalg_5 bug23954 |
2014-03-17 15:55 | apn | Assigned To | apn => jgv |
2014-09-12 14:43 |
|
Target Version | => 7.1.0 |
2015-04-10 17:35 |
|
Note Added: 0039603 | |
2015-04-10 17:35 |
|
Assigned To | jgv => abv |
2015-04-10 17:35 |
|
Status | assigned => feedback |
2015-04-10 17:50 |
|
Note Added: 0039606 | |
2015-04-10 17:50 |
|
Assigned To | abv => apn |
2015-04-10 17:50 |
|
Target Version | 7.1.0 => 6.9.0 |
2015-04-10 17:51 |
|
Note Edited: 0039606 | |
2015-04-10 17:55 |
|
Note Added: 0039607 | |
2015-04-10 18:35 |
|
Assigned To | apn => msv |
2015-04-10 18:35 |
|
Target Version | 6.9.0 => 7.1.0 |
2015-04-13 10:40 |
|
Note Added: 0039618 | |
2015-04-13 10:40 |
|
Assigned To | msv => apn |
2015-04-13 10:40 |
|
Status | feedback => assigned |
2015-04-21 13:20 | apn | Note Added: 0040072 | |
2015-04-21 13:21 | apn | File Added: bug23954 | |
2015-04-21 13:22 | apn | Note Edited: 0040072 | |
2015-04-21 13:23 | apn | Assigned To | apn => msv |
2016-10-28 17:52 |
|
Target Version | 7.1.0 => 7.2.0 |
2017-07-21 11:22 |
|
Target Version | 7.2.0 => 7.3.0 |
2017-12-05 17:09 |
|
Target Version | 7.3.0 => 7.4.0 |
2019-08-12 16:44 |
|
Target Version | 7.4.0 => 7.5.0 |
2020-09-14 22:55 |
|
Target Version | 7.5.0 => 7.6.0 |
2021-08-29 18:52 |
|
Target Version | 7.6.0 => 7.7.0 |
2022-07-21 07:47 |
|
Assigned To | msv => abulychev-ext |
2022-09-09 13:05 |
|
Summary | BRepPrimAPI_MakeRevol fails to recognize a torus case => Modeling Algorithms - BRepPrimAPI_MakeRevol fails to recognize a torus case |
2022-09-09 13:21 | git | Note Added: 0110903 | |
2022-10-06 16:34 | git | Note Added: 0111414 | |
2022-10-10 16:24 | git | Note Added: 0111459 | |
2022-10-11 01:07 |
|
Note Added: 0111469 | |
2022-10-11 01:07 |
|
Assigned To | abulychev-ext => ifv |
2022-10-11 01:07 |
|
Status | assigned => resolved |
2022-10-11 12:59 |
|
Assigned To | ifv => bugmaster |
2022-10-11 12:59 |
|
Status | resolved => reviewed |
2022-10-11 12:59 |
|
Note Added: 0111482 | |
2022-11-02 13:40 |
|
Status | reviewed => tested |
2022-11-02 13:46 |
|
Changeset attached | => occt master 259b9303 |
2022-11-02 13:46 | abulyche | Assigned To | bugmaster => abulyche |
2022-11-02 13:46 | abulyche | Status | tested => verified |
2022-11-02 13:46 | abulyche | Resolution | open => fixed |
2022-11-02 13:52 | git | Note Added: 0111843 | |
2023-03-19 22:31 | vglukhik | Status | verified => closed |
2023-03-19 22:31 | vglukhik | Fixed in Version | => 7.7.0 |