Grasshopper

algorithmic modeling for Rhino

Hi there,

I've been lurking on these forums for a while and have found reading several of the discussions useful for solving some of my geometry problems. I've got a problem that I'm scratching my head over and would appreciate any thoughts.

I have a set of tessellated panels and edges with unique references. In general, panels share edges with other panels such that an edge borders two panels. In terms of a sample data structure to illustrate the point, it might look like this.

{0}

A

B

C

{1}

C

D

E

{2}

E

F

G

{3}

G

H

I

{4}

I

J

K

{5}

K

L

A

Where path represents a panel reference, and item a member reference: (e.g. {0;A} is panel 0, member A. Note the above is basically a 6 triangle umbrella arrangement (hexagon split into 6 triangles by center):

I'm looking to return a tree with:

-all unique list references in the set above,

-containing sub-set references to paths from whence  they came.

In my example, this would be:

{A}

0

5

{B}

0

{C}

0

1

{D}

1

{E}

1

2

{F}

2

{G}

2

3

{H}

3

{I}

3

4

{J}

4

{K}

4

5

{L}

5

Member%20Panel%20References.gh

Views: 300

Replies to This Discussion

You sound like a database man!

I'm not sure if what you want to do can be done simply with GH tree components; it would probably need some sort of code.

I think the Sandbox tools do something similar to what you are trying to do... basically you are trying to get the topology of a line / surface network. Sandbox has a tool called Brep Topology Edge. This can output all face indices belonging to an edge and all edge indices belonging to a face.

Is that what you are after?

Attachments:

Literally... the exact button... I was looking for! (but didn't think to look as assumed it wouldn't exist.)

Really appreciate the help!

(Yes I do like my databases)

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