Grasshopper

algorithmic modeling for Rhino

Hello,

I want to get contours of bottom face of the brep. I want to do it through selecting curves according to their planes and dipatch the others. Is it possible to compare the plane's coordinates via function component ? If so, how to correctly formulate the expression ?

Regards,

Maciek

Views: 3260

Replies to This Discussion

You can use section Brep with plane

Attachments:

If a bottom face has always all edges coplanar with world xy plane, then you can :

1. explode brep

2. get all edges (E output)

3. evaluate points on them with point on curve component

3. get those points and decompose them

4. use f(x) component with formula "If x=0,true,false"

5. take Z values from point decomposition, and input it as x value in f(x)

6. use cull pattern , as pattern provide values produces with fx, list to cull is our brep edges from brep explosion

END

Other possibility, maybe more flexible : 

1. explode brep

2. compute area of faces (from F output) (area component)

3. get C (centroids)

4. sort list from C with sort list component(as K again provide Z values of centroid points)

5. as A input provide faces of exploded brep

6. use list item component with A output from sort list

7. now use brep wireframe on face outputted with list item component - thats your curve

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