Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sel=Gui.Selection.getSelection()
- FreeCAD.ActiveDocument.addObject("Part::Feature",('new')+sel[0].Name)
- __shape__ = Part.Shape()
- __shape__.makeShapeFromMesh(sel[0].Mesh.Topology,0.1)
- __shape__= Part.Solid(__shape__)
- FreeCAD.ActiveDocument.getObject(('new')+sel[0].Name).Shape=__shape__
- FreeCAD.ActiveDocument.getObject(('new')+sel[0].Name).purgeTouched()
- del __shape__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement