Grasshopper

algorithmic modeling for Rhino

Hi there


I'm using Karamba for performing calculations on a shell mesh generated by the 'Mesh Breps'-component.

I would like to distinguish specific elements visually in the mesh; e.g. in the screen shot below I have identified the element undergoing the largest absolute moment as element 109.

My problem is, that I can't reference element 109 anywhere, as the data structure of the Elem-output seems rather dummy-like.


The element tagging of the 'ModelView'-component can't help either, as a mesh currently counts as one single element.
Any suggestions?

Cheers

Views: 623

Replies to This Discussion

Hi,

the results of the S-Force component come in a tree structure: each branch corresponds to a shell patch, the order of results within each branch corresponds to the order of the faces of the shell mesh. The shell meshes can be retrieved from the 'DisassembleModel'-component. You could use this to map the results to the shell faces.

Best,

Clemens

Sorry Clemens, but I still don't know how to manoeuvre the output data.

How can I recover and split the triangles/faces into one separate list with one active item per triangle/face?


Best,
Daniel

Attachments:

Hi Daniel,

Two options for this:

1 - explode the mesh and then you can sort the mesh faces by moment etc. 

2 - explode the mesh before you feed it in so you have 50 shells instead of one shell with 50 faces. 

Attachments:

I wasn't aware of the explode component.
Thank you!

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