View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033189 | Community | OCCT:Modeling Algorithms | public | 2022-11-02 16:57 | 2022-11-02 16:57 |
Reporter | jensgw | Assigned To | |||
Priority | normal | Severity | crash | ||
Status | new | Resolution | open | ||
Platform | Windows | OS | VC++ 2019 | ||
Product Version | 7.6.2 | ||||
Summary | 0033189: GeomAPI_Interpolate calling load() with a changing tangents array multiple times crashes on Windows fine on Linux | ||||
Description | Hey there, GeomAPI_Interpolate has the option to load a tangents array. If this array is modified and then loaded again OCCT crashes sometimes on windows it works fine on linux. Best regards | ||||
Steps To Reproduce | //In pseudocode: for(int i=1, i<10 , i++) { gp_Pnt startPoint = gp_Pnt(100,0,0) gp_Pnt endPoint = gp_Pnt(0,100,0) TColgp_HArray1OfPnt someArrayOfPoints(startpoint, endpoint) GeomAPI_Interpolate splineBuilder = GeomAPI_Interpolate(someArrayOfPOints) gp_Vec startTangent = gp_Vec(0,0,1) gp_Vec endTangent = gp_Vec(0,0,1) TColgp_Array1OfVec tangents = TColgp_Array1OfVec() TColStd_HArray1OfBoolean flags = TColStd_HArray1OfBoolean() tangents.add(1, startTangent) flags.add(1, true) splineBuilder.Load(tangents, flags) //this second call crashes most of the time on windows, sometimes it works though //it allways works with linux tangents.add(2, endTangent) flags.add(2, true) splineBuilder.Load(tangents, flags) } | ||||
Tags | No tags attached. | ||||
Test case number | |||||