@ZmeiGorynych wrote:
Hi,
I appear to have run into a bug in AddRevSurf. Here is how to reproduce: open badRevolveExample.3dm (28.1 KB). Then run the following script, which creates (what should be) the same revolved surface via a macro and via AddRevSrf, and a simple sphere.
Now if you try to eg BooleanSplit the sphere with the surface created via the macro, it works fine. However, if you try the same thing using the surface generated by AddRevSrf, the split fails - the surface appears to have some subtle issue.
Is this a bug or am I missing something?
Thanks a lot,
Egorimport rhinoscriptsyntax as rs revline=rs.ObjectsByName("_revline") # create a revolved surface via AddRevSrf axis=rs.AddLine([0,0,0],[0,0,1]) surf1=rs.AddRevSrf(revline,axis) rs.ObjectLayer(surf1,rs.AddLayer("AddRevSrf")) # create another via a macro rs.Command("SelNone") rs.SelectObject(revline) rs.Command("Revolve 0 Enter Enter Enter SelNone SelLast") rs.UnselectObject(revline) surf2=rs.SelectedObjects() surf2=surf2[0] rs.ObjectLayer(surf2,rs.AddLayer("macro")) sphere=rs.AddSphere([0,0,0],20)
Posts: 5
Participants: 4