Grasshopper

algorithmic modeling for Rhino

Brep Explode component exploding multiple surfaces in random order

Hello,

I have been working on a definition which explodes multiple surfaces at once. I then want to extract the same edge from each surface to draw a line. The Brep Explode component explodes all surfaces into points and edges in a random order which means I am not able to select the same edge from each surfaces using List Item component.

Is there a way to control starting point and order (clockwise/anticlockwise) during brep explosion? The bottom most surface has the correct order but the rest are following a different order which is the problem.

I have made the primary surface by selecting edge curves (in the same order for all surfaces) in rhino using the Surface>Edge Curves command.

I have looked into various options but cannot seem to find a solution to this problem.

I am attaching the relevant files and an image.

Thank you.

Views: 3987

Attachments:

Replies to This Discussion

Hi.

This issue was due to surface(Curve) directions, so you should unify curve directions and seam positions.

Attachments:

Ok...you have absolutely made my day.! Thank you so much. This works perfectly.!! 

However, this is a bit complex for me so I will study your definition to understand the method you used.

Do you think this could be sorted in Rhino before making the surfaces?

Of course you can.

Try "Dir" command in rhino that will allow you to flip normal direction or swap U, V direction and modify seam position. 

Thank you Hyungsoo. When I am using this for 32 surfaces, it again jumbles up. Any idea why? I have increased the integer in your definition to 31 in order to allow me to do that.

I am attaching the drawing for you to see how it is getting jumbled. I cant understand why that is happening.

Sorry the files didn't upload in the last message.

Attachments:

I think you'd better fix surface normal direction and base curve seam position

using "Dir" and "CrvSeam" command in rhino.

file

Attachments:

Thank you so much Hyungsoo....You were right. Fixing it in rhino is easier and less complicated for someone who isnt very fluent with Grasshopper. Hopefully I will imrove my skills soon enough. :) Your help is much appreciated!

Hey, 

I happened to be working on this as well. My process was to flip the curves towards the same normal direction, create planes on each surface and then use the 'sort along curve' component to sort the center points. 

Hi Erik. 

Thank you!

We seem to be working on something very similar. You are right about the flip and sort along curve but with multiple surfaces, it was still giving errors on a few surfaces. Hyungsoo has uploaded a great solution though. It might help you too if you have the same issue as me.

Solving it in rhino like Hyungsoo suggested has worked perfectly.

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