IntersectBreps

Intersects a brep object with another  brep object. Note, unlike the SurfaceSurfaceIntersection function this function works on trimmed surfaces.

Syntax

rhinoscriptsyntax.IntersectBreps (brep1, brep2, tolerance=None)

rhinoscript.surface.IntersectBreps (brep1, brep2, tolerance=None)

Parameters

brep1

Required.  String or Guid.  The first brep object's identifier.

brep2

Required.  String or Guid.  The second  brep object's identifier.

tolerance

Optional.  Number.  The distance tolerance at segment midpoints.  If omitted, the current absolute tolerance is used..

Returns

List

A list of Guids identifying the newly created intersection curve and point objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

brep1 = rs.GetObject("Select the first brep", rs.filter.surface | rs.filter.polysurface)

if brep1:

    brep2 = rs.GetObject("Select the second", rs.filter.surface | rs.filter.polysurface)

    if brep2: rs.IntersectBreps( brep1, brep2)

Also See

SurfaceSurfaceIntersection