Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

region-difference

Generic function

Summary

Returns a region that contains all points in the region region1 that are not in the region region2 (possibly plus additional boundary points to make the result closed).

Signature

region-difference region1 region2 => region

Arguments

region1
An instance of type <region>.

region2
An instance of type <region>.

Values

region
An instance of type <region>.

Library

duim-geometry

Module

duim-geometry

Description

Returns a region that contains all points in the region region1 that are not in the region region2 (possibly plus additional boundary points to make the result closed).

The result of region-difference has the same dimensionality as region1, or is $nowhere. For example, the difference of an area and a path produces the same area; the difference of a path and an area produces the path clipped to stay outside of the area.

Note: region-difference may return either a simple region or a region set.


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index