Could you pleas send me a Code example of using the [VolumeMassProperties.Centroid Property] in Rhino common pleas. I am trying to get the centroid of boundingbox that I have generated using rehinoscriptsyntax like this:
for i in ListGuids:
BoBox = rs.BoundingBox(i)
BoBox = rs.coercebrep(BoBox, False)
BoundingBrep = rs.coercebrep(BoundingGeo, False)
#massprop = rs.SurfaceVolume(BoundingBrep)
poCen = R.Geometry.VolumeMassProperties.Centroid(BoBox)
but it doesnt seem Right.