View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031259 | Community | OCCT:Modeling Algorithms | public | 2019-12-22 17:34 | 2021-03-30 11:44 |
Reporter | blobfish | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Platform | amd64 | OS | linux debian | ||
Product Version | 5.2.2 | ||||
Summary | 0031259: Modeling Algorithms - basic shape offset smashes tolerances | ||||
Description | using offset shape in draw on a simple box, smashes tolerances on both the offset result and the input shape. | ||||
Steps To Reproduce | pload MODELING box aBox 20 10 6 explode aBox f maxtolerance aBox offsetshape result aBox 1.0 aBox_1 maxtolerance aBox maxtolerance result | ||||
Additional information and documentation updates | #results from above script:Draw[1]> Draw[2]> pload MODELING Draw[3]> box aBox 20 10 6 Draw[4]> explode aBox f aBox_1 aBox_2 aBox_3 aBox_4 aBox_5 aBox_6 Draw[5]> maxtolerance aBox ## Tolerances on the shape aBox (nbFaces:6 nbEdges:12 nbVtx:8) Face : Min 1.00000e-07 Max 1.00000e-07 Edge : Min 1.00000e-07 Max 1.00000e-07 Vertex : Min 1.00000e-07 Max 1.00000e-07 Draw[6]> offsetshape result aBox 1.0 aBox_1 OK. Offset performed succesfully. Draw[7]> maxtolerance aBox ## Tolerances on the shape aBox (nbFaces:6 nbEdges:12 nbVtx:8) Face : Min 1.00000e-07 Max 1.00000e-07 Edge : Min 1.00000e-07 Max 1.00000e-03 Vertex : Min 1.00000e-07 Max 1.00000e-03 Draw[8]> maxtolerance result ## Tolerances on the shape result (nbFaces:23 nbEdges:48 nbVtx:28) Face : Min 1.00000e-07 Max 1.00000e-07 Edge : Min 1.00000e-07 Max 1.00000e-03 Vertex : Min 1.00000e-07 Max 1.00000e-03 Draw[9]> | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
offsetBacktrace.txt (824 bytes) |
|
traced to BRepAlgo_Loop.cxx:677-692, where tolerances are blindly set to 0.001 Standard_Real Tol = 0.001; //5.e-05; //5.e-07; TopExp_Explorer explo( NW, TopAbs_VERTEX ); for (; explo.More(); explo.Next()) { const TopoDS_Vertex& aV = TopoDS::Vertex( explo.Current() ); Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &(aV).TShape()); TV->Tolerance( Tol ); TV->Modified( Standard_True ); } for (explo.Init( NW, TopAbs_EDGE ); explo.More(); explo.Next()) { const TopoDS_Edge& aE = TopoDS::Edge( explo.Current() ); Handle(BRep_TEdge)& TE = *((Handle(BRep_TEdge)*) &(aE).TShape()); TE->Tolerance( Tol ); TE->Modified( Standard_True ); } |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-22 17:34 | blobfish | New Issue | |
2019-12-22 17:34 | blobfish | Assigned To | => msv |
2020-01-27 10:13 | kgv | Summary | basic shape offset smashes tolerances => Modeling Algorithms - basic shape offset smashes tolerances |
2020-01-27 10:13 | kgv | Steps to Reproduce Updated | |
2020-01-27 10:13 | kgv | Additional Information Updated | |
2021-03-30 03:28 | blobfish | File Added: offsetBacktrace.txt | |
2021-03-30 03:32 | blobfish | Note Added: 0099836 | |
2021-03-30 11:44 | kgv | Product Version | => 5.2.2 |