Maybe I'm missing something pretty basic, but as you can see, I'm just giving a Handle(Geom_BSplineSurface) to the BRepBuilderAPI_MakeFace constructor with this signature:
Make sure that you have included Geom_BSplineSurface definition (e.g. #include <Geom_BSplineSurface.hxx>).
It is possible to make a forward declaration of Geom_BSplineSurface and Handle(Geom_BSplineSurface), but to use the inheritance information the class definition should be available to compiler.
Mon, 07/24/2017 - 07:47
Hello Fernando,
This problem looks strange, because such conversion should be possible in all versions.
Can you share a piece of code that does not work?
Thanks in advance!
Forum supervisor
Mon, 07/24/2017 - 16:52
Hello,
The snippet is available here => https://gist.github.com/ghedin/c2481a6d255bd5d09f13561e8471490b
Maybe I'm missing something pretty basic, but as you can see, I'm just giving a Handle(Geom_BSplineSurface) to the BRepBuilderAPI_MakeFace constructor with this signature:
As per the compiler error, a reinterpret_cast is needed - but that didn't help either.
Any advice would be truly appreciated.
Thank you!
Fernando
Mon, 07/24/2017 - 18:52
Make sure that you have included Geom_BSplineSurface definition (e.g. #include <Geom_BSplineSurface.hxx>).
It is possible to make a forward declaration of Geom_BSplineSurface and Handle(Geom_BSplineSurface), but to use the inheritance information the class definition should be available to compiler.
Mon, 07/24/2017 - 23:34
Hello Kirill, yes, the include was missing .
Thank you very much for your help.