Intersects a brep object with another brep object. Note, unlike the SurfaceSurfaceIntersection function this function works on trimmed surfaces.
rhinoscriptsyntax.IntersectBreps (brep1, brep2, tolerance=None)
rhinoscript.surface.IntersectBreps (brep1, brep2, tolerance=None)
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.. |
List |
A list of Guids identifying the newly created intersection curve and point objects if successful. |
None |
If not successful, or on error. |
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)