[OpenSCAD] Problems importing STL models

W. Craig Trader craig.trader at gmail.com
Wed Mar 21 16:23:02 CET 2012


I haven't had a chance to play with the free Netfabb software, just the
Netfabb Cloud (which did fix some problems, but not these).

- Craig -

On Wed, Mar 21, 2012 at 11:14, nop head <nop.head at gmail.com> wrote:

> It is a known bug that Openscad cannot import some of its own STLs. You
> could try putting them through Netfabb Studio as when it exports STLs it
> filters out triangles that it thinks will become degenerate due to
> rounding, which seems to be the issue.
>
> On 21 March 2012 14:43, W. Craig Trader <craig.trader at gmail.com> wrote:
>
>> Another problem that I missed:  When I try to export a model that can be
>> imported by OpenSCAD/CGAL:
>>
>> module x_carriage() {
>>
>> import( "jason-models/x-carriage-fixed.stl" );
>>
>> }
>>
>>
>> I get this error from the command line:
>>
>> openscad -m make -o output/x_carriage.stl -d output/x_carriage.stl.deps
>> x_carriage.scad
>> Compiling library
>> '/net/storage/data/archive/parts/novareprep-prusa-parts/layout.scad'.
>>  CGAL Cache insert: import(file="jason-models/x-carriage-fix (3706448
>> bytes)
>> CGAL Cache insert: group(){import(file="jason-models/x-carr (3706448
>> bytes)
>> CGAL Cache insert: group(){group(){import(file="jason-model (3706448
>> bytes)
>>  sorry, this triangulation does not deal with
>>  intersecting constraints
>> terminate called after throwing an instance of 'CGAL::Assertion_exception'
>>   what():  CGAL ERROR: assertion violation!
>> Expr: check_protocoll == 0
>> File: /usr/include/CGAL/Polyhedron_incremental_builder_3.h
>> Line: 198
>>
>>
>> If I try to do the export from the OpenSCAD GUI, it crashes the program.
>>
>> OpenGL Program Link OK:
>> Vertex shader(s) linked, fragment shader(s) linked.
>> OpenGL Program Validation results:
>> Validation successful.
>>  sorry, this triangulation does not deal with
>>  intersecting constraints
>> terminate called after throwing an instance of 'CGAL::Assertion_exception'
>>   what():  CGAL ERROR: assertion violation!
>> Expr: check_protocoll == 0
>> File: /usr/include/CGAL/Polyhedron_incremental_builder_3.h
>> Line: 198
>> Aborted
>>
>>
>>
>> On Wed, Mar 21, 2012 at 10:36, W. Craig Trader <craig.trader at gmail.com>wrote:
>>
>>> I've been printing parts for the local RepRap group, and as part of that
>>> I've been using OpenSCAD to setup groups of objects to print together.
>>>  Most of the models worked fine, or worked after being pushed through
>>> NetFabb to clean them up, but I still have a couple of models that
>>> individually can be sliced and printed (Skeinforge) but OpenSCAD/CGAL can't
>>> handle importing and manipulating.
>>>
>>> I've put all of the models and ancillary files up on GitHub (
>>> https://github.com/wcraigtrader/novareprep-prusa-parts).  The specific
>>> problems I'm having are with these parts:
>>>
>>> module x_end_motor() {
>>>
>>> import( "jason-models/x-end-motor-fixed.stl" );
>>>
>>> }
>>>
>>>
>>> module j_head_and_mg_mount() {
>>>
>>>  import( "jason-models/J-Head-and-MG-mount-fixed.stl" );
>>>
>>> }
>>>
>>>
>>> A typical error message would be:
>>>
>>>
>>> Parsing design (AST generation)...
>>>
>>> Compiling design (CSG Tree generation)...
>>>
>>> Compilation finished.
>>>
>>> Rendering Polygon Mesh using CGAL...
>>>
>>>  PolySetCache hit: cube(size=[105,105,0.25],center=true);
>>>
>>> PolySetCache hit: cube(size=[104.5,104.5,0.5],center=true)
>>>
>>> CGAL Cache insert: cube(size=[105,105,0.25],center=true); (10872 bytes)
>>>
>>> CGAL Cache insert: cube(size=[104.5,104.5,0.5],center=true) (10872 bytes)
>>>
>>> CGAL Cache insert: difference(){cube(size=[105,105,0.25],ce (21336 bytes)
>>>
>>> PolySetCache hit: import(file="jason-models/x-end-motor-fi
>>>
>>> CGAL error in CGAL_Build_PolySet: CGAL ERROR: assertion violation!
>>>
>>> Expr: check_protocoll == 0
>>>
>>> File: /usr/include/CGAL/Polyhedron_incremental_builder_3.h
>>>
>>> Line: 198
>>>
>>> CGAL Cache insert: import(file="jason-models/x-end-motor-fi (40 bytes)
>>>
>>> CGAL Cache insert: group(){%multmatrix([[1,0,0,0],[0,1,0,0] (40 bytes)
>>>
>>> CGAL Cache insert: group(){import(file="jason-models/x-end- (40 bytes)
>>>
>>> CGAL Cache insert: group(){group(){%multmatrix([[1,0,0,0],[ (40 bytes)
>>>
>>> PolySets in cache: 102
>>>
>>> PolySet cache size in bytes: 2085192
>>>
>>> CGAL Polyhedrons in cache: 528
>>>
>>> CGAL cache size in bytes: 85761720
>>>
>>> Total rendering time: 0 hours, 0 minutes, 0 seconds
>>>
>>> WARNING: No top level geometry to render
>>>
>>>
>>> If I'm reading the error correctly, it's happening when the
>>> Polyhedron_incremental_builder_3 is being destroyed.
>>>
>>>
>>> Thanks for any help you can suggest.
>>>
>>>
>>> - Craig -
>>>
>>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> OpenSCAD at rocklinux.org
>> http://rocklinux.net/mailman/listinfo/openscad
>>
>>
>
> _______________________________________________
> OpenSCAD mailing list
> OpenSCAD at rocklinux.org
> http://rocklinux.net/mailman/listinfo/openscad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rocklinux.net/pipermail/openscad/attachments/20120321/2b837063/attachment-0001.html


More information about the OpenSCAD mailing list