discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Model won't render

L
lar3ry
Thu, Jun 20, 2019 10:57 PM

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])

cylinder(h=12.1,d=4.5);

translate([4.4,-29.7,30.2])
	rotate([0,90,0])

cylinder(h=12.1,d=4.5);

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/

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]) # cylinder(h=12.1,d=4.5); translate([4.4,-29.7,30.2]) rotate([0,90,0]) # cylinder(h=12.1,d=4.5); 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/
M
MichaelAtOz
Fri, Jun 21, 2019 1:17 AM

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...

  • click on my MichaelAtOz label, there is a link to email me.

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.

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

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... * click on my MichaelAtOz label, there is a link to email me. 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. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
L
lar3ry
Fri, Jun 21, 2019 10:37 PM

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])

cylinder(h=11.99,d=4.5);

	translate([4.46,-29.7,30.2])
		rotate([0,90,0])

cylinder(h=11.99,d=4.5);

}

}

module drill_new() {
difference() {
import("Tusk Fan Shroud V1.stl", convexity = 100);

	translate([4,-29.7,4])
		rotate([0,90,0])

cylinder(h=13,d=3.5);

	translate([4,-29.7,30.2])
		rotate([0,90,0])

cylinder(h=13,d=3.5);

}

}

--
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]) # cylinder(h=11.99,d=4.5); translate([4.46,-29.7,30.2]) rotate([0,90,0]) # cylinder(h=11.99,d=4.5); } } module drill_new() { difference() { import("Tusk Fan Shroud V1.stl", convexity = 100); translate([4,-29.7,4]) rotate([0,90,0]) # cylinder(h=13,d=3.5); translate([4,-29.7,30.2]) rotate([0,90,0]) # cylinder(h=13,d=3.5); } } -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sat, Jun 22, 2019 2:33 AM

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...

  • click on my MichaelAtOz label, there is a link to email me.

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.

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

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... * click on my MichaelAtOz label, there is a link to email me. 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. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
L
lar3ry
Sat, Jun 22, 2019 5:35 AM

Thanks Michael. I guess I'll make my own.

--
Sent from: http://forum.openscad.org/

Thanks Michael. I guess I'll make my own. -- Sent from: http://forum.openscad.org/