Version 0.60.0

intersect

Checks whether two solids intersect.

Signatures

  •   intersect( solid a, solid b )

Details

The function performs a fast check wether two solids intersect.

A similar functionality can be achieved with the intersection operator and the empty() method of solids: !( a & b ).empty(). The advantage of the intersect() function is, that it performs the check faster.

Example

 solid a = box()
 solid b = sphere()

 echo( intersect( a, b ) )
 

Return value

A boolean value of true if the two solids intersect or false otherwise.

Parameters

a

The first solid that gets checked.

b

The second solid that gets checked.

🗙

Search results for