ddg.geometry.intersection module

ddg.geometry.intersection.intersect(*objects, resolve=True)[source]

Intersection function

Parameters:
*objectsAny

Objects to intersect

resolvebool, default=False

Whether or not the intersection should be resolved immediately

Returns:
ddg.geometry.intersection.Intersection or resolved Intersection

Instance of Intersection containing obj1 and obj2 or the intersection of the class obtained by resolving the intersection

See also

join
ddg.geometry.intersection.meet(*objects, resolve=True)[source]

Alias for intersect.

See also

intersect
ddg.geometry.intersection.join(*objects, resolve=True)[source]

Join function

Parameters:
*objectsAny

Objects to join

resolvebool, default=False

Whether or not the join should be resolved immediately

Returns:
ddg.geometry.intersection.Join or resolved Intersection

Instance of Join containing obj1 and obj2 or the join of the class obtained by resolving the join

See also

intersect
class ddg.geometry.intersection.Intersection(*obj)[source]

Bases: Iterable, NonExact

Base class for Intersections.

Parameters:
*objobject

Intersecting objects

See also

Join
Attributes:
objectslist

List of intersecting objects.

typesset

Set of types of intersecting objects.

Methods

resolve

Resolve the intersection.

property types
property atol
property rtol
resolve()[source]
atol_default = 1e-07

Absolute tolerance default.

Used for all purposes if atol is None.

classmethod nonexact_function(f)

Decorator to use global tolerance defaults in functions.

If None is given to the wrapped function as the value for atol or rtol, it will be replaced by the global default.

Parameters:
fcallable

Function that takes atol and rtol arguments.

Returns:
callable
classmethod reset_tol_defaults()
rtol_default = 0.0

Relative tolerance default.

Used for all purposes if rtol is None.

class ddg.geometry.intersection.Join(*obj)[source]

Bases: Iterable

Base class for joins.

Parameters:
*objobject

Objects to join

See also

Intersection
Attributes:
objectslist

List of joined objects.

Methods

resolve

Resolve the join.

resolve()[source]