PDA

View Full Version : Stumped! Why can't I move a vertex to this particular position I specified?


ceql
06-17-2009, 11:27 PM
I'm stumped on this one:

I have a *very* simple model (a single triangle face) where I'm trying to move a vertex to a very specific position, but it doesn't want to do it!!

Ok, so if I start a new scene, here is my model:

polyCreateFacet -ch on -tx 1 -s 1 -p 0 0 10 -p 0 10 0 -p 1 1 1;


I want to move vertex1 from to this exact position (0, 20.005, 0 ), so I move it:

xform -ws -t 0 20.005 0 polySurface1.vtx[1];


But yet when I check the position, it hasn't moved to the exact spot!! Not the 20.005 I wanted, but instead 20.004999 ??

xform -q -ws -t polySurface1.vtx[1];
// Result: 0 20.004999 0 //


Sure, I can move it to other positions and it works, but why not 20.005 ??

Is this some float issue? It doesn't seem like it's a particularly complex number or anything?
Any explanations would be appreciated; I'm baffled!!! :eek:

CGTalk Moderation
06-17-2009, 11:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.