How can I fill the interior of a spline loop please?

Hi there,

Without plugins (I can’t find any anyway) how should or could I fill the interior of a closed loop spline with a single triangulated polygon please?

As an example, in my game I spawn a spline in mid air as point A, then I fly around and create several more points to create a shape and then I tell my code to close the loop when I press right click to confirm.

The spline creation and mesh-border generation works fine but I can’t seem to figure out how to fill the space with a polygon that uses each of the spline points as a vertex in world space (or local relative to the spline BP that I spawn).

Anyone have any ideas please? Has anyone tried this before?

Might be worth noting that maybe it’s better to just fill the area with colour on the UI like a reprojected mask using the spline as reference for the shape of the mask.

essentially it’s kind of like how the navmesh highlights its filled interior with green.

I figured it out, here’s the BP for it. Make sure you have Geometry script plugin enabled so you have access to the functions: