Meta-Ball Rendering anyone?

Kouhia Juhana Krister jk87377 at korppi.tut.fi
Thu Feb 7 22:11:45 AEST 1991


In article <84263 at sgi.sgi.com> paul at manray.asd.sgi.com (Paul Haeberli) writes:

> *	anyone know how to make this program stop core dumping?

>    float sx, sy, op;
[deleted]
>    for(i=y_b; i<y_e; i++) {
>	sy = 200-i;

I'm not sure, but I would like to write sy = 200.0-(float)i; instead
of what you have.

>	printf("line %d\n",i);
>	for(j=x_b; j<x_e; j++) {
>	    sx = 320-j;

The same.

>trace()
>{

I haven't been in C-language courses yet, so, this is a wild guess:
Need you declare the type of the trace()? Have you an ANSI-C there?

If the compiler assume that trace() is int-type, that's ok.
But remember, C-language is for human - Fortran is what it is...
I would like to write 'int trace()'.

>	    if(tt<0)

tt<0.0

I'm sorry about deleting all other code and not telling where all
'errors' are.

Thank you for posting the code!

Juhana Kouhia
jk87377 at tut.fi



More information about the Comp.sys.sgi mailing list