Class: Intersections

Intersections~Intersections(object, intersectMeshList, settingsopt)

new Intersections(object, intersectMeshList, settingsopt)

Creates an intersection lines for graphic objects.
Parameters:
Name Type Attributes Description
object THREE.Mesh graphic object for which the intersection lines with other objects will be obtained.
intersectMeshList THREE.Mesh | array THREE.Mesh - Mech, which intersects with object.
array - array of intersect graphic objects. Every item is:
	THREE.Mesh - Mech, which intersects with object.
	or object - object keys is:
		mesh - Mech, which intersects with object.
		color - intersection lines color.
			Examples: 0xffffff, 'yellow'. Default is white.
settings object <optional>
the following settings are available:
Properties
Name Type Attributes Description
scene THREE.Scene <optional>
THREE.Scene.
renderer THREE.WebGLRenderer <optional>
THREE.WebGLRenderer.
onReady function <optional>
Callback function that called if intersection lines is ready and that take as input an array of all intersect lines.
function( intersectionLines )
	intersectionLines - array of all intersect lines.
	Every item of array is object. Object keys is:
		mesh - Mech, which intersects with object.
		points - array of points of intersection line.
		color - intersection line color.
			Default is white.
Source: