IsDuplicate function

Hi,

I try to use the IsDuplicate() function for a ON_Brep object but I’m doing somthing wrong because the following code gives me “false” for variable “check”

const ON_Brep* brep = objref.Brep();

if(brep==0)
break;

ON_Brep* test = new ON_Brep(*brep);
bool check= brep->IsDuplicate(*test,0.01);

Any help is appreciated. Thanks
Michael

Hi Michael,

ON_Brep::IsDuplicate is not implemented:

http://mcneel.myjetbrains.com/youtrack/issue/RH-9337

You might try using RhinoCompareGeometry(). See rhinoSdkUtilities.h for details.

– Dale

Hi Dale,

ok, thanks.

Best Regards,
Michael