DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0033189

GeomAPI_Interpolate calling load() with a changing tangents array multiple times crashes on Windows fine on Linux

CommunityOCCT:Modeling Algorithmsnew0 public notes

Search issues

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.

[signature removed]

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)

}

Public activity

No public notes

Participants are labeled by their role within this record.