Assertion Violation in Render

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Assertion Violation in Render

sguthery
Here's the OpenSCAD code:

dxffile="207a.dxf";
difference(){
translate([0,0,-10])rotate_extrude(convexity=10) import(dxffile);
translate([140,0,10])cube([300,600,300],center=true);
};

Here's the DXF file:

207a.dxf

Here's the Preview:


Here's the attempt at a rendering:

Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation!
Expr: e->incident_sface() != SFace_const_handle()
File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h
Line: 326
Geometries in cache: 5
Geometry cache size in bytes: 7177856
CGAL Polyhedrons in cache: 2
CGAL cache size in bytes: 0
Total rendering time: 0 hours, 0 minutes, 2 seconds
Rendering finished.
Reply | Threaded
Open this post in threaded view
|

Re: Assertion Violation in Render

kintel
Administrator

On Dec 17, 2014, at 14:20 PM, sguthery <[hidden email]> wrote:

> Here's the OpenSCAD code: […]

The challenge is that the DXF file touches the Y axis in one vertex. This causes the revolved volume to be non-manifold (volume collapses in one vertex). Unfortunately, our CSG engine doesn’t handle that.

For the others: https://github.com/openscad/openscad/issues/1081

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Assertion Violation in Render

stonysmith
This post has NOT been accepted by the mailing list yet.
Can I ask what do you mean by "touches the Y axis in one vertex?"

I am having the same error reported.

If I execute this by itself:
import("object.stl");
then the F6 render works.

but:
import("object.stl");
translate([0,15,0])import("object.stl");

fails with the assertion violation.

To perhaps address the issue, I opened the STL in Netfabb and translated it to [20,20,20] so that no vertex should be close to any one of the axes - still got the same result.


==version2014.03===
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
CGAL error in CGAL_Build_PolySet: CGAL ERROR: assertion violation!
Expr: check_protocoll == 0
File: /home/don/openscad_deps/mxe-w64/usr/x86_64-w64-mingw32/include/CGAL/Polyhedron_incremental_builder_3.h
Line: 199
CGAL error in CGAL_Build_PolySet: CGAL ERROR: assertion violation!
Expr: check_protocoll == 0
File: /home/don/openscad_deps/mxe-w64/usr/x86_64-w64-mingw32/include/CGAL/Polyhedron_incremental_builder_3.h
Line: 199
PolySets in cache: 0
PolySet cache size in bytes: 0
CGAL Polyhedrons in cache: 3
CGAL cache size in bytes: 0
Total rendering time: 0 hours, 0 minutes, 0 seconds
WARNING: No top level geometry to render



==version2014.12.16===
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation!
Expr: e->incident_sface() != SFace_const_handle()
File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h
Line: 326
CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation!
Expr: e->incident_sface() != SFace_const_handle()
File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h
Line: 326
Geometries in cache: 5
Geometry cache size in bytes: 16567248
CGAL Polyhedrons in cache: 3
CGAL cache size in bytes: 0
Total rendering time: 0 hours, 0 minutes, 11 seconds
Rendering finished.
Reply | Threaded
Open this post in threaded view
|

Re: Assertion Violation in Render

kintel
Administrator
Hi,

I mean that the _2D_ object touches the Y axis in one vertex. If you move the 2D object a tiny bit in the positive X direction, it should work.

 -Marius