-- CG_OptimalAlphaShape with nb_components=2, allow_holes=false -- Two rectangular-frame clusters with integer coordinates. -- Integer-only input avoids floating-point borderline cases and produces -- identical results regardless of compiler or CGAL minor version. SELECT 'CG_Optimalalphashape_2components', ST_AsText(CG_OptimalAlphaShape('MULTIPOINT( (0 0),(1 0),(2 0),(3 0),(4 0),(5 0), (0 1),(5 1), (0 2),(5 2), (0 3),(1 3),(2 3),(3 3),(4 3),(5 3), (0 4),(5 4), (0 5),(5 5), (0 6),(1 6),(2 6),(3 6),(4 6),(5 6), (30 0),(31 0),(32 0),(33 0),(34 0),(35 0), (30 1),(35 1), (30 2),(35 2), (30 3),(31 3),(32 3),(33 3),(34 3),(35 3), (30 4),(35 4), (30 5),(35 5), (30 6),(31 6),(32 6),(33 6),(34 6),(35 6) )', allow_holes => false, nb_components => 2)); SELECT 'CG_OptimalAlphaShape_hole_2components', ST_AsText(CG_OptimalAlphaShape('MULTIPOINT((0 0),(0 1),(0 2),(0 3),(0 4),(0 5),(0 6),(0 7),(0 8),(0 9),(1 10),(2 10),(3 10),(4 10),(4.5 9.5),(5 9),(5.5 8.5),(6 8),(6 7),(6 6),(5.5 5.5),(5 5),(4 5),(3 5),(2 5),(1 5),(1 4),(2 4),(3 4),(4 4),(4.5 3.5),(5 3),(6 2),(6 1),(5.5 0.5),(5 0),(4 0),(3 0),(2 0),(1 0),(0.5 0),(0.5 1),(0.5 2),(0.5 3),(0.5 4),(0.5 5),(0.5 6),(0.5 7),(0.5 8),(0.5 9),(0.5 10),(1 9.5),(2 9.5),(3 9.5),(4 9.5),(4.5 9),(5 8.5),(5.5 8),(5.5 7),(5.5 6),(5.5 6.5),(5 5.5),(4 5.5),(3 5.5),(2 5.5),(1 5.5),(1.5 4.5),(2.5 4.5),(3.5 4.5),(4 4.5),(4.5 4),(5 3.5),(5.5 3),(5.5 2),(5.5 1),(5 0.5),(4 0.5),(3 0.5),(2 0.5),(1 0.5),(12 0),(12 1),(12 2),(12 3),(12 4),(12 5),(12 6),(12 7),(12 8),(12 9),(12 10),(13 10),(14 10),(15 10),(16 10),(16.5 9.5),(17 9),(17.5 8.5),(18 8),(18 7),(18 6),(17.5 5.5),(17 5),(16 5),(15 5),(14 5),(13 5),(12.5 0),(12.5 1),(12.5 2),(12.5 3),(12.5 4),(12.5 5),(12.5 6),(12.5 7),(12.5 8),(12.5 9),(12.5 10),(13 9.5),(14 9.5),(15 9.5),(16 9.5),(16.5 9),(17 8.5),(17.5 8),(17.5 7),(17.5 6),(17.5 6.5),(17 5.5),(16 5.5),(15 5.5),(14 5.5),(13 5.5),(13 1),(13 2),(13 3),(13 4),(17.5 7.4),(18 7.3),(5.1 2.5),(5.8 2.5),(0.03 9.82),(0.23 10))', allow_holes => true, nb_components => 2));