I have created a surface as a Hyperbolic Paraboloid.
I want to create a grid of hexagonal meshes on it.
I have the grid of centerpoint of the hexagon (by subdividing the Domain on the surface).
Now I need to find the rest of the vertices.
In a planar grid I would do:
Add the centerpoint to the vertex list m.Vertices.Add(centerpoint);. Then
for (int k = 0; k < 6; k++)
double xCoord = centerpoint.X + Math.Cos(Math.PI / 3 * k) * widthOfPanel / 2; double yCoord = centerpoint.Y + Math.Sin(Math.PI / 3 * k) * lengthOfPanel / 2; Point3d vertex = grid.PointOnSurface(xCoord, yCoord);
//grid.PointOnSurface is a combo of ClosestPoint & PointAt
Obviously that doesn’t work on this surface. I have tried with Cosh and Sinh, but that does not seem to be the way, unless I did not use it correctly…
If you could enlighhten me on how to find the hexagon meshes I would very much appriciate it!
Thank you for your help!