Ondsel-Development / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
192 stars 8 forks source link

Assembly Limit Issues #121

Closed stevenwalton closed 4 months ago

stevenwalton commented 4 months ago

Is there an existing issue for this?

Problem description

The issues are apparent when making the following trivial parts: a box with a hole and a cylinder (idk, place a hex on top to make it look like a real part)

Screenshot 2024-07-16 at 1 39 08 PM

The problem comes with limits. In our case the box is 30mm as well as the cylinder height. We'll create a cylindrical joint to mate the parts. The question comes into how to limit the movement such that the bolt can go into the part and be limited by the bolt head. It appears that the proper way to do this (with this LCS) is to set a Length min to -30mm and then Length max to some large arbitrary number.

The issue is that one does not always want to bound in both directions. Current options are (-inf, inf) (no limits) or [a,b]. It would be nice to include [a,inf) and (-inf,b].

What could make this much more powerful is to add an option for a limiting face. I believe this could be done by using the same functionality of the Measure tool since we could measure the distance from the LCS origin to that face and that could define our one-sided limit. Or be able to select 2 faces and have those be the limiting factor. I think this works given that the joint automatically mates so we have a consistent reference coordinate. This functionality could really make the assembly process much more natural (i.e. let humans work with geometries instead of needing to take steps to determine numbers and then calculate)

Full version info

OS: macOS 14.5
Word size of Ondsel: 64-bit
Version: 2024.2.2.37240 (Git)
Build type: Release
Branch: (HEAD detached at 2024.2.2)
Hash: fbb794cd2e56fba5fd911c8832332b5e5e235319
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: C/Default (C)
Installed mods: 
  * Ondsel-Lens 2024.7.5.02 (Disabled)
  * freecad.gears 1.2.0
  * fasteners 0.5.24
  * lattice2 1.0.0
  * 3D_Printing_Tools

Subproject(s) affected?

Assembly

Anything else?

No response

Code of Conduct

PaddleStroke commented 4 months ago

This was already solved by https://github.com/FreeCAD/FreeCAD/pull/14738 I think your version of ES does not have this.

stevenwalton commented 4 months ago

Thanks!

As in Ondsel doesn't have it or the Mac version of Ondsel doesn't? I see that it merged with the main branch of Ondsel 3 weeks ago and I am using the 2024.2.2 version, which was released 2 weeks ago. Was just wondering if it wasn't in this release or the Mac version differs.

PaddleStroke commented 4 months ago

You're welcome. I'm not sure in which version this ended up though. @prokoudine any idea?