mirror of https://github.com/vitalif/openscad
Improved sphere tesselation for low resolution spheres
parent
a020b54dc2
commit
3f6a2f0fbb
|
@ -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 |
Loading…
Reference in New Issue