Code: Select all
if extLen > 0 :
# calculate miter length
seamlen = extLen * math.tan(math.radians(miterA))
seamgap1 = gap1 + seamlen
seamgap2 = len - gap2 - seamlen
if seamlen :
seamEdge = thkEdge.copy()
# make second face for lofting
seamFace = smMakeFace(seamEdge, revDir, seamgap1, seamgap2)
seamFace.rotate(revAxisP, revAxisV, bendA)
seamFace.translate(wallFace.normalAt(0,0) * extLen)
wallSolid = Part.makeLoft([wallFace.Wires[0],seamFace.Wires[0]],True)
else:
wallSolid = wallFace.extrude(wallFace.normalAt(0,0) * extLen)
resultSolid = resultSolid.fuse(wallSolid)
miter angle could be a very nice addition...jaisejames wrote: ↑Fri Nov 10, 2017 7:17 amI made some changes to wall creation. In case miter angle, it will create two faces at the bend length & part loft between both instead of extrude.
Code is given as below
...
Code: Select all
wallSolid = Part.makeLoft([wallFace.Wires[0],seamFace.Wires[0]],True)