View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023170 | Community | OCCT:Modeling Algorithms | public | 2012-05-24 03:27 | 2012-11-16 13:16 |
Reporter | dingzh | Assigned To | bugmaster | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2010 | ||
Product Version | 6.5.3 | ||||
Target Version | 6.5.4 | Fixed in Version | 6.5.4 | ||
Summary | 0023170: Bug of creating a full sphere face | ||||
Description | Using new OCC6.5.3, I can't create a full sphere face any more like before. face = BRepBuilderAPI_MakeFace (gp_Sphere(ax2, radius), 0, 6.2831853071795880, -1.5707963267948970, 1.5707963267948970); it will throw an exception in another sub API: static Standard_Boolean IsDegenerated(const Handle(Geom_Curve)& theCurve, const Standard_Real theMaxTol, Standard_Real& theActTol) { GeomAdaptor_Curve AC(theCurve); Standard_Real aConfusion = Precision::Confusion(); theActTol = aConfusion; GeomAbs_CurveType Type = AC.GetType(); if (Type == GeomAbs_Circle) { //exception throwed here gp_Circ Circ = AC.Circle(); ---------------------------------- | ||||
Steps To Reproduce | DRAW script to reproduce (in Debug mode only): pload MODELING sphere s 10 mkface f s 0 6.2831853071795880 -1.5707963267948970 1.5707963267948970 | ||||
Tags | No tags attached. | ||||
Test case number | chl 934 K0 | ||||
|
The problem is not a regression in 6.5.3, but is reproduced in Debug mode only, and only when supplied range by V is greater than 'precise' PI/2 (as in this case, even if it is greater only by double epsilon). The reason is that the method obtaining V isoline of sphere is not protected against case when |V| > PI/2; it creates circle with negative radius. In the reported case V = PI/2 but negative radius is still computed due to limited precision of floating point representation (the order is ~1e-15). |
|
The fix is put in Git branch CR23170, please review (see http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff;h=7bbe72d80f28a606e042624259b4c5705aa3189a) |
|
No remarks |
2012-05-31 17:11 tester |
K0 (543 bytes) |
|
Dear BugMaster, The workbenches KAS:dev:aan-23170-occt (GIT branch CR23170) KAS:dev:aan-23170-products (GIT master) were compiled on Linux platform and tested. Regression: Not detected Improvements: Not detected Testing case: chl 934 K0 testing case has been created for issue. Results of execution is successfully. See results in /QADisk/occttests/results/KAS/dev/aan-23170-products_31052012/lin See reference results in /QADisk/occttests/results/KAS/dev/products-20120518-opt_19052012/lin See test cases in /QADisk/occttests/tests/ED N.B. In order to launch testing case you can make use the following instructions http://doc/doku.php?id=occt:certification |
occt: master 5554ac68 2012-05-24 05:51:11
Committer: bugmaster Details Diff |
0023170: Bug of creating a full sphere face Method ElSLib::SphereVIso() is protected against creation of circle with negative radius when |V| > PI/2; now the circle on analytic continuation of sphere behind poles is returned in this case (thus always with positive or zero radius) |
Affected Issues 0023170 |
|
mod - src/ElSLib/ElSLib.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-24 03:27 | dingzh | New Issue | |
2012-05-24 03:27 | dingzh | Assigned To | => jgv |
2012-05-24 09:41 |
|
Note Added: 0020572 | |
2012-05-24 09:41 |
|
Assigned To | jgv => abv |
2012-05-24 09:41 |
|
Status | new => assigned |
2012-05-24 09:41 |
|
Target Version | => 6.5.4 |
2012-05-24 09:41 |
|
Steps to Reproduce Updated | |
2012-05-24 09:53 |
|
Note Added: 0020573 | |
2012-05-24 09:53 |
|
Assigned To | abv => dingzh |
2012-05-24 09:53 |
|
Status | assigned => resolved |
2012-05-25 16:47 |
|
Assigned To | dingzh => jgv |
2012-05-31 12:07 |
|
Note Added: 0020622 | |
2012-05-31 12:07 |
|
Status | resolved => reviewed |
2012-05-31 12:09 |
|
Assigned To | jgv => aan |
2012-05-31 17:11 |
|
Test case number | => chl 934 K0 |
2012-05-31 17:11 |
|
File Added: K0 | |
2012-06-01 16:10 |
|
Note Added: 0020629 | |
2012-06-01 16:11 |
|
Assigned To | aan => bugmaster |
2012-06-01 16:11 |
|
Status | reviewed => tested |
2012-06-04 16:14 | bugmaster | Changeset attached | => occt master 5554ac68 |
2012-06-04 16:14 | bugmaster | Status | tested => verified |
2012-06-04 16:14 | bugmaster | Resolution | open => fixed |
2012-11-16 13:15 | bugmaster | Fixed in Version | => 6.5.4 |
2012-11-16 13:16 | bugmaster | Status | verified => closed |