diff options
| author | Marius Kintel <marius@kintel.net> | 2011-12-13 00:24:53 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2011-12-13 00:24:53 (GMT) | 
| commit | 3f6a2f0fbb084267171c3798718d7184f5892355 (patch) | |
| tree | 68c335b8c5633dc1922b99747a39d9723ed4c079 /src | |
| parent | a020b54dc2bb037e90bc93dbc81f44d26f35de52 (diff) | |
Improved sphere tesselation for low resolution spheres
Diffstat (limited to 'src')
| -rw-r--r-- | src/primitives.cc | 2 | 
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 | 
