Skip to content

Commit c777d4f

Browse files
committed
fix: removing unnecessary chamfer under stacking lip for shelled bins
1 parent 48eb548 commit c777d4f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

commands/commandCreateBin/entry.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -967,18 +967,6 @@ def generateBin(args: adsk.core.CommandEventArgs):
967967
else:
968968
shellUtils.simpleShell([topFace], binBodyInput.wallThickness, gridfinityBinComponent)
969969

970-
chamferEdge = [edge for edge in binBody.edges if geometryUtils.isHorizontal(edge)
971-
and math.isclose(edge.boundingBox.minPoint.z, topFaceMinPoint.z, abs_tol=const.DEFAULT_FILTER_TOLERANCE)
972-
and math.isclose(edge.boundingBox.minPoint.x, topFaceMinPoint.x, abs_tol=const.DEFAULT_FILTER_TOLERANCE)][0]
973-
if binBodyInput.hasLip and const.BIN_LIP_WALL_THICKNESS - binBodyInput.wallThickness > 0:
974-
chamferFeatures: adsk.fusion.ChamferFeatures = features.chamferFeatures
975-
chamferInput = chamferFeatures.createInput2()
976-
chamfer_edges = adsk.core.ObjectCollection.create()
977-
chamfer_edges.add(chamferEdge)
978-
chamferInput.chamferEdgeSets.addEqualDistanceChamferEdgeSet(chamfer_edges,
979-
adsk.core.ValueInput.createByReal(const.BIN_LIP_WALL_THICKNESS - binBodyInput.wallThickness),
980-
True)
981-
chamferFeatures.add(chamferInput)
982970
except:
983971
args.executeFailed = True
984972
args.executeFailedMessage = getErrorMessage()

0 commit comments

Comments
 (0)