Rounding Errors in primitives?

RE: Rounding Errors in primitives?
(2021-03-25, 18:42)Tery Hamer Wrote: For Rings, Cones the vector points for higher values of radii are a multiple of the cos/sin values of the segment angles times the radius. However, it would appear that the rounding is carried out on the cos/sin for the base radius (1, as used for Circle, Disc, etc), and <then> multiplied. That would be a No-No.  For the base and lower radii, the error may be only 0.0001 in a few cases.  But for the higher radii, these rounding errors mount up and impact the third decimal position.
Hi Teri,
Welcome here!
Very good observation... and actually, this is intended. For historical reasons, rings and cones are not normalized. Rounding is done this way for ring and cones (ok, seems weird at first sight!!!) so their vertices match exactly those of scaled normalized primitives (edges, cylis, discs and so on...)
« Next Oldest | Next Newest »

Messages In This Thread
RE: Rounding Errors in primitives? - by Philippe Hurbain - 2021-03-25, 19:45

Forum Jump:

Users browsing this thread: 1 Guest(s)