Is it possible to move a part along a bent flexible part?
Ailurus a commencé cette discussion dans Help and Tips

Hi, as the title suggests, I'm wondering whether it's possible to somehow move/slide a part along a bent (i.e. deformed) flexible path. As example, let's consider the following:

https://imgur.com/a/sxnpHOS

Here, I've used an Outer Cable 80mm (yellow) and bent it a bit. It has three snapping points, to which I've snapped the red parts. Now, what if I'd like to snap another part (green) to some other position on the Cable? Ideally, I'd clone one of the red parts, colour it green, and then somehow move/slide it along the Cable. From the technical point of view, assuming you're using cubic Bézier curves for the flexible stuff, you could consider the tangent/normal vectors along the curve to do this (essentially using a so-called Frenet frame). I'd be happy to help.

Another (partial) solution would be to allow the user to add more snapping points to flexible objects (perhaps this is already possible, I'm pretty new to Mecabricks — great job on the implementation by the way, it's an absolute joy to use). This could be done either directly, or indirectly by subdividing the curve (representing the flexible part) into multiple sub-curves.

Naturally, I could rotate/translate the green part manually to approximately connect it to the Cable, though in case one has a lot of these parts, it would be rather time-consuming!

1 réponse · Page 1 sur 1
Avatar de Scrubs
Administrateur

Hello Ailurus,
This is currently the second version of the flexible part system introduced a couple of years ago and a big step up compared to the first implementation 😃
As often, this is not the maths that is the most complicated and time consuming but the UI and UX.
Mecabricks is currently being fully redesigned and it shall make it easier to implement such features in the future.

Publicité
2 participants
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.