Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/r/h/rhinopython-HEAD/scripts/rhinoscript/surface.py   rhinopython(Download)
    breps1 = [rhutil.coercebrep(id, True) for id in input1]
    tolerance = scriptcontext.doc.ModelAbsoluteTolerance
    newbreps = Rhino.Geometry.Brep.CreateBooleanDifference(breps0, breps1, tolerance)
    if newbreps is None: return scriptcontext.errorhandler()
 

src/h/o/Honeybee-HEAD/src/Honeybee_IntersectMasses.py   Honeybee(Download)
    for bldgNum, building in buildingDict.items():
        for otherBldg in  bldgMassesBefore[:bldgNum]:
            intersectedBuilding = rc.Geometry.Brep.CreateBooleanDifference(building, otherBldg, sc.doc.ModelAbsoluteTolerance)
            if intersectedBuilding:
                building = intersectedBuilding[0]
                buildingDict[bldgNum] = building
                bldgMassesBefore[bldgNum] = building
 
        for otherBldg in  bldgMassesBefore[bldgNum+1:]:
            intersectedBuilding = rc.Geometry.Brep.CreateBooleanDifference(building, otherBldg, sc.doc.ModelAbsoluteTolerance)