If i have two different shapes and want to extrude a geometry between them is that possible? If not i plan to find the two closest points on flattened plane then start to walk the vertices of one of the shapes to the closest of the other shape. Any ideas on how to do it using current code/lib?
ExtrudeGeometry or any other library function can’t do this. TBH, I can’t even imagine how this would look like. Can you provide a picture of the result or the process?
Maybe Plane.projectPoint() might help here.
My top and bottom shape could have any number of vertices though. reasonable amounts(<10) but an unknown amount. Was thinking of:
- order both points
- find random point on bottom or top and then finding closest to corresponding bottom or top when flattened
- march around the top and bottom creating vertices and triangles
Seems like maybe some type of radial Delaney algorithm might work where my points are cast onto sphere from the center to the two shapes?
another possible pic to help:
If you find a solution, it would be great if you share a live demo in this thread