Rounding Errors in primitives?

RE: Rounding Errors in primitives?
#20
(2021-05-06, 18:48)Travis Cobbs Wrote: I'm pretty sure that 1-4ring5.dat is wrong.

But how can we figure out if it is wrong or not? I do not have access to the source code of PrimGen2, and I cannot find any documentation for how the points are computed.

All I can do for now is to relax the comparisons to allow large errors.

Not even allowing an error of 0.0001 is sufficient, as 1-4ring7.dat has the following quad:

4 16 8 0 0 7.391 0 3.0614 6.4672 0 2.6788 7 0 0

But using the same computation as mentioned above, I get the following where differences over 0.0001 are highlighted:

4 16 8 0 0 7.3912 0 3.0616 6.4673 0 2.6789 7 0 0

Full transparency. The points of the quad are computed exactly as before by scaling the points of 1-4edge.dat in Javascript:

'1 0 0 0.9239 0 0.3827 0.7071 0 0.7071 0.3827 0 0.9239 0 0 1'.split(' ').map(x => 7*x).join(' ');

'1 0 0 0.9239 0 0.3827 0.7071 0 0.7071 0.3827 0 0.9239 0 0 1'.split(' ').map(x => 8*x).join(' ');
« Next Oldest | Next Newest »

 Messages In This Thread Rounding Errors in primitives? - by Tery Hamer - 2021-03-25, 18:42 RE: Rounding Errors in primitives? - by Travis Cobbs - 2021-03-25, 19:43 RE: Rounding Errors in primitives? - by Philippe Hurbain - 2021-03-25, 19:45 RE: Rounding Errors in primitives? - by Tery Hamer - 2021-03-25, 23:34 RE: Rounding Errors in primitives? - by Chris Dee - 2021-03-26, 12:17 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-04-29, 19:59 RE: Rounding Errors in primitives? - by Travis Cobbs - 2021-04-29, 20:14 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-04-29, 20:43 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-04-29, 20:48 RE: Rounding Errors in primitives? - by Magnus Forsberg - 2021-04-29, 20:54 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-04-29, 21:44 RE: Rounding Errors in primitives? - by Magnus Forsberg - 2021-05-02, 19:45 RE: Rounding Errors in primitives? - by Magnus Forsberg - 2021-05-03, 15:57 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-05-05, 8:33 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-05-05, 8:50 RE: Rounding Errors in primitives? - by Magnus Forsberg - 2021-05-05, 15:29 RE: Rounding Errors in primitives? - by Orion Pobursky - 2021-05-06, 18:58 RE: Rounding Errors in primitives? - by Travis Cobbs - 2021-05-06, 18:48 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-06-06, 11:49 RE: Rounding Errors in primitives? - by Travis Cobbs - 2021-06-06, 23:16 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-06-10, 17:42 RE: Rounding Errors in primitives? - by Orion Pobursky - 2021-06-10, 17:59 RE: Rounding Errors in primitives? - by Lasse Deleuran - 2021-06-11, 8:02 RE: Rounding Errors in primitives? - by Travis Cobbs - 2021-04-29, 21:58

Forum Jump:

Users browsing this thread: 1 Guest(s)