I would like to cast handle to TopoDS_Shape to something like void *, so that I can store the reference to the Shape in some C structures, that is completely independent of CAS.
This is what I have tried but, of course, it does not work since I am quite clueless in C++.
BRepTools::Read(aShape,file,aBuilder) (where file is some .brep file)
TopoDS_Shape& aShape= reinterpret_cast
The above is not correct but gives an idea of what I am trying to do. Question is: what is the correct way to get back to the TopoDS_Shape from the C style handle ?
Any help is greatly appreciated.