Win32 build

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

Win32 build

stonysmith
I'm getting an error when running the CGAL compile. Source and Log below. This is on Win7/64bit

//SOURCE=================================
num_slices=64;
$fn=num_slices;
w=8;
h=4;
t=.5;

module blade(){
linear_extrude(twist=-60,height=h*2,slices=num_slices,center=true)square([t,w*2]);
}

union(){
intersection(){
union(){
rotate([0,0,0])blade();
rotate([0,0,120])blade();
rotate([0,0,240])blade();
}
rotate_extrude(center=true)translate([w,0,0])scale([1,h/w,1])circle(r=w,$fn=64);
}
cylinder(r=2,h=h*2,center=true);
}

//LOG====================================
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
Compilation finished.
Rendering Polygon Mesh using CGAL...
CGAL error: CGAL ERROR: assertion violation!
Expr: check_protocoll == 0
File: /home/brad/code/mingw-cross-env/usr/lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/include/CGAL/Polyhedron_incremental_builder_3.h
Line: 198
Number of vertices currently in CGAL cache: 2512
Number of objects currently in CGAL cache: 16
Top level object is a 3D object:
Simple: yes
Valid: yes
Vertices: 128
Halfedges: 384
Edges: 192
Halffacets: 132
Facets: 66
Volumes: 2
Total rendering time: 0 hours, 0 minutes, 20 seconds
Rendering finished.
Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

kintel
Administrator
On Sep 27, 2011, at 19:28 PM, [hidden email] wrote:

> I'm getting an error when running the CGAL compile. Source and Log below. This is on Win7/64bit
>

This is a known problem - see the discussion about rendering a "horn torus".
If you change the intersected torus in your model from
 
rotate_extrude(center=true)translate([w,0,0])scale([1,h/w,1])circle(r=w,$fn=64);

to

rotate_extrude(center=true)translate([w+0.1,0,0])scale([1,h/w,1])circle(r=w,$fn=64);

..it should work.

One day I'll try fixing this properly, but right now I'm afraid I'd break more than I fix if I try to deal with it : /

 -Marius