Vielen lieben Dank Werner. Hab ein paar krumme Flächen gewählt und das Makro gestartet, die Silhouette wird an diesen Flächen erzeugt und sieht gut aus. Shape wird jetzt auch für Loft und Sweep akzeptiert. Das ist sehr hilfreich. Ob das noch mehr Formkonstrukteure anlockt?wmayer wrote: ↑Tue Feb 26, 2019 2:27 pmCode: Select all
from pivy import coin rot=Gui.ActiveDocument.ActiveView.getCameraOrientation() vdir=App.Vector(0,0,-1) vdir=rot.multVec(vdir) udir=App.Vector(0,1,0) udir=rot.multVec(udir) pos=Gui.ActiveDocument.ActiveView.getCameraNode().position.getValue().getValue() pos=App.Vector(*pos) # Select sub-elements of one model or the whole model sel=Gui.Selection.getSelectionEx()[0] if sel.HasSubObjects: shapes=sel.SubObjects else: shapes=[sel.Object.Shape] for i in shapes: reflect=i.reflectLines(ViewDir=vdir, ViewPos=pos, UpDir=udir) if not reflect.isNull(): Part.show(reflect)
Viele Grüße
Wilfried