Merge branch 'master' of github.com:openscad/openscad

felipesanches-svg
Marius Kintel 2012-02-03 22:18:12 +01:00
commit d7ee4e4f3c
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh -e
# #
# This script builds all library dependencies of OpenSCAD for Mac OS X. # This script builds all library dependencies of OpenSCAD for Mac OS X.
# The libraries will be build in 32- and 64-bit mode and backwards compatible with # The libraries will be build in 32- and 64-bit mode and backwards compatible with
@ -201,7 +201,7 @@ build_opencsg()
echo "Using basedir:" $BASEDIR echo "Using basedir:" $BASEDIR
mkdir -p $SRCDIR $DEPLOYDIR mkdir -p $SRCDIR $DEPLOYDIR
build_gmp 5.0.2 build_gmp 5.0.3
build_mpfr 3.1.0 build_mpfr 3.1.0
build_boost 1.47.0 build_boost 1.47.0
# NB! For CGAL, also update the actual download URL in the function # NB! For CGAL, also update the actual download URL in the function

View File

@ -90,6 +90,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node)
} }
PolySet *ps3 = sum.convertToPolyset(); PolySet *ps3 = sum.convertToPolyset();
if (!ps3) return NULL;
Grid2d<int> conversion_grid(GRID_COARSE); Grid2d<int> conversion_grid(GRID_COARSE);
for (size_t i = 0; i < ps3->polygons.size(); i++) { for (size_t i = 0; i < ps3->polygons.size(); i++) {
for (size_t j = 0; j < ps3->polygons[i].size(); j++) { for (size_t j = 0; j < ps3->polygons[i].size(); j++) {
@ -121,6 +122,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node)
} }
PolySet *ps3 = sum.convertToPolyset(); PolySet *ps3 = sum.convertToPolyset();
if (!ps3) return NULL;
CGAL_Nef_polyhedron np; CGAL_Nef_polyhedron np;
for (size_t i = 0; i < ps3->polygons.size(); i++) for (size_t i = 0; i < ps3->polygons.size(); i++)
{ {
@ -385,7 +387,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const CgaladvNode &node)
PolySet *ps = NULL; PolySet *ps = NULL;
if (!N.empty()) { if (!N.empty()) {
ps = N.convertToPolyset(); ps = N.convertToPolyset();
ps->convexity = node.convexity; if (ps) ps->convexity = node.convexity;
} }
return ps; return ps;
@ -401,7 +403,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const RenderNode &node)
} }
else { else {
ps = N.convertToPolyset(); ps = N.convertToPolyset();
ps->convexity = node.convexity; if (ps) ps->convexity = node.convexity;
} }
} }
return ps; return ps;