bool RotateBodyByAxis(int n_obj,tag_t rotaBody[], double rotateAxis[3], double rotateAngle, double rotaOri[3], int moveOrCopy)
{
double romatrixb[12];
int rotstatus = 0;
int move_cope = moveOrCopy;
int dest_layer = 0;
int trace_curves = 1;
int status = 0;
tag_t moveTag = NULL_TAG;
tag_t trace_curve_group = NULL_TAG;
if (rotateAngle > 0)
{
FTN(uf5945)(rotaOri, rotateAxis, &rotateAngle, romatrixb, &rotstatus);
FTN(uf5947)(romatrixb, rotaBody, &n_obj, &move_cope, &dest_layer, &trace_curves, &moveTag, &trace_curve_group, &status);
}
if (status == 0)
{
return true;
}
else
{
return false;
}
return true;
}