summaryrefslogtreecommitdiff
path: root/src/PolySetCGALEvaluator.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-08 02:38:18 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-08 02:38:18 (GMT)
commit45bbac86869ea18286511d071d882dd925e22f23 (patch)
treed8a32a7259be0d1c02445ec0898b5a3357d149b7 /src/PolySetCGALEvaluator.cc
parentee7603badba87e3680a4da05f2625a03b40081ec (diff)
bugfix: convexity wasn't passed on to polysets for Cgaladv and Render nodes
Diffstat (limited to 'src/PolySetCGALEvaluator.cc')
-rw-r--r--src/PolySetCGALEvaluator.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc
index ddb9771..78d5704 100644
--- a/src/PolySetCGALEvaluator.cc
+++ b/src/PolySetCGALEvaluator.cc
@@ -383,7 +383,10 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const CgaladvNode &node)
{
CGAL_Nef_polyhedron N = this->cgalevaluator.evaluateCGALMesh(node);
PolySet *ps = NULL;
- if (!N.empty()) ps = N.convertToPolyset();
+ if (!N.empty()) {
+ ps = N.convertToPolyset();
+ ps->convexity = node.convexity;
+ }
return ps;
}
@@ -392,7 +395,10 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const RenderNode &node)
{
CGAL_Nef_polyhedron N = this->cgalevaluator.evaluateCGALMesh(node);
PolySet *ps = NULL;
- if (!N.empty()) ps = N.convertToPolyset();
+ if (!N.empty()) {
+ ps = N.convertToPolyset();
+ ps->convexity = node.convexity;
+ }
return ps;
}
contact: Jan Huwald // Impressum