Improved sphere tesselation for low resolution spheres

stl_dim
Marius Kintel 2011-12-13 01:24:53 +01:00
parent a020b54dc2
commit 3f6a2f0fbb
4 changed files with 1 additions and 1 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 18 KiB