Grasshopper

algorithmic modeling for Rhino

this isnt so much a GH question as it is a rhinoscript question but maybe someone can help. i need to move boxes at random in the z direction. this is easily done in GH but i need to maintain the layers they are in and baking each one individually is going to be too time consuming. I have a working script up to the point where i need to specify a start point and an end point. for the start point i need the centroid of the box but i am not sure what the function is in the rhino namespace for this. any help?

 

nels

Views: 2484

Replies to This Discussion

Rhino.SurfaceVolumeCentroid

 

--

David Rutten

david@mcneel.com

Seattle, WA

 

 

 

6 years later, I have kinda the same problem. I am using rhinoscriptsyntax in Python (see image) but what I get is not what I expected. How do I get 3dpoints as output?

Attachments:

Like Tom said, you want to use RhinoCommon. I suggest avoiding rhinoscriptsyntax at all costs. See below.
EDIT: You can use the same logic for closed volumes with Rhino.Geometry.VolumeMassProperties.
/SPM

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service