hope it will do the job (maybe its not the cleanest way, but it works for me sometimes. Depending on the ending of the lists you should wrap or not the shift component.
Good luck…
Added by Pep Tornabell at 2:05am on November 19, 2009
ase to give the same result using a graph mapper with a parabola as in the attached file
Unfortunately it never gave the same result ..... is it a mistake in the book ?!…
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".…
moved by random amounts in a random direction. The animated slider was the amount of deviation from the original points. And yes, I used culled lists.B.t.w. did you find my workaround for your loft? Did your notebook explode? ;)…