General Algorithm for Primitive Calculation?


General Algorithm for Primitive Calculation?
#1
Question 
Hi!

I just want to know if there exists an open source algorithm for the primitive generation...?

Okay... for rings and cones I have to round the sinus/cosinus to 4 decimal places (and then multiply it with a radius)...
...and round the result again to four dp (how should I round?)...

I know very well how to generate a (torus) primitive... but what are the precise numerical requirements for this task?
Is there any formal description which will lead to the same results on all machines?

What are the specified rounding modes?

Can I write a primitive generator program without a specification?

Currently, I am doing reverse engineering with PrimGen2...
...it seems to be (nearly) impossible to clone.

I make very good progress, but from time to time IEEE 754 pushes me back to the ground.
The mechanics of PrimGen2 are very clear to me and I know that .NET uses a different Math.Round() function than Java...

...it is not easy to finish the implementation soon.
I need some clever advice.

Leg godt


Nils
Reply
« Next Oldest | Next Newest »



Messages In This Thread
General Algorithm for Primitive Calculation? - by Nils Schmidt - 2016-08-10, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)