I will see what I can do, but when I encounter a linear extrude in the CSG, I don't know if what it finds on the object stack i.e the thing to be extruded is a solid or a face without doing a lot of checkingDeepSOIC wrote:Try setting "Solid" property of Extrude to false. You seem to be extruding a face, so a solid will result anyway.
I made the behavior of "Solid" strict on purpose, but I think it might be worth changing it back to ignore "Solid" if extruding faces...
A lot of the time its wires, but could be a solid it depends on what somebody has coded. The parser finds the linear_extrude statement and what it is to extrude is on an object stack. The object could be a solid or a wire, it depends on what the user codes.DeepSOIC wrote:So, it looks like openscad's linear_extrude always makes solids from wires, right? I'm not familiar with openscad.
I guess you meant "face", not "solid", since Part Extrude can't extrude solids...keithsloan52 wrote:solid or a wire
Code: Select all
mylinear = doc.addObject("Part::Extrusion","LinearExtrude") mylinear.Base = newobj #obj mylinear.Dir = (0,0,h) mylinear.Placement=FreeCAD.Placement() # V17 change to False mylinear.Solid = True mylinear.Solid = False