Grasshopper

algorithmic modeling for Rhino

I can create a New Arc etc but receive an error for the brep constructor

 

Views: 271

Replies to This Discussion

Hi Thomas,

 

Brep does not have constructors, it has shared methods that create new breps behind the scene.

 

Reason for this is two-fold:

 

  1. Constructors should not throw exceptions. But if something goes wrong then an exception is the only way a constructor can signal this. A Shared function can return a null reference.
  2. Constructors are all called the same, the Shared functions can have descriptive names. Most shared functions start with "Create".

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service