geometry_manage
Perform 2D polygon boolean operations, offsetting, triangulation, convex hulls, and generate 3D meshes to build or modify Godot scene geometry.
Instructions
Constructive 2D Solid Geometry and Procedural 3D Mesh Generation.
Ops:
polygon_boolean(operation="merge", poly_a=[...], poly_b=[...]) Perform 2D constructive solid polygon operations (merge, clip, intersect, exclude).
polygon_offset(polygon=[...], delta=5.0, join_type="square") Deflate or inflate a 2D polygon via Geometry2D.offset_polygon.
triangulate(polygon=[...]) Triangulate a 2D polygon into index arrays via Geometry2D.triangulate_polygon.
convex_hull(points=[...]) Compute the 2D convex hull wrapping an arbitrary point set.
scaffold_polygon_2d(parent_path="", points=[...], polygon_name="CustomPolygon", is_collision=False, color=[1.0, 1.0, 1.0, 1.0]) Instantiate and attach a Polygon2D or CollisionPolygon2D to the active scene.
generate_mesh(mesh_type="cube", size=[2.0, 2.0, 2.0], dest_path="", parent_path="") Generate a procedural 3D mesh via SurfaceTool (cube, plane, pyramid) and attach to scene or save.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||