User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.union_2_itgis_shape_wordbool

Table of Contents

ITGIS_Shape.Union_2 method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Union_2 | Methods | Properties

Computes the union of this shape and another shape, optionally returning a new object or modifying this shape.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public ITGIS_Shape Union_2(
  ITGIS_Shape _shape,
  WordBool _returnnewobj
);
' VisualBasic
Public Function Union_2(
  ByVal _shape As ITGIS_Shape,
  ByVal _returnnewobj As WordBool
) As ITGIS_Shape
// Oxygene
public
  function Union_2(
    _shape : ITGIS_Shape;
    _returnnewobj : WordBool
  ) : ITGIS_Shape;

Parameters

Name Type Description
_shape ITGIS_Shape Shape to union with.
_returnnewobj WordBool If True, returns a newly created result shape. If False, copies the union result geometry to this shape, or resets this shape if no result is produced, and then returns this instance.

Result

Type Description
ITGIS_Shape The union result as either a new shape or this modified shape, depending on _returnnewobj.

Remarks

PURPOSE: Perform a union operation with control over result ownership and in-place modification behavior.

BEHAVIOR: Computes all geometry belonging to either shape. If _returnnewobj is True, a new result shape is returned. If False, the result geometry is copied to this shape and the temporary result is freed. If the operation produces no result, this shape is reset and then returned.

CONSTRAINTS: When _returnnewobj is False, the original geometry of this shape is overwritten or cleared. Ownership of the return value follows the annotation on the declaration.

2026/09/20 23:45

Page Tools