Solid.Intersection<T> (T, T, Double) Method

Boolean Intersection between two solids. The method will compute the intersection between the two specified solids (gray and blue in the image below) and return an array with the result (green). The returned array may have more than one element if multiple disjoint intersections are found.

Public Shared Function Intersection(Of  _ 
T As {Solid, New})( _ 
ByVal a As T, _ 
ByVal b As T, _ 
Optional ByVal tol As Double = 0 _ 
) As T()
This language is not supported or no code example is available.
public static T[] Intersection<T>( 
T a
T b
double tol = 0 

where T : Solid, new()
This language is not supported or no code example is available.

Type Parameters

T

Parameters

a
T

First operand

b
T

Second operand

tol
double

Optional tolerance, start with domain size * 1e-6

Return Value

T[]

An array of solids if the operation is successful. If the operation is successful but no intersections are found, an empty array is returned. Otherwise, if due to an error the algorithm fails to compute the intersections, null/Nothing is returned.

.NET Framework

Supported in: 4.8

In this article

Definition