Grasshopper

algorithmic modeling for Rhino

I'm wondering if there is an easy way to find parents faces from a given list of edges once you explode a Brep?

I have an imported Brep and am looking to offset an edge relative to one of it's parent faces. However, once I explode the brep into it's components I lose the connectivity? Is there a way to do this so I get a list of the two faces for each given edge?

Views: 1976

Replies to This Discussion

Why don't you simply use the [Explode] component with the faces from the [Brep Components (Explode)] component?

In that case I'd end up with lists of edges based on the faces. If taken as a set, there would be a large number of duplicate edges. It does keep edge connectivity to the face, but since I'm looking to offset the edge rather than work with the face, and it's easier for me to filter out duplicate faces - I'm wondering if there is a way to do the reverse (have a list of edges, find the corresponding faces).

each edge has its own path, face indices associated with each edge...

Grasshopper does not expose the Brep topology at this point. I'll see if RhinoCommon has enough methods to create a component that does this.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Private Sub RunScript(ByVal brp As Brep, ByVal ei As Integer, ByRef A As Object)
A = brp.Edges(ei).AdjacentFaces
End Sub

...seems to work

Yeah it does, I just added a Brep Topology component that lists for all faces and edges in the any brep what faces and edges surround it. I'll also see about creating a decent preview that shows some of this information in 3D.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

--

David Rutten

david@mcneel.com

Poprad, Slovakia

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi David,

is it possible that there was a break during an update since you first released this? the component does not give me all the edge-pathes in EF-output. the preview works fine though..

or am i doing something wrong here?

thanks a lot..!

Attachments:

Yeah it's a bug. Probably been there for a long time.

It'll be fixed in the next release.

--

David Rutten

david@mcneel.com

Hi David, in your previous there are face numbers. Can you please turn them back on?

Great - this will work in the mean time and I'm looking forward to the Topology Component. Cheers!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service