17 Nisan 2009 Cuma

distance of surface to the curve

Kristoffer you explained before but i forgot and could not figure out how to offset the surface's starting line from the curve. Although I remember it was stg to do with the vertex factor of the quadstrip, my modifications didn't work. Could you please show again with a comparison of the process sentence ,an original and a modified, ? Thank you.

1 yorum:

  1. we want to replace the x,y,z from bezierPoint with one given along the tangent at that point.

    so something like this:

    vertex(x,y,z);
    vertex(x+tx,y+ty,z+tz);

    changes to

    vertex(x+r*tx,y+r*ty,z+r*tz);
    vertex(x+s*tx,y+s*ty,z+s*tz);

    where r and s are floats, different from eachother (they do not have to be constant along the curve either!)

    (the previous case corresponded to r=0, s=1)

    remember to change also in the saveOBJ code to get the same when exporting... (shouldn't have been neccessary if i would have made the code better.. sorry about that)

    YanıtlaSil