DK11 for Delphi | GisTopology.TGIS_Topology.Intersection | Overloads | Constructors | Methods | Properties | Events
Compute a new shape as an intersection of two shapes provided.
// Delphi public function Intersection( const _shpA : TGIS_Shape; const _shpB : TGIS_Shape; const _fixshape : Boolean ) : TGIS_Shape; overload;
// C++ Builder public: TGIS_Shape* Intersection( TGIS_Shape* const _shpA, TGIS_Shape* const _shpB, const bool _fixshape ) /* overload */;
Name | Type | Description |
---|---|---|
_shpA | TGIS_Shape | first shape |
_shpB | TGIS_Shape | second shape |
_fixshape | Boolean | if True, then checks and eventually fixes the input shapes for common topological problems, like self-crossings, overlapped parts etc. |
Type | Description |
---|---|
TGIS_Shape | returns new shape as intersection of two shapes |
See TGIS_Shape.Combine for example.
When using with many shapes e.g. in loop, check input shapes extents before to improve performance.
// pseudocode: if GisIsCommonExtent(_shpA, _shpB) out = TGIS_Topology.Intersection(_shpA, _shpB) ;