FreeCAD_SheetMetal icon indicating copy to clipboard operation
FreeCAD_SheetMetal copied to clipboard

BaseShape doesn't fill gaps

Open rmu75 opened this issue 1 year ago • 9 comments

It seems BaseShape is missing some properties from SmBendWall like "Auto Miter Minimum Gap" or "Auto Miter maximum Extend Distance" which leads to somewhat puzzling behaviour. Is there some rationale or would a patch be welcome that fixes that?

rmu75 avatar Oct 11 '24 15:10 rmu75

Please add your full About info so we know what version of FreeCAD and SheetMetal you're using

luzpaz avatar Oct 11 '24 20:10 luzpaz

OS: KDE neon 6.1 (KDE/plasma) Word size of FreeCAD: 64-bit Version: 1.0.0RC2.38895 (Git) Build type: Unknown Branch: releases/FreeCAD-1-0 Hash: 6c64197cdb9ec85a81b854f6f06c33e78e49d936 Python 3.10.12, Qt 5.15.14, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3 Locale: German/Austria (de_AT) Stylesheet/Theme/QtStyle: OpenLight.qss/OpenLight/Fusion Installed mods:

  • btl 0.9.9
  • kicadStepUpMod 11.3.9
  • dodo 1.0.1
  • QuickMeasure 2022.10.28
  • OpticsWorkbench 1.0.24
  • OpenTheme 2024.9.1
  • Assembly3 0.12.2
  • frame 0.1.1
  • sheetmetal 0.5.2
  • FeedsAndSpeeds 0.5.0
  • offline-documentation 1.0.0-alpha
  • InventorLoader 1.4.0
  • EM 2.1.1

rmu75 avatar Oct 11 '24 20:10 rmu75

@rmu75 , can you attach a file demonstrating the puzzling behaviour?

shaise avatar Oct 21 '24 14:10 shaise

Example demonstrating the issue. Base shape, tub, 2mm thickness, 3mm radius vs. 3.01mm radius.

example.zip

OS: KDE neon 6.2 (KDE/plasma) Word size of FreeCAD: 64-bit Version: 1.0.0RC2.38806 (Git) AppImage Build type: Release Branch: (HEAD detached at 1.0rc2) Hash: 3d63fc6c2f665a8d5e6468845a419bcac80756c7 Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2 Locale: German/Austria (de_AT) Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion Installed mods:

  • sheetmetal 0.5.2
  • WB_Organizer 2024.1.29
  • btl 0.9.9
  • CamScripts

rmu75 avatar Oct 21 '24 18:10 rmu75

image

rmu75 avatar Oct 21 '24 18:10 rmu75

Thanks, I will investigate. This is not an auto miter issue. auto miter is only on hat and box.

shaise avatar Oct 21 '24 20:10 shaise

it's the extend distance property default of 5mm that can't be changed that leads to that.

https://github.com/shaise/FreeCAD_SheetMetal/blob/master/SheetMetalCmd.py#L884

I think the Base object needs a property like https://github.com/shaise/FreeCAD_SheetMetal/blob/master/SheetMetalCmd.py#L1489 and probably related stuff.

rmu75 avatar Oct 21 '24 20:10 rmu75

I see. Thanks. Then for the base object, I will just auto update this value to always work, since either you want it or not. I don't want to over complicate the base shape.

shaise avatar Oct 22 '24 10:10 shaise

Yes that makes sense. I can work on that if you want.

rmu75 avatar Oct 22 '24 11:10 rmu75

With the latest version it should work now.

shaise avatar Oct 22 '24 17:10 shaise

@rmu75 can you reproduce with the fix ?

luzpaz avatar Oct 25 '24 18:10 luzpaz

Thanks -- seems to work.

rmu75 avatar Oct 28 '24 14:10 rmu75