Align vertices to a grid

Hi,

I use Rhino to prepare 2d dwgs from Autocad for import into an external FEA analysis software package for heat flow modelling. The majority of my time is spent cleaning up the geometry to make it suitable for the FEA package. Specifically, small voids / gaps in the geometry need to be removed to prevent the FEA calculations falling over.

The image below is a detail from an aluminium window frame to thermal break. The highlighted circles illustrate positions where I need to remove small details and ensure that one ‘object’ in the drawing is in full contact with another.

Is there a possible automated solution to this? such as:

  • Import drawing
  • convert all curves to polylines
  • clean up by aligning all vertices onto a defined grid, say 0.25mm

I’m assuming that this would require either a grasshopper solution or scripted approach but would appreciate any thoughts. I can then go looking for someone to pay to develop this for me…

Many thanks in advance

Nick

Hi Nick- what should that look like when it’s cleaned up?

-Pascal

Hi Pascal,

Before and cleaned up examples: (Note I havent cleaned up all the elements in the second image just where the hatched element meets the other).

Original:

After clean up:

and overview of the type of framing element I need to clean up - hence why manually is very slow

Hi Pascal, Did you have any thoughts on this?

Hi Nick - Only that is is probably possible to make something work, probably, but seems like a project…
If you can send me a file with before and desired after, I can cogitate some more - could be a GH thing is possible, I don’t know.

-Pascal