Subject: CGAL users discussion list
List archive
- From: Ramin H <>
- To:
- Subject: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space
- Date: Fri, 13 Nov 2009 14:16:46 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jjdbWputCDU9tXak/dpDLI/Tm5L8Z8m/yEg9LKjbX8ErEpyamjpeSZwvTFsmI/h1GL L4nJdtyEG8iNIubwdcIGrQHEoiMBhOHh8xPOSijYaMktVpz90VxRSwsQFwrgtUVo3wWT ihYBOFKQimBA5LW1ogLgazp5ubz8nKeLAVhBE=
Hi everyone,
I am using: CGAL 3.5, VS 2005, boost 1.35, QT 4.3.1
I get the following errors:
==============
Error 6 fatal error C1060: compiler is out of heap space c:\program files\boost\boost_1_35_0\
boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp 79
Error 7 fatal error C1063: INTERNAL COMPILER ERROR c1xx
==============
while I am compiling the following code (which is a copy of CGAL-3.5\examples\Mesh_3\mesh_polyhedral_domain.cpp) .
Anyone has a similar problem? I also compiled against boost 1.39 but i get the exact same error. ( i downloaded boost binaries from boost pro)
Any idea how to get around this problem?
Thank you,
-Ramin
----- code begin ------
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>
// IO
#include <CGAL/IO/Polyhedron_iostream.h>
// Domain
// (we use exact intersection computation with Robust_intersection_traits_3)
struct K: public CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> Geom_traits;
typedef CGAL::Polyhedron_3<Geom_traits> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, Geom_traits> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Mesh Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
typedef Mesh_criteria::Facet_criteria Facet_criteria;
typedef Mesh_criteria::Cell_criteria Cell_criteria;
int main()
{
// Create polyhedron
Polyhedron polyhedron;
std::ifstream input("data/elephant.off");
input >> polyhedron;
// Create domain
Mesh_domain domain(polyhedron);
// Set mesh criteria
Facet_criteria facet_criteria(25, 0.15, 0.008); // angle, size, approximation
Cell_criteria cell_criteria(4, 0.2); // radius-edge ratio, size
Mesh_criteria criteria(facet_criteria, cell_criteria);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
// Output
std::ofstream medit_file("out.mesh");
c3t3.output_to_medit(medit_file);
medit_file.close();
// Change tetrahedron size
Cell_criteria new_cell_criteria(4, 0.03); // radius-edge ratio, size
Mesh_criteria new_criteria(facet_criteria, new_cell_criteria);
// Mesh refinement
CGAL::refine_mesh_3(c3t3, domain, new_criteria);
// Output
medit_file.open("out_1.mesh");
c3t3.output_to_medit(medit_file);
return 0;
}
------- code end ----------
Error 7 fatal error C1063: INTERNAL COMPILER ERROR c1xx
==============
while I am compiling the following code (which is a copy of CGAL-3.5\examples\Mesh_3\mesh_polyhedral_domain.cpp) .
Anyone has a similar problem? I also compiled against boost 1.39 but i get the exact same error. ( i downloaded boost binaries from boost pro)
Any idea how to get around this problem?
Thank you,
-Ramin
----- code begin ------
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>
// IO
#include <CGAL/IO/Polyhedron_iostream.h>
// Domain
// (we use exact intersection computation with Robust_intersection_traits_3)
struct K: public CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> Geom_traits;
typedef CGAL::Polyhedron_3<Geom_traits> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, Geom_traits> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Mesh Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
typedef Mesh_criteria::Facet_criteria Facet_criteria;
typedef Mesh_criteria::Cell_criteria Cell_criteria;
int main()
{
// Create polyhedron
Polyhedron polyhedron;
std::ifstream input("data/elephant.off");
input >> polyhedron;
// Create domain
Mesh_domain domain(polyhedron);
// Set mesh criteria
Facet_criteria facet_criteria(25, 0.15, 0.008); // angle, size, approximation
Cell_criteria cell_criteria(4, 0.2); // radius-edge ratio, size
Mesh_criteria criteria(facet_criteria, cell_criteria);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
// Output
std::ofstream medit_file("out.mesh");
c3t3.output_to_medit(medit_file);
medit_file.close();
// Change tetrahedron size
Cell_criteria new_cell_criteria(4, 0.03); // radius-edge ratio, size
Mesh_criteria new_criteria(facet_criteria, new_cell_criteria);
// Mesh refinement
CGAL::refine_mesh_3(c3t3, domain, new_criteria);
// Output
medit_file.open("out_1.mesh");
c3t3.output_to_medit(medit_file);
return 0;
}
------- code end ----------
- [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, Ramin H, 11/13/2009
- RE: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, tklein, 11/13/2009
- Re: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, Ramin H, 11/13/2009
- RE: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, tklein, 11/13/2009
Archive powered by MHonArc 2.6.16.