discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Two annoyances

J
jon
Mon, Jun 29, 2015 7:02 PM

I keep trying to cut the bottom off of this horn (both inside the Horn
module, and when it is called at the bottom) with no joy. Puzzled.

I'm also seeing a log like this:
Warning: Normalized tree is growing past 200000 elements. Aborting
normalization.
Normalized CSD tree has 6767 elements

It may be clear to some of you how one tree became > 200000 (or is it
2000000?) while the other tree was a mere 6000.

Jon


rch = 0.1;

base = 0;    // height where base ends and sculpture starts
maxA = 360;

module OuterHorn() {
for (a = [0:1:maxA]) {
translate([18sin(a), 18cos(a), base + a/3])
sphere(r=2+(maxA-a)/30, $fn = 20);
};
}

module InnerHorn() {
for (a = [0:1:maxA]) {
translate([18sin(a), 18cos(a), base + a/3])
sphere(r=(maxA-a)/30, $fn = 20);
};
}

module Horn() {
difference() {
OuterHorn();
InnerHorn();
// cut off anything below the base
translate([-50, -50, -100])
cube([100, 100, 100]);
}
}

difference(){
//    Sculpture();
Horn();
// cut off anything below the base
translate([-50, -50, -100])
cube([100, 100, 100]);
}

I keep trying to cut the bottom off of this horn (both inside the Horn module, and when it is called at the bottom) with no joy. Puzzled. I'm also seeing a log like this: Warning: Normalized tree is growing past 200000 elements. Aborting normalization. Normalized CSD tree has 6767 elements It may be clear to some of you how one tree became > 200000 (or is it 2000000?) while the other tree was a mere 6000. Jon --- rch = 0.1; base = 0; // height where base ends and sculpture starts maxA = 360; module OuterHorn() { for (a = [0:1:maxA]) { translate([18*sin(a), 18*cos(a), base + a/3]) sphere(r=2+(maxA-a)/30, $fn = 20); }; } module InnerHorn() { for (a = [0:1:maxA]) { translate([18*sin(a), 18*cos(a), base + a/3]) sphere(r=(maxA-a)/30, $fn = 20); }; } module Horn() { difference() { OuterHorn(); InnerHorn(); // cut off anything below the base translate([-50, -50, -100]) cube([100, 100, 100]); } } difference(){ // Sculpture(); Horn(); // cut off anything below the base translate([-50, -50, -100]) cube([100, 100, 100]); }
M
MichaelAtOz
Mon, Jun 29, 2015 9:58 PM

That could be a bug.
If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to
400000 it goes away.

Interesting observation, the model (with normalisation) challenges my
graphics system, but when Aborting normalization happens it displays
easily??


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/Two-annoyances-tp12935p12937.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

That could be a bug. If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to 400000 it goes away. Interesting observation, the model (with normalisation) challenges my graphics system, but when Aborting normalization happens it displays easily?? ----- 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/Two-annoyances-tp12935p12937.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Mon, Jun 29, 2015 10:00 PM

p.s. Nice horn design, can I use it?


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/Two-annoyances-tp12935p12938.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

p.s. Nice horn design, can I use it? ----- 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/Two-annoyances-tp12935p12938.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jon
Mon, Jun 29, 2015 10:17 PM

Thanks!  Sure!  Seemed pretty obvious to me... <grin>

On 6/29/2015 6:00 PM, MichaelAtOz wrote:

p.s. Nice horn design, can I use it?


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/Two-annoyances-tp12935p12938.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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15

Thanks! Sure! Seemed pretty obvious to me... <grin> On 6/29/2015 6:00 PM, MichaelAtOz wrote: > p.s. Nice horn design, can I use it? > > > > ----- > 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/Two-annoyances-tp12935p12938.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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15
J
jon
Mon, Jun 29, 2015 10:21 PM

I increased the TurnOffRenderingAt to 400,000 and the difference still
fails (Windows 64); not sure what you meant by "it goes away".  The
rendering is so slow that it is impossible to use, aborted or not.  And
you can imagine how long F6 would take.  Not the best way to use
OpenSCAD I fear.

On 6/29/2015 5:58 PM, MichaelAtOz wrote:

That could be a bug.
If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to
400000 it goes away.

Interesting observation, the model (with normalisation) challenges my
graphics system, but when Aborting normalization happens it displays
easily??


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/Two-annoyances-tp12935p12937.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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15

I increased the TurnOffRenderingAt to 400,000 and the difference still fails (Windows 64); not sure what you meant by "it goes away". The rendering is so slow that it is impossible to use, aborted or not. And you can imagine how long F6 would take. Not the best way to use OpenSCAD I fear. On 6/29/2015 5:58 PM, MichaelAtOz wrote: > That could be a bug. > If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to > 400000 it goes away. > > Interesting observation, the model (with normalisation) challenges my > graphics system, but when Aborting normalization happens it displays > easily?? > > > > ----- > 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/Two-annoyances-tp12935p12937.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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15
J
jon
Mon, Jun 29, 2015 10:22 PM

I wonder if the community would benefit from some general purpose
tube/horn facility that was customizable.  I realize that Kit Wallace's
stuff (derived from NopHead) is a bit like that, but not easy to use (at
least for me).

On 6/29/2015 5:58 PM, MichaelAtOz wrote:

That could be a bug.
If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to
400000 it goes away.

Interesting observation, the model (with normalisation) challenges my
graphics system, but when Aborting normalization happens it displays
easily??


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/Two-annoyances-tp12935p12937.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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15

I wonder if the community would benefit from some general purpose tube/horn facility that was customizable. I realize that Kit Wallace's stuff (derived from NopHead) is a bit like that, but not easy to use (at least for me). On 6/29/2015 5:58 PM, MichaelAtOz wrote: > That could be a bug. > If you increase the Edit/Preference/Advanced/TurnOffRenderingAt setting to > 400000 it goes away. > > Interesting observation, the model (with normalisation) challenges my > graphics system, but when Aborting normalization happens it displays > easily?? > > > > ----- > 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/Two-annoyances-tp12935p12937.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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15
M
MichaelAtOz
Mon, Jun 29, 2015 10:53 PM

jon_bondy wrote

I increased the TurnOffRenderingAt to 400,000 and the difference still
fails (Windows 64); not sure what you meant by "it goes away".  The
rendering is so slow that it is impossible to use, aborted or not.  And
you can imagine how long F6 would take.  Not the best way to use
OpenSCAD I fear.

Do you still get the Warning msg? If so make the setting bigger.

Ahh! I changed the step number in the for() loops to 3, to cut down on the
number of triangles.

I was not getting the warning and the cutting off the base was working OK.
I reduced the setting to 200,000 and got the Warning and the cut did not
work.
I changed it back to 400,000 and "it goes away". Win7/64

Your current design uses sphere(), I was just considering using a short
cylinder() instead, it will have fewer triangles to deal with.

Yes, OpenSCAD gets difficult with really large numbers of faces...

I wonder if the community would benefit from some general purpose
tube/horn facility that was customizable.  I realize that Kit Wallace's
stuff (derived from NopHead) is a bit like that, but not easy to use (at
least for me).

The more the merrier... :)


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/Two-annoyances-tp12935p12942.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

jon_bondy wrote > I increased the TurnOffRenderingAt to 400,000 and the difference still > fails (Windows 64); not sure what you meant by "it goes away". The > rendering is so slow that it is impossible to use, aborted or not. And > you can imagine how long F6 would take. Not the best way to use > OpenSCAD I fear. Do you still get the Warning msg? If so make the setting bigger. Ahh! I changed the step number in the for() loops to 3, to cut down on the number of triangles. I was not getting the warning and the cutting off the base was working OK. I reduced the setting to 200,000 and got the Warning and the cut did not work. I changed it back to 400,000 and "it goes away". Win7/64 Your current design uses sphere(), I was just considering using a short cylinder() instead, it will have fewer triangles to deal with. Yes, OpenSCAD gets difficult with really large numbers of faces... > I wonder if the community would benefit from some general purpose > tube/horn facility that was customizable. I realize that Kit Wallace's > stuff (derived from NopHead) is a bit like that, but not easy to use (at > least for me). The more the merrier... :) ----- 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/Two-annoyances-tp12935p12942.html Sent from the OpenSCAD mailing list archive at Nabble.com.
M
MichaelAtOz
Mon, Jun 29, 2015 11:01 PM

With your original design, I had to go to 3,000,000 for it to work.
OpenSCAD was extreeeeemly unresponsive. Not going to try F6 ;)


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/Two-annoyances-tp12935p12943.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

With your original design, I had to go to 3,000,000 for it to work. OpenSCAD was extreeeeemly unresponsive. Not going to try F6 ;) ----- 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/Two-annoyances-tp12935p12943.html Sent from the OpenSCAD mailing list archive at Nabble.com.
J
jon
Tue, Jun 30, 2015 1:15 AM

Any idea why the difference() is unable to chop off the bottom?

On 6/29/2015 7:01 PM, MichaelAtOz wrote:

With your original design, I had to go to 3,000,000 for it to work.
OpenSCAD was extreeeeemly unresponsive. Not going to try F6 ;)


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/Two-annoyances-tp12935p12943.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


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15

Any idea why the difference() is unable to chop off the bottom? On 6/29/2015 7:01 PM, MichaelAtOz wrote: > With your original design, I had to go to 3,000,000 for it to work. > OpenSCAD was extreeeeemly unresponsive. Not going to try F6 ;) > > > > ----- > 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/Two-annoyances-tp12935p12943.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 > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.6037 / Virus Database: 4365/10124 - Release Date: 06/29/15
M
MichaelAtOz
Tue, Jun 30, 2015 3:27 AM

I'm not sure of the what's happening internally when the normalisation is
aborted. That may be the bug, or a limitation.?

But when the Warning is not occurring the difference() works properly.


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/Two-annoyances-tp12935p12945.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I'm not sure of the what's happening internally when the normalisation is aborted. That may be the bug, or a limitation.? But when the Warning is not occurring the difference() works properly. ----- 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/Two-annoyances-tp12935p12945.html Sent from the OpenSCAD mailing list archive at Nabble.com.