|
|
|
|
<Polygon2D variable>.ConvexHull (Function) In french: <Variable Polygone2D>.EnveloppeConvexe Calculates the convex hull of the specified 2D polygon. The convex hull is the smallest convex geometry that encloses the entire specified geometry.
The convex hull of an object or group of geometric objects is the smallest convex set that contains the object(s). In a plane, a convex hull can be compared to the region defined by a rubber band wrapped around the geometries. Generally, convex hulls are polygons.
o2DPolygon_1 is Polygon2D
o2DPolygon_1.Outline.AddPoint(-1.00, 3.00)
o2DPolygon_1.Outline.AddPoint(0.00, 4.00)
o2DPolygon_1.Outline.AddPoint(2.00, 3.00)
o2DPolygon_1.Outline.AddPoint(2.00, 2.00)
o2DPolygon_1.Outline.AddPoint(3.00, 3.00)
o2DPolygon_1.Outline.AddPoint(4.00, 2.00)
o2DPolygon_1.Outline.AddPoint(2.00, 1.00)
o2DPolygon_1.Outline.AddPoint(0.00, 1.00)
o2DPolygon_1.Outline.AddPoint(1.00, 0.00)
o2DPolygon_1.Outline.AddPoint(2.00, 0.00)
o2DPolygon_1.Outline.AddPoint(2.00, -3.00)
o2DPolygon_1.Outline.AddPoint(-2.00, -3.00)
o2DPolygon_1.Outline.AddPoint(-2.00, -2.00)
o2DPolygon_1.Outline.AddPoint(-1.00, -2.00)
o2DPolygon_1.Outline.AddPoint(0.00, -1.00)
o2DPolygon_1.Outline.AddPoint(0.00, 0.00)
o2DPolygon_1.Outline.AddPoint(-1.00, 0.00)
o2DPolygon_1.Outline.AddPoint(-2.00, -1.00)
o2DPolygon_1.Outline.AddPoint(-3.00, 0.00)
o2DPolygon_1.Outline.AddPoint(-1.00, 3.00)
o2DPolygon_1 = o2DPolygon_1.Correct()
ConvexHull is Polygon2D = o2DPolygon_1.ConvexHull()
Syntax
<Result> = <Geometry>.ConvexHull()
<Result>: Variable containing spatial data Variable corresponding to convex geometry. This geometry can correspond to one of the following variable types: <Geometry>: Polygon2D variable Name of the Polygon2D variable to be used. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|