[OpenSCAD] aligning/flooring all objects

nop head nop.head at gmail.com
Fri Jul 12 03:08:50 EDT 2019

Yes make the origin the most useful point but if there are other points of
interest, for example screw holes, than I make a module that moves its
children there and use it to make the holes both in the object, and what it
mounts to and place the screws. So I never need to calculate positions. It
is simply a combination of modules. E.g.

motor_position() {
     screw(motor_screw(), 10);

Similarly I have functions to get the important dimensions of each object,
so I know its bounding box allowing me to place it in an assembly and
design other things round it.

The rule is never specify anything twice. Always factor it into a function,
module, or variable and define it once and re-use it.

On Fri, 12 Jul 2019 at 07:45, Troberg <troberg.anders at gmail.com> wrote:

> lostapathy wrote
> > The "trick", really, is to design all your parts around a convenient
> > origin and then translate them to the assembled position.  It seems most
> > people's intuition is to model the part in the assembled position and
> > then try to move it back to a convenient origin for printing (or
> > whatever else).
> This also has the added benefit of being more modular. It's easier to reuse
> components if they have a sensible origin. Say, for example, that I model a
> bolt. I then put it at the origin, wigh the XY plane just below the head,
> oriented along the Z. This makes a lot more sense when I want to use that
> bolt in some other design.
> --
> Sent from: http://forum.openscad.org/
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190712/4595f1e0/attachment.html>

More information about the Discuss mailing list