Problems importing STL models

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

Problems importing STL models

W. Craig Trader
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 -

Reply | Threaded
Open this post in threaded view
|

Re: Problems importing STL models

W. Craig Trader
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 <[hidden email]> 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 -


Reply | Threaded
Open this post in threaded view
|

Re: Problems importing STL models

nophead
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: Problems importing STL models

W. Craig Trader
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: Problems importing STL models

W. Craig Trader
Well, NetFabb Studio was able to clean up this file, but not the other two (at least, not so far).

- Craig -

On Wed, Mar 21, 2012 at 11:23, W. Craig Trader <[hidden email]> wrote:
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad



Reply | Threaded
Open this post in threaded view
|

Re: Problems importing STL models

kintel
Administrator
In reply to this post by nophead
On Mar 21, 2012, at 16:14 PM, nop head 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.
>
Yes, nop head is correct.

This issue probably encompasses multiple sub issues, but this is probably the one you want to monitor:
https://github.com/openscad/openscad/issues/13

It shouldn't crash though - I'll take a look at that particular issue and make it fail gracefully.

 -Marius