performing the boolean operation between the two imported model

Hello everyone
How to perform the boolean operation between the two imported model? I do import the two format of .brep file into the view, then perform boolean operation using the function as following.
BRepBoolAPI_Fuse S(S1,S2); BRepBoolAPI_Common S(S1,S2);BRepBoolAPI_Cut S(S1,S2);
I must know S1,S2 if i want to perform boolean operation£¬How to get the name of the two imported model?
I will be appreciate for your help!

Forum supervisor's picture

Dear ,
See a corresponding description of the method BRepTools::Read(...) in BRepTools.hxx file.
Regards

niubiao's picture

Thank you very much for your reply.
I have known this method to do it.
I want to get the name of the two model through the selection of the mouse before performing the boolean operation .
If i could get the S1 and S2 through the selection of the mouse to decide the boolean operation between which two model ?