discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

minkowski - how to keep exact dimensions

SK
Stefan Krister
Wed, May 6, 2015 8:43 AM

Hi,

I'm currently helping a girls high school class to develop a bracelet
which is able to charge a battery by solar cells and give that energy to
a smartphone.

They asked me to do a 3d sketch to play with the design. Here is what I
have so far:

diameter=200;
width=40;
height=10;
roundness=4;

$fn=100;

color("DeepSkyBlue")
minkowski()
{
sphere(r=roundness);
hull()
{
cylinder(h=height / 2 - roundness, d=width / 2);
translate([diameter, 0, 0])
cylinder(h=height / 2 - roundness, d=width / 2);

	translate([diameter * 1 / 4, 0, 0])
	 cylinder(h=height - roundness, d=width);
	translate([diameter * 3 / 4, 0, 0])
		cylinder(h=height - roundness, d=width);
}	

}

I would like to have the lenght of the bracelet the exact value of
"diameter", as well as the middle part should not be greater than
"width" and "height". I did a few experiments by subtracting from these
values but it is not easy to get a exact result. What should I do?

Bonus question: Besides that the bracelet will be printed flat with
NinjaFlex to be bendable, I would like to have it already bended in the
preview. How can I do that?

Regards

Stefan

Blog: http://bastard-fdb.blogspot.de/
Gallery: http://gallery.port23.de/v/bastard/
Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard

Hi, I'm currently helping a girls high school class to develop a bracelet which is able to charge a battery by solar cells and give that energy to a smartphone. They asked me to do a 3d sketch to play with the design. Here is what I have so far: diameter=200; width=40; height=10; roundness=4; $fn=100; color("DeepSkyBlue") minkowski() { sphere(r=roundness); hull() { cylinder(h=height / 2 - roundness, d=width / 2); translate([diameter, 0, 0]) cylinder(h=height / 2 - roundness, d=width / 2); translate([diameter * 1 / 4, 0, 0]) cylinder(h=height - roundness, d=width); translate([diameter * 3 / 4, 0, 0]) cylinder(h=height - roundness, d=width); } } I would like to have the lenght of the bracelet the exact value of "diameter", as well as the middle part should not be greater than "width" and "height". I did a few experiments by subtracting from these values but it is not easy to get a exact result. What should I do? Bonus question: Besides that the bracelet will be printed flat with NinjaFlex to be bendable, I would like to have it already bended in the preview. How can I do that? Regards Stefan -- Blog: http://bastard-fdb.blogspot.de/ Gallery: http://gallery.port23.de/v/bastard/ Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard
SK
Stefan Krister
Thu, May 7, 2015 7:30 AM

Hi,

Stefan Krister schrieb am 06.05.2015 um 10:43:

I would like to have the lenght of the bracelet the exact value of
"diameter", as well as the middle part should not be greater than
"width" and "height".

a resize([length, width, height]) did it.

I would like to have it already bended in the
preview. How can I do that?

That was a challenge ...

Step by step in a for loop I sliced (via an intersection) the long
object and got many slices. Then I rotate each slice and transform it to
the right place along a circle.

At the end, I got this:

https://drive.google.com/folderview?id=0B6LM7uRPVe-sfjFJU3VSVVlfZkloY2dUQkdPNGFGYTFRbjNzc2g4UXJWNGEtdkFocUplQjQ&usp=sharing

Regards

Stefan

Blog: http://bastard-fdb.blogspot.de/
Gallery: http://gallery.port23.de/v/bastard/
Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard

Hi, Stefan Krister schrieb am 06.05.2015 um 10:43: > > I would like to have the lenght of the bracelet the exact value of > "diameter", as well as the middle part should not be greater than > "width" and "height". a resize([length, width, height]) did it. > I would like to have it already bended in the > preview. How can I do that? That was a challenge ... Step by step in a for loop I sliced (via an intersection) the long object and got many slices. Then I rotate each slice and transform it to the right place along a circle. At the end, I got this: https://drive.google.com/folderview?id=0B6LM7uRPVe-sfjFJU3VSVVlfZkloY2dUQkdPNGFGYTFRbjNzc2g4UXJWNGEtdkFocUplQjQ&usp=sharing Regards Stefan -- Blog: http://bastard-fdb.blogspot.de/ Gallery: http://gallery.port23.de/v/bastard/ Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard
A
arnholm@arnholm.org
Thu, May 7, 2015 11:05 AM

On 2015-05-07 09:30, Stefan Krister wrote:

Step by step in a for loop I sliced (via an intersection) the long
object and got many slices. Then I rotate each slice and transform it
to
the right place along a circle.

Not sure how that works and it sounds complicated. I admit the result
looks good, though....

I guess what would be really cool is to perform all modelling just like
you did in some other 3d parameter space, and then simply describe how
the 3d parameter space transforms into ordinary 3d cartesian space. In
this case the parameter space would be cylindrical...

Carsten Arnholm

On 2015-05-07 09:30, Stefan Krister wrote: > Step by step in a for loop I sliced (via an intersection) the long > object and got many slices. Then I rotate each slice and transform it > to > the right place along a circle. Not sure how that works and it sounds complicated. I admit the result looks good, though.... I guess what would be really cool is to perform all modelling just like you did in some other 3d parameter space, and then simply describe how the 3d parameter space transforms into ordinary 3d cartesian space. In this case the parameter space would be cylindrical... Carsten Arnholm
NH
nop head
Thu, May 7, 2015 11:36 AM

Yes being able to curve 3D space would be useful.

On 7 May 2015 at 12:05, arnholm@arnholm.org wrote:

On 2015-05-07 09:30, Stefan Krister wrote:

Step by step in a for loop I sliced (via an intersection) the long
object and got many slices. Then I rotate each slice and transform it to
the right place along a circle.

Not sure how that works and it sounds complicated. I admit the result
looks good, though....

I guess what would be really cool is to perform all modelling just like
you did in some other 3d parameter space, and then simply describe how the
3d parameter space transforms into ordinary 3d cartesian space. In this
case the parameter space would be cylindrical...

Carsten Arnholm


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Yes being able to curve 3D space would be useful. On 7 May 2015 at 12:05, <arnholm@arnholm.org> wrote: > On 2015-05-07 09:30, Stefan Krister wrote: > >> Step by step in a for loop I sliced (via an intersection) the long >> object and got many slices. Then I rotate each slice and transform it to >> the right place along a circle. >> > > Not sure how that works and it sounds complicated. I admit the result > looks good, though.... > > I guess what would be really cool is to perform all modelling just like > you did in some other 3d parameter space, and then simply describe how the > 3d parameter space transforms into ordinary 3d cartesian space. In this > case the parameter space would be cylindrical... > > Carsten Arnholm > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
M
MichaelAtOz
Thu, May 7, 2015 11:59 AM

nophead wrote

Yes being able to curve 3D space would be useful.

Strong I feel the force within you is...


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/minkowski-how-to-keep-exact-dimensions-tp12593p12608.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

nophead wrote > Yes being able to curve 3D space would be useful. Strong I feel the force within you is... ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/minkowski-how-to-keep-exact-dimensions-tp12593p12608.html Sent from the OpenSCAD mailing list archive at Nabble.com.
NH
nop head
Thu, May 7, 2015 12:11 PM

Of course being able to arbitrarily curve 4D space - time would be even
better. I believe if you get it right using negative energy you can travel
backwards in time.

On 7 May 2015 at 12:59, MichaelAtOz oz.at.michael@gmail.com wrote:

nophead wrote

Yes being able to curve 3D space would be useful.

Strong I feel the force within you is...


Unless specifically shown otherwise above, my contribution is in the
Public Domain; To the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. This work is
published globally via the internet. :) Inclusion of works of previous
authors is not included in the above.

The TPP is no simple "trade agreement."  Fight it!
http://www.ourfairdeal.org/

View this message in context:
http://forum.openscad.org/minkowski-how-to-keep-exact-dimensions-tp12593p12608.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Of course being able to arbitrarily curve 4D space - time would be even better. I believe if you get it right using negative energy you can travel backwards in time. On 7 May 2015 at 12:59, MichaelAtOz <oz.at.michael@gmail.com> wrote: > nophead wrote > > Yes being able to curve 3D space would be useful. > > Strong I feel the force within you is... > > > > > ----- > Unless specifically shown otherwise above, my contribution is in the > Public Domain; To the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. This work is > published globally via the internet. :) Inclusion of works of previous > authors is not included in the above. > > The TPP is no simple "trade agreement." Fight it! > http://www.ourfairdeal.org/ > -- > View this message in context: > http://forum.openscad.org/minkowski-how-to-keep-exact-dimensions-tp12593p12608.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
GW
G. Wade Johnson
Thu, May 7, 2015 12:12 PM

On Thu, 7 May 2015 12:36:26 +0100
nop head nop.head@gmail.com wrote:

Yes being able to curve 3D space would be useful.

<grin/> +1

On 7 May 2015 at 12:05, arnholm@arnholm.org wrote:

On 2015-05-07 09:30, Stefan Krister wrote:

Step by step in a for loop I sliced (via an intersection) the long
object and got many slices. Then I rotate each slice and transform
it to the right place along a circle.

Not sure how that works and it sounds complicated. I admit the
result looks good, though....

I guess what would be really cool is to perform all modelling just
like you did in some other 3d parameter space, and then simply
describe how the 3d parameter space transforms into ordinary 3d
cartesian space. In this case the parameter space would be
cylindrical...

Carsten Arnholm


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
Why do your people ask if someone's ready right before you are going to
do something massively unwise?      -- Delenn - "The War without End"

On Thu, 7 May 2015 12:36:26 +0100 nop head <nop.head@gmail.com> wrote: > Yes being able to curve 3D space would be useful. <grin/> +1 > On 7 May 2015 at 12:05, <arnholm@arnholm.org> wrote: > > > On 2015-05-07 09:30, Stefan Krister wrote: > > > >> Step by step in a for loop I sliced (via an intersection) the long > >> object and got many slices. Then I rotate each slice and transform > >> it to the right place along a circle. > >> > > > > Not sure how that works and it sounds complicated. I admit the > > result looks good, though.... > > > > I guess what would be really cool is to perform all modelling just > > like you did in some other 3d parameter space, and then simply > > describe how the 3d parameter space transforms into ordinary 3d > > cartesian space. In this case the parameter space would be > > cylindrical... > > > > Carsten Arnholm > > > > > > _______________________________________________ > > OpenSCAD mailing list > > Discuss@lists.openscad.org > > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > -- Why do your people ask if someone's ready right before you are going to do something massively unwise? -- Delenn - "The War without End"
YS
Yvette S. Hirth, CCP, CDP
Thu, May 7, 2015 4:05 PM

On 05/07/2015 12:30 AM, Stefan Krister wrote:

Step by step in a for loop I sliced (via an intersection) the long
object and got many slices. Then I rotate each slice and transform it to
the right place along a circle.

At the end, I got this:

https://drive.google.com/folderview?id=0B6LM7uRPVe-sfjFJU3VSVVlfZkloY2dUQkdPNGFGYTFRbjNzc2g4UXJWNGEtdkFocUplQjQ&usp=sharing

gosh, that's beautiful!  thank you for that!
yvette

On 05/07/2015 12:30 AM, Stefan Krister wrote: > Step by step in a for loop I sliced (via an intersection) the long > object and got many slices. Then I rotate each slice and transform it to > the right place along a circle. > > At the end, I got this: > > https://drive.google.com/folderview?id=0B6LM7uRPVe-sfjFJU3VSVVlfZkloY2dUQkdPNGFGYTFRbjNzc2g4UXJWNGEtdkFocUplQjQ&usp=sharing gosh, that's beautiful! thank you for that! yvette
SK
Stefan Krister
Thu, May 7, 2015 4:16 PM

Am 07.05.2015 um 18:05 schrieb Yvette S. Hirth, CCP, CDP:

I wonder, no one want's the code I wrote ...

Regards

Stefan

Blog: http://bastard-fdb.blogspot.de/
Gallery: http://gallery.port23.de/v/bastard/
Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard

Am 07.05.2015 um 18:05 schrieb Yvette S. Hirth, CCP, CDP: >> At the end, I got this: >> >> https://drive.google.com/folderview?id=0B6LM7uRPVe-sfjFJU3VSVVlfZkloY2dUQkdPNGFGYTFRbjNzc2g4UXJWNGEtdkFocUplQjQ&usp=sharing >> > > gosh, that's beautiful! thank you for that! I wonder, no one want's the code I wrote ... Regards Stefan -- Blog: http://bastard-fdb.blogspot.de/ Gallery: http://gallery.port23.de/v/bastard/ Wiki: http://wiki.port23.de/wiki/Benutzer:Bastard