Grasshopper

algorithmic modeling for Rhino

Is there a method for creating a polygon by edge length much like you can in Rhino? I'm looking to create the base of a pyramid with a varied number of sides.

Views: 2936

Replies to This Discussion


You can calculate the polygon radius based on the desired edge length and number of sides.

Radius = (edge length)/(2*sin(pi/(number of sides)))

Or you can use a geometric method to generate the polygon:

Thanks! That works great!

Hi!

I am new to using Grasshopper, and I am looking to generate polygons wrt their edge length, for my aggregation algorithm. If it is not of an inconvenience to you, could you pleas share your GH file for my reference?

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service