View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0024226 | Community | OCCT:Modeling Data | public | 2013-10-05 23:57 | 2013-10-11 12:50 |
| Reporter | baraujo | Assigned To | baraujo | ||
| Priority | high | Severity | crash | ||
| Status | closed | Resolution | no change required | ||
| Platform | Windows | OS | VC++ 2010 | ||
| Product Version | 6.6.0 | ||||
| Summary | 0024226: Crash on Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, s0, s1); | ||||
| Description | OCC crashes when exploring the edges a simple surface. I send in the surface in attachment so you can reproduce the error. | ||||
| Steps To Reproduce | for (TopExp_Explorer aSurfExp(aShape, TopAbs_FACE); aSurfExp.More(); aSurfExp.Next()) { TopoDS_Face aFace = TopoDS::Face(aSurfExp.Current()); for (TopExp_Explorer aWireExp(aFace, TopAbs_WIRE); aWireExp.More(); aWireExp.Next()) { TopoDS_Wire aWire = TopoDS::Wire(aWireExp.Current()); cout << "Wire" << endl; for (TopExp_Explorer anEdgeExp(aWireExp.Current(), TopAbs_EDGE); anEdgeExp.More(); anEdgeExp.Next()) { TopoDS_Edge anEdge = TopoDS::Edge(anEdgeExp.Current()); cout << "Edge" << endl; double s0, s1; Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, s0, s1); GeomLProp_CLProps props(aCurve, (s0 + s1)*0.5, 2, Precision::Confusion()); double aCurvature = props.Curvature(); cout << "Curvature: " << aCurvature << endl; } } } | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
|
|
|
That face has degenerated edge (an edge without 3d curve, representing a single point in 3d, required to close face boundary in parametric space of the surface with singularity). Use BRep_Tool::Degenerated() to check this situation. |
|
|
Verifying that aCurve is null solves the problem (aCurve.IsNull()). |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-10-05 23:57 | baraujo | New Issue | |
| 2013-10-05 23:57 | baraujo | Assigned To | => ifv |
| 2013-10-05 23:57 | baraujo | File Added: surface_i.step | |
| 2013-10-06 07:12 |
|
Note Added: 0025915 | |
| 2013-10-06 07:12 |
|
Assigned To | ifv => baraujo |
| 2013-10-06 07:12 |
|
Status | new => feedback |
| 2013-10-11 12:40 | baraujo | Note Added: 0026046 | |
| 2013-10-11 12:50 |
|
Status | feedback => closed |
| 2013-10-11 12:50 |
|
Resolution | open => no change required |