I'm trying to triangulate a Shape with FastDiscrete. The Discrete version works good:
Bnd_Box * r = new Bnd_Box () ; // to be saved anyway
BRepBndLib::Add (this->Shape(),* r);
Handle (BRepMesh_FastDiscret) mesh = new BRepMesh_FastDiscret(0.25,Shape (),*r,0.1,true,true,false,false);
The function shape returns a TopoDS_Shape& from an Handle.
VisualC++ 7.1 stops me with an Exception:
HEAP[xxx.exe]: Heap missing last entry in committed range near e23bd28
I'm missing something? Maybe I'm wrong with the bounding box?
I'm getting the same thing in release and debug mode, and even if add the surface after the constructor.