Grasshopper

algorithmic modeling for Rhino

How can I distiguish usual Brep vs. sweep with closed crv vs. a part of sphere?

Hello,

I have found, in Rhino those three breps are not exactly same type of brep.

1. a usual brep with 4 Points

2. a brep from sweep with closed crv.

3. trimmed brep from sphere

I want to distinguish those three type with C#.

How can I do it?

and is there more types of brep, that is different in code level?

Thanks!

Views: 489

Attachments:

Replies to This Discussion

One is an untrimmed surface, one is a closed surface and one is trimmed. So you should be able to figure this out by calling some methods on the BrepFace of each brep. IsClosed and IsSurface should work.

Additionally, the curvature of each object will be different.

thank you quick answer!

one more question, as you see in attachment,

second one is displayed in Rhino Object Type as 'Open Surface' and it is untrimmed.

I want to find, a brep, whose two edges meet together such like second one.

Can you give me hint for that?

Thanks!

Attachments:

Attachments:

danke sehr!!

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