
Dodane 1 godzina 59 minuty 8 sekundy:
Da rade coś w tym fragmencie zmienić żeby to działało? Bo ja jeżeli chodzi i postprocesory Fusiona to zielony jestem.
// calculate the rotary axes directions
for (var i = 0; i < 3; ++i) {
// always work with angles between 0-360 degrees
endABC %= (Math.PI*2);
if (endABC < 0) {
endABC += Math.PI*2;
}
if (endABC >= Math.PI*2) {
endABC = 0;
}
// angles are the same
// apply the correct sign to the new angle so it is not output
if (!abcFormat.areDifferent(startABC, endABC)) {
endABC = signedABC;
}
// calculate the correct direction (sign) for the output angles
// A-0 will be converted to A-360
if (((endABC-startABC[i] < 0) && (endABC[i]-startABC[i] > -Math.PI)) ||
endABC[i]-startABC[i] > Math.PI) {
if (endABC[i] == 0) {
endABC[i] = -Math.PI*2;
} else {
endABC[i] = -endABC[i];
}
}
}