Brep Center Point in Grasshopper-Python?

Hello guys,

I’m wondering to know if there is any method to get the centre point of a brep in python?
Thank you very much!

Hi @kai.yeh,

What does your brep look like?

Hello,
thanks for your reply! It’s basically a box or a enclosed polygonal geometry.

Thank you!

Hi @kai.yeh,

If the Brep is solid, you might just calculate the centroid.

https://developer.rhino3d.com/api/RhinoScriptSyntax/#surface-SurfaceVolumeCentroid

– Dale