When a polyhedron is created from an array of points, it is interpreted as a convex hull
// AngelCAD code.
shape@ main_shape(as_args@ args)
{
array<pos3d@> hull_points = { {-1,-1,0}, {-1,1,0}, {1,1,0}, {1,-1,0}, {1/2,1,2} };
return polyhedron(hull_points);
}
void main()
{
shape@ obj = main_shape(GetArgs());
obj.write_xcsg(GetInputFullPath(),secant_tolerance:-1.0);
}