all you need is this:
import rhinoscriptsyntax as rsa = rs.BooleanDifference(b1, b2, False)
Where b1 and b2 are your input breps. But I do not know why it is not working correctly.For some strange reason the RhinoCommon version works with no problem (check the attached files):
import Rhinoimport utility as rhutil# converting brep guids into Brep objectsbrepL1 = []brepL2 = []for brep1 in b1: brep1_object = rhutil.coercebrep(brep1, True) brepL1.append(brep1_object)for brep2 in b2: breps2_object = rhutil.coercebrep(brep2, True) brepL2.append(breps2_object)tolerance = 0.1a = Rhino.Geometry.Brep.CreateBooleanDifference(brepL1, brepL2, tolerance)
Before opening attached .gh and .3dm files, copy the "utility.py" file into your folder:"C:\Documents and Settings\<user name>\Application Data\McNeel\Rhinoceros\5.0\Plug-ins\IronPython\settings\lib" - if you are using WinXP
"C:\Users\<user name>\AppData\Rhinoceros\5.0\Plug-ins\IronPython\settings\lib" or if you are using Win7
I think <user name> might also be replaced with just: "Administrator".…
blinds be (B1,B2..B5). Then the geometry for the five iterations will be ((A+B1), (A+B2)...(A+B5)).
And assume that you are measuring illuminance at four points inside the room (x1,x2,x3,x4) and one point outside the room(y1).
The way Daysim works ( and should work as per the best of my understanding) is that for each setting of the blind (ie. B1,B2,..B5), a separate value of (x1,x2,x3,x4) gets calculated through the Daylight Coefficient Method. So let's say you have illuminance thresholds of (p,q,r,s,t) corresponding to (B1,B2,..B5). What the shade-control algorithm does is that it compares the illuminance at y1 with your threshold of (p,q,..t) and then chooses a value of (x1,x,2,x3,x4) on basis of that. So, when we repeat this process for (365x24=)8760 hours , we end up with a value of a shade setting for each hour which was set on basis of your threshold illuminance values.
I would have gladly answered your question on HB itself, however, I usually work with Daysim directly through commandline.
(BTW, if you are interested in reading more about Daysim google Christoph Reinhart's dissertation on the subject, along with some papers by Zack Rogers).…