Grasshopper

algorithmic modeling for Rhino

Hi all,

I'm trying to build a hemisphere and then mesh it with predefined parameter using GH Python. However the Geometry.Mesh.CreateFromBrep() function I'm using requires Brep while the hemisphere I built is Guid.

Is there a way to work around this? Your inputs would be very helpful.

I'm a beginner so please forgive me if the question sounds stupid...

Thanks,

V

 

Views: 2206

Attachments:

Replies to This Discussion

sphere=rc.Geometry.Sphere(...)

You'd better not use AddSphere(...)

Hi Panda,

Thanks for the info!

I just found out that you can also use rs.coercebrep() to generate a brep using given guid..

Related to your answer, is there a particular reason why I shouldn't use the AddSphere()?

Attachments:

Becouse AddSphere(...) will first add a sphere into rhino document,and return a guid,coercebrep(...) will find BrepObject by the guid,I thought it more complicate!

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