Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5743

ScriptExample to get polysurface centroid

$
0
0

@tigberlin89 wrote:

Hi all,
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.

Thanks!
Ghaith

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5743

Trending Articles