List<Double> radius = new ArrayList<Double>();
List<Vector3d> tangents = new ArrayList<Vector3d>();
vertices.add(new Point3d(-length*0.5, 0.0, 0.0));
- vertices.add(new Point3d( length*0.5, offset, 0.0));
+ vertices.add(new Point3d( length*0.5, -offset, 0.0));
radius.add(this.radius);
radius.add(this.radius2);
tangents.add(new Vector3d(1.0,0.0,0.0));
q = getControlPointOrientationQuat(dir, 0.0);
else
q = getControlPointOrientationQuat(dir, rotationAngle);
- Vector3d v = new Vector3d(0.0,offset,0.0);
+ Vector3d v = new Vector3d(0.0,-offset,0.0);
Vector3d offset = new Vector3d();
MathTools.rotate(q, v, offset);
return offset;
q = getControlPointOrientationQuat(0.0);
else
q = getControlPointOrientationQuat(rotationAngle);
- Vector3d v = new Vector3d(0.0,offset,0.0);
+ Vector3d v = new Vector3d(0.0,-offset,0.0);
Vector3d offset = new Vector3d();
MathTools.rotate(q, v, offset);
return offset;