Geometric operations for geometry objects.
| def intersect |
( |
|
line, |
|
|
|
polygon, |
|
|
|
keepPointOrder = False, |
|
|
|
ignorePolygonHeights = False |
|
) |
| |
|
static |
Intersects a polyline with a polygon object (clipping)
The intersection process is done in 2D. The heights of new points will be computed from the height information of the corresponding intersecting segments. In case both segments have height information available, the height at the new point will be averaged. This behavior can be changed by enabling or disabling the ignorePolygonHeights flag. If the flag is disabled (=default behavior) height information of polygon vertices will be ignored for height computation of new points. Hence, only the polyline height values will play a roll.
- Parameters
-
| [in] | line | polyline object to be clipped (object stays unchanged) |
| [in] | polygon | polygon object use for clipping |
| [in] | keepPointOrder | Flag if orientation of the resulting line should be preserved (e.g. important for profiles). If the orientation is irrelevant disable the flag to improve processing speed. |
| [in] | ignorePolygonHeights | enabling or disabling heights of polygon vertices for compute new points (see details) |
- Returns
- clipped polyline object
Referenced by GeometricOperations.intersect().
| def intersect |
( |
|
polygon, |
|
|
|
line, |
|
|
|
keepPointOrder = False, |
|
|
|
ignorePolygonHeights = False |
|
) |
| |
Intersects a polyline with a polygon object (clipping)
The intersection process is done in 2D. The heights of new points will be computed from the height information of the corresponding intersecting segments. In case both segments have height information available, the height at the new point will be averaged. This behavior can be changed by enabling or disabling the ignorePolygonHeights flag. If the flag is disabled (=default behavior) height information of polygon vertices will be ignored for height computation of new points. Hence, only the polyline height values will play a roll.
- Parameters
-
| [in] | line | polyline object to be clipped (object stays unchanged) |
| [in] | polygon | polygon object use for clipping |
| [in] | keepPointOrder | Flag if orientation of the resulting line should be preserved (e.g. important for profiles). If the orientation is irrelevant disable the flag to improve processing speed. |
| [in] | ignorePolygonHeights | enabling or disabling heights of polygon vertices for compute new points (see details) |
- Returns
- clipped polyline object
References GeometricOperations.intersect().