Scripting in GH Part 04

Software: 
Tag: 
Video Duration: 
5 minutes
Author: 
Zach Downey

In this quick tutorial we apply what we learned about lists and loops from part 3 to create a list of points.  We also make a couple of modifications to the points to plot a simple exponential function.

List<Point3d> pts = new List<Point3d>();
for (int i = 0; i < 10; i++) {
Point3d tempPt = new Point3d(i, 0, 0);
pts.Add(tempPt);
}
A = pts;

Rating

Please rate this tutorial below. Thanks.

5
Average: 4.8 (9 votes)

Want to Contribute?

Want to be an author? Drop us a line here we'd love to have you.

Already have a video you'd like to post? Send us a link and we'll get you going.

:)