MeshBooleanIntersection

Performs a Boolean intersection operation on two sets of input meshes. For more details, see the MeshBooleanIntersection command in the Rhino help file.

Syntax

rhinoscriptsyntax.MeshBooleanIntersection(input0, input1, delete_input=True)

rhinoscript.mesh.MeshBooleanIntersection(input0, input1, delete_input=True)

Parameters

input0

Required.  List.  The identifiers of the meshes.

input1

Required.  List.  The identifiers of the meshes.

delete_input

Optional.  Boolean. Delete all input objects. The default is to delete all input objects (True).

Returns

List

A list containing the identifiers of the newly created objects, if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

input0 = rs.GetObjects("Select first set of meshes", rs.filter.mesh)

if input0:

    input1 = rs.GetObjects("Select second set of meshes", rs.filter.mesh)

    if input1: rs.MeshBooleanIntersection(input0, input1)

Also See

MeshBooleanDifference

MeshBooleanSplit

MeshBooleanUnion