Brep AreaMassProperties.Compute error

I end up with a bunch of planar breps after boolean splitting a brep with some cutter curves.
My aim is to order the result of Brep.Split() method as per the X co-ordinates of centroid of each brep in a specific plane.
There are a couple of planar breps (surfaces) where I consistently failed to calculate the AreaMassProperties which is what I am using to get the centroid.
If I extract the boundary curves of these two planar breps and do the same process then AreaMassProperties succeeds.

Wondering if anyone can tell me whats wrong with these planar breps exactly as I couldnt find anything.
Thanks!

BrepTest.3dm (68.4 KB)
BrepTest.gh (26.0 KB)

Hi @srujan.v16,

If you run Rhino’s AreaCentroid command on your two Breps, you’ll see that it fails. Something is borked with the trims.

Try this:

  1. Run the DupBorder command on each of the two Breps.
  2. Run the UntrimAll command on each of the two Breps.
  3. Run the Trim command and re-trim the Breps using the border curve as a cutter.

BrepTest.zip (38.9 KB)

– Dale

Thanks for getting back @dale . Cheers