Hi
I've got some code that, from time to time, produces an error by the creation of a 0,0,0,0,0,0..... frame.
Basically I'm using this to generate grid type waypoints around my Flange tool for easy setups..
Code is encapsulated in a class which has base as a construction variable:
Rad2 is an instance of the class:
circf1= Rad2.displace(layerThick*layer+diagoffset ,-(rectLength+circheight/2) ,0).copyWithRedundancy();
Frame circf1 sometimes returns as 0,0,0,0,...
displace method looks like this:
public Frame displace( double x, double y, double z){
Transformation trafon = Transformation.ofTranslation(x, y, z);
Frame returnFrame
= new Frame(
new Frame(this.base.copyWithRedundancy().transform(base,trafon)));
//System.out.println("displace x:"+x+" y:"+y+" z:"+z);
return returnFrame;
}//displace
It tends to happen when I displace with small numbers e.g 0.2[mm]
any ideas anyone?
thanks