Grasshopper

algorithmic modeling for Rhino

any idea about how to use
public static Rectangle3d CreateFromPolyline( IEnumerable<Point3d> polyline ) ?

does it means a static method of the rectangle3d class producing a rectangle3d?
like this
Rectangle3d r = new Rectangle3d(CreateFromPolyline(poly));

Views: 318

Replies to This Discussion

Rectangle3d r = Rectangle3d.CreateFromPolyline(poly);

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

sorry, david.

thanks for the lesson

Static methods are methods that do not require an instance of the class to be created in order to call that method.  Static method generally supply some useful methods that are designed to be readily available.  If you ever used the old Rhino .Net SDK, there was a class called RhUtil that provided a ton of great methods in this manner.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service