I have a mesh that represents landscape. I need to work through this mesh from the bottom left to the top right in 50m squares, detecting whether this 50m square intersects with the mesh (z is ignored - only interested in x & y). Currently I do this by created points for the 50m square and ProjectToMesh - if any points hit the mesh - then I know that there is mesh in the area that I am interested in.

There must be a neater way to do this? Can I project the mesh to CPlane in C# (If so, how?) . If I have the mesh in the CPlane - I should be able to create 4 lines for the edges of the 50m square and check intersection with:

Rhino.Geometry.Intersect.Intersection.MeshLine shouldnâ€™t I?

Any thoughts appreciated!?

ETA: Just found this about transforming to construction plane - which might help project the mesh to cplaneâ€¦ off to try it now