Morph extruded shape geometry end to another shape

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?

1 Like

No, 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:

  1. order both points
  2. find random point on bottom or top and then finding closest to corresponding bottom or top when flattened
  3. 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?

1 Like

another possible pic to help:

1 Like

If you find a solution, it would be great if you share a live demo in this thread :blush: