THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2012 at 13:27, xxxxxxxx wrote:
not sure what is going wrong with the python examples, but the logic is to remap the three axis
of the input vector on the output vector. from the c++ sdk rounded tube example :
static Vector SwapPoint(const Vector &p, LONG axis)
{
switch (axis)
{
case 0: return Vector(p.y,-p.x,p.z); break;
case 1: return Vector(-p.y,p.x,p.z); break;
case 3: return Vector(-p.x,-p.y,p.z); break;
case 4: return Vector(p.x,-p.z,p.y); break;
case 5: return Vector(p.x,p.z,-p.y); break;
}
return p;
}
i haven't used splines very much yet, so i can't say anything spcefic on the splineplanes, but i
guess the general idea is the same. you might have to rotate some tangents to.