Trying to block some holes in preparation for replacing them with smaller
ones. I tried finding something wrong with the STL file imported, but
without an answer.
Previews fine but will not render. Throws an error and renders only the
cylinders I used to remove the holes.
Code:
union() {
translate([4.4,-29.7,4])
rotate([0,90,0])
translate([4.4,-29.7,30.2])
rotate([0,90,0])
import("Tusk Fan Shroud.stl",convexity = 10);
}
Error:
Parsing design (AST generation)...
Saved backup file:
C:/Users/Admin/Documents/OpenSCAD/backups/unsaved-backup-XmwNbxqL.scad
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_FM_decorator.h
Line: 426
Geometries in cache: 21
Geometry cache size in bytes: 21410088
CGAL Polyhedrons in cache: 8
CGAL cache size in bytes: 294656
Total rendering time: 0 hours, 0 minutes, 7 seconds
Top level object is a 3D object:
Simple: yes
Vertices: 32
Halfedges: 96
Edges: 48
Halffacets: 40
Facets: 20
Volumes: 3
Rendering finished.
STL file too large to upload here. It's at
https://drive.google.com/drive/folders/0BxntGMCn8PVKOTFwU3F4NzNvNG8
Ideas?
--
Sent from: http://forum.openscad.org/
Works for me, with 2015.03-2 & 2019.05, Windows-7-64.
Want me to email the stl?
Admin - email* me if you need anything, or if I've done something stupid...
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. Obviously inclusion of works of previous authors is not included in the above.
Sent from: http://forum.openscad.org/
MichaelAtOz wrote
Works for me, with 2015.03-2 & 2019.05, Windows-7-64.
oops.. my bad. I must have, at some point in my testing, saved a modified
"Tusk Fan Shroud.stl" over the original, and got the error trying to drill
new holes in it. Here's an OpenSCAD script that shows the error I was
seeing. Instructions are in the file.
// Instructions to duplicate problem:
// Display/preview with fill_holes() only
// Export as "Tusk Fan Shroud V1.stl"
// Preview with drill_new() only
// At this point, things get very slow.
// Dragging the model around in the preview is like it moving through
molasses.
// Render with drill_new() only
// This gives me the error.
// ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion
violation! Expr: e_below != SHalfedge_handle() File:
/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/SNC_FM_decorator.h
Line: 426
$fn = 30;
!fill_holes();
drill_new();
module fill_holes() {
import("Tusk Fan Shroud.stl", convexity = 100);
union() {
translate([4.46,-29.7,4])
rotate([0,90,0])
translate([4.46,-29.7,30.2])
rotate([0,90,0])
}
}
module drill_new() {
difference() {
import("Tusk Fan Shroud V1.stl", convexity = 100);
translate([4,-29.7,4])
rotate([0,90,0])
translate([4,-29.7,30.2])
rotate([0,90,0])
}
}
--
Sent from: http://forum.openscad.org/
The filled stl (...V1) has self intersections (SI's). Netfabb's definition of
such.
http://forum.openscad.org/file/t359/Capture_tusk_V1.jpg
The next question is why OpenSCAD exports SI's.
I suspect it is yet another small number floating point problem.
The original stl was very detailed. e.g.
http://forum.openscad.org/file/t359/Capture_tusk_orig.jpg
&
http://forum.openscad.org/file/t359/Capture_tusk_orig_b.jpg
Dragging the model around in the preview is like it moving through
molasses.
Probably convexity=100
Admin - email* me if you need anything, or if I've done something stupid...
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. Obviously inclusion of works of previous authors is not included in the above.
Sent from: http://forum.openscad.org/
Thanks Michael. I guess I'll make my own.
--
Sent from: http://forum.openscad.org/