hi,
trying to generate a large (25mm) screw, 9mm long, with a decent (between
the U.S. "national coarse" and "national fine") thread count.
if i use:
metric_thread(diameter=25, pitch=26, length=strsScrewLength, internal=false,
n_starts=1);
it fails (see below);
if i use:
metric_thread(25, 16, strsScrewLength);
it works.
if anyone has any advice, i'm all ears.
thanks
twistOneUp
use <threads.scad>;
include <foo.scad>;
genTest = true;
strhFn=(genTest) ? 30 : 30;
//strhKeeperHoleOffsetFromCentah =
(strhDiametah/2)-strhKeeperHoleFromEdge;
union() {
difference() {
union() {
cylinder(r=strhSpacerRadius, h=strhSpacerWidth, $fn=strhFn, center=true);
translate([0, 0, (strhSpacerWidth/2)])//strhSpacerWidth])
cylinder(r=strhGripRadius, h=strhGripWidth, $fn=strhFn);
}
// iterate da grips
for (i = [0 : (strhGripHoleQuantity-1)]) {
translate([(strhGripRadiussin(i(360/strhGripHoleQuantity))),
(strhGripRadiuscos(i(360/strhGripHoleQuantity))), (strhSpacerWidth/2)])
cylinder(r=(strhGripHoleDiametah/2), h=strhSpacerWidth, $fn=strhFn);
}
}
// smooth the "gear teeth"
for (i = [0 : (strhGripHoleQuantity-1)]) {
translate([((strhGripRadiussin(i(360/strhGripHoleQuantity)+((360/strhGripHoleQuantity/2))))),
((strhGripRadiuscos(i(360/strhGripHoleQuantity)+((360/strhGripHoleQuantity/2))))),
(strhSpacerWidth/2)])
cylinder(r=(strhGripHoleDiametah/4), h=strhGripWidth, $fn=strhFn);
}
// add in shaft (splined)
rotate([-180, 0, 0])
cylinder(r=12.7, h=50, $fn=strhFn);
for (i=[0:(strhGripHoleQuantity-1)]) {
rotate([-180, 0, 0])
if ( (i==0) || (i==3) || (i==6) || (i==9) ) {
translate([-1.25, -1.25, -5])
translate([12.7sin(i(360/strhGripHoleQuantity)),
12.7cos(i(360/strhGripHoleQuantity)), (strhSpacerWidth/2)])
cube([2.5, 2.5, 50]);
}
}
// add in da screw
translate([0, 0, -59])
// metric_thread(25, 16, strsScrewLength); // takes forEVAH!
metric_thread(diameter=25, pitch=26, length=strsScrewLength,
internal=false, n_starts=1);
}
foo.scad:
strStrappingWidth = 25.4;
strDiametah = 4*25.4;
strThickness = 4;
strCenterHoleDiametah = 25;
strPinHoleQuantity = 12;
strPinHoleDiametah = 10;
strPinpHoleFromEdge = 4;
strhGripHoleQuantity = 12;
strhSpacerRadius = 17.5;
strhSpacerWidth = 10;
strhGripRadius = 25;
strhGripWidth = 5;
strhGripHoleDiametah = 10;
strcsRadius = 16;
strcsSpacerInsetIntoReel = 2;
strcsAddlWidthAroundStrap = 1;
strpPinGripRadius = 6;
strpPinGripLength = 12;
strpPinCollarRadius = 8;
strpPinCollarThickness = 2;
strpPinProngRadius = 6;
strpPinProngLength = 12;
strsScrewLength = 9;
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's union operator: CGAL ERROR: assertion
violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
CGAL error in CGAL_Nef_polyhedron's intersection operator: CGAL ERROR:
assertion violation!
Expr: itl != it->second.end()
File: ../openscad_deps/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
PolySets in cache: 0
PolySet cache size in bytes: 0
CGAL Polyhedrons in cache: 1167
CGAL cache size in bytes: 104848440
Top level object is a 3D object:
Simple: yes
Vertices: 1018
Halfedges: 3054
Edges: 1527
Halffacets: 1026
Facets: 513
Volumes: 2
Total rendering time: 0 hours, 0 minutes, 6 seconds
Rendering finished.
--
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
where is threads.scad?
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11202.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Probably http://dkprojects.net/openscad-threads/?
On Fri Jan 23 2015 at 6:26:57 PM MichaelAtOz oz.at.michael@gmail.com
wrote:
where is threads.scad?
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.
View this message in context: http://forum.openscad.org/
threads-scad-errors-tp11201p11202.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
With the latest snapshot, I get a different, single error.
ERROR: CGAL error in CGALUtils::applyBinaryOperator union: CGAL ERROR:
assertion violation! Expr: itl != it->second.end() File:
/data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_3/SNC_external_structure.h
Line: 1102
What OpenSCAD version are you using?
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11204.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I get the OP's errors with 2014.03. And with just the metric_thread(25,26,9)
call, no other geometry.
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11205.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OK, the library, where the pitch >= diameter, gets n_turns=0, probably not
healthy.
It may take a while to understand what's happening.
Perhaps, diameter=25, pitch=24 will do???
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11206.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Scratch that.
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11207.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
That's above my pay grade.
I've dropped Dan the author a note in case he can see something...
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11208.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Ping, because the above post didn't make it to the mailing list.
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.
View this message in context: http://forum.openscad.org/threads-scad-errors-tp11201p11215.html
Sent from the OpenSCAD mailing list archive at Nabble.com.