r/devblogs • • 15d ago

tech & code How a CAD workflow turned into my first Unity asset

Hello! I'm Dylan. I work on a bunch of cool digital twin projects, and Mesh Engine came out of the CAD models I was bringing into Unity. A model could come in as thousands of separate parts. I started grouping the existing geometry by location so I could work on it a section at a time.

One decision I had to make was what to do with triangles along a cell boundary. I kept them whole and assigned each one to the cell containing its centroid. That meant the geometry could reach past the grid box, so I gave the preview both Grid Bounds and Content Bounds.

This is from the plant demo I put together. I pulled one of the generated partitions clear so you can see what comes with the tower. The two little platforms and a bit of pipework slide out with it, then the whole lot slots back into place.

7 Upvotes

0 comments sorted by