• Godot Help
  • Create 3D polygon plane and fill surface

In 3D move I want to create a โ€œflatโ€ polygon plane shape and assign a color to it.

So just as an example I have built below shape with a Path and now want to fill the inner part of the polygon with a color:

What is the best way to achieve this? Needs to be done via script because I am loading the shape data from a CSV file.

DaveTheCoder I want to put the object on the plane surface to display a water body like a lake. But looks like I cannot easily add a Polygon2D to a 3D scene.

What about a MeshInstance3D? It wouldn't matter if it has thickness, if it's a body of water and only the top is visible.

    DaveTheCoder quoting myself here ๐Ÿ˜‰

    Needs to be done via script because I am loading the shape data from a CSV file

    • xyz replied to this.

      max_godot A bit hacky but... put polygon points into CSGPolygon3D and extract mesh array(s) from it. Haven't tested it but looks like it should work.