summaryrefslogtreecommitdiff
path: root/src/primitives.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-13 00:24:53 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-13 00:24:53 (GMT)
commit3f6a2f0fbb084267171c3798718d7184f5892355 (patch)
tree68c335b8c5633dc1922b99747a39d9723ed4c079 /src/primitives.cc
parenta020b54dc2bb037e90bc93dbc81f44d26f35de52 (diff)
Improved sphere tesselation for low resolution spheres
Diffstat (limited to 'src/primitives.cc')
-rw-r--r--src/primitives.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives.cc b/src/primitives.cc
index 67e19c3..b3fa45f 100644
--- a/src/primitives.cc
+++ b/src/primitives.cc
@@ -327,7 +327,7 @@ PolySet *PrimitiveNode::evaluate_polyset(class PolySetEvaluator *) const
};
int fragments = get_fragments_from_r(r1, fn, fs, fa);
- int rings = fragments/2;
+ int rings = (fragments+1)/2;
// Uncomment the following three lines to enable experimental sphere tesselation
// if (rings % 2 == 0) rings++; // To ensure that the middle ring is at phi == 0 degrees
contact: Jan Huwald // Impressum