can't read .brep(the result is false)

I use these code to read .brep, but it can work.
TopoDS_Shape shape_Brep;
BRep_Builder builder_Brep;
std::string filename = "./data/Cir_Rect_int.brep";
bool result = BRepTools::Read(shape_Brep, filename.c_str(), builder_Brep);
VS shows that result is false, and shape_Brep is null.

Dmitrii Pasukhin's picture

Hello, your relative path depends on binary folder. Please use absolute path.

Best regards, Dmitrii