Grasshopper

algorithmic modeling for Rhino

I have a set of meshes - 42 branches with one mesh in each branch

I have a set of lines - 42 branches with either 30 or 36 lines in each branch

I want to perform a LineMeshIntersect and get a data set with 42 branches each containing the face indices of the intersection points so I can delete those mesh faces.

The LineMeshIntersect is giving me 1440 branches with one intersect face index in each branch.

Why don't I get 42 branches of n intersections? How can I? (I've randomly tried flattening, grafting and simplifying!)

Views: 376

Replies to This Discussion

Randomly trying flattening, grafting and simplifying is normally a great way to solve a problem, but in this case it requires something a bit more intricate.

Since the intersection between a line and a mesh may result in any number of intersection events, the MCX component outputs a list of intersection events for every curve. This basically appends a layer of detail to the data-tree, and it's this layer (and this layer alone) that you need to flatten. You can use [Shift Path] or the [Path Mapper]. I usually prefer to use the Path Mapper. The mapping you need is:

{A;B} -> {A}

you may also want to consider to feed your newly created lists of face indices through a [Create Set] component to remove all duplicate indices.

--

David Rutten

david@mcneel.com

Thanks David,

I took the same "infinite monkeys" approach to working out path mapper (the old path mapper) and managed to get something to work!

I've been working on a Rhino4 exoskeleton and have come up with a starting point that is slow, regularly causes my pitiful laptop to run out of memory but does actually work!

See attached InfiniteMonkeySkeleton!

Another data challenge I have faced a few times now is in the way I am creating the straight section meshes between nodes... the list item method I have used is clumsy... is there a way to do this for polygons with any number of sides???

Attachments:

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