public TriangleContainer clone(){
        TriangleContainer ret = new TriangleContainer();
        if (leftAnglePoint!=null) ret.leftAnglePoint = new Point3D(leftAnglePoint);
        if (topAnglePoint!=null) ret.topAnglePoint = new Point3D(topAnglePoint);
        if (rightAnglePoint!=null) ret.rightAnglePoint = new Point3D(rightAnglePoint);
        if (middleTrianglePoint!=null) ret.middleTrianglePoint = new Point3D(middleTrianglePoint);
        if (normal!=null) ret.normal = normal.clone();
        if (currentTriangleColor!=null) ret.currentTriangleColor = new Color(currentTriangleColor.getRGB());
        if (Kd!=null) ret.Kd = Kd.clone();
        if (Kf!=null) ret.Kf = Kf.clone();
        return ret;

    }