Hi Rasmus,
This looks like Tapeworm to me, but you might be interested in testing my Phasma definition.
I'll releasse v0.9.9b with mesh relaxation tomorow I hope.
Fred.
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".…