Grasshopper

algorithmic modeling for Rhino

Hi all,

 

I'm trying to simulate the ExtrudeFace command.  I have a closed Brep > Explode component.  Could someone help me understand how to cull the F(aces) output to grab the faces I need?

 

tia,

 

dh

Views: 503

Replies to This Discussion

Hi Declan,

 

what is the criteria for the faces you need?

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi David,

 

The Explode component outputs a list of trimmed srfs.  I just need to somehow grab the relevant 5 srfs and ignore the rest.  This is probably VERY rudimentary stuff; I know I've seen some list-sorting info in early tut's but I can't remember where.... 

 

Thanks for such a splendid tool!

 

dh

Chris
Beware, you're connecting an output that returns a point in 3d space to an input that expects a surface uv coordinate.

I was aware of that but was just trying to get something quick to display the concept.

Thanks.

Chris

It might confuse new users.
I have to agree with Vicente on this plugging in the 3D centroid into the UV 2D input does not equate to the same thing. Have a look at where the actual evaluation planes area on your faces. As they are planar it doesn't matter in this case because everywhere has the same normal direction, but if you were looking for the center of a curved surface it might offer some funny results. I changed the example below to reflect this.

Point taken.

Thanks.

Chris

How do you define what 5 surfaces are relevant?

Usually a good way to select surfaces based on Already known criteria such as height is Sort and SubList. By using the synchronous sort inputs available through the input manager on the context menu you can reduce a list to only include a subset of the Faces.

In the example below the height of the face's centroid has been used to find everything above base. i.e. not the smallest

EDITED VERSION. To reflect Vicente's comments above.

Hi all, thanks for all the comments.

 

I basically want to simulate the OffsetPolysrf command in Rh5.0.  I have figured out how to use ListItem component, and then Offset, but they remain seperate.  I don't see any BlenSrf type of command, so is there anyway to join the srfs and offsetPolysrf?

 

Thanks again!

Attachments:
What shape is your Brep?

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service