Grasshopper

algorithmic modeling for Rhino

Hi, 

I'm was wondering if it's possible to use grasshopper to calculate if meshes faces are touching and then select those faces.  

I've started out by exploding the mesh into it's component faces and am looking for some way to test if they share the same space but can't find any commands or techniques.  Is there some way to do that?  

Views: 1253

Replies to This Discussion

check out the collision components. There are two of them. 

This doesn't seem to work if the meshes are just right up against each other.  They have to actually enter each other.  Any way you can think of if they just touch?

Could always scale them by a minuscule amount I guess and then do the calculation, but it would be nice if there was a clean way.

get the edges and look for lines laying on top of eachother

Here there is a solution for this problem. The idea is to explode the faces and get the centers, then you can compare with the "(in)equality" command the position of the center of each face, and if they match you cull them. Once it is done it seems easy and works just fine.
The only posible problem is that I take only opposite faces for the comparison, to make it faster, and sometimes the order of the faces doesn't match with the example I propose. Then just organize again the faces and problem solved.

Attachments:

FYI.  Yes, I know what to do about it, but I'm just saying.

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