function setCameraParams( theaxes, cp )
%     fprintf( 1, 'setCameraParams pos [%f %f %f] tgt [%f %f %f] up [%f %f %f] ang %f\n', ...
%         cp.CameraPosition, cp.CameraTarget, cp.CameraUpVector, cp.CameraViewAngle );
    set( theaxes, ...
        'CameraPosition', cp.CameraPosition, ...
        'CameraTarget', cp.CameraTarget, ...
        'CameraUpVector', cp.CameraUpVector, ...
        'CameraViewAngle', cp.CameraViewAngle, ...
        ... % 'Projection', cp.Projection, ...
        'CameraPositionMode', 'manual', ...
        'CameraTargetMode', 'manual', ...
        'CameraUpVectorMode', 'manual', ...
        'CameraViewAngleMode', 'manual', ...
        'DataAspectRatio', [1 1 1], ...
        'DataAspectRatioMode', 'manual', ...
        'PlotBoxAspectRatio',[1 1 1], ...
        'PlotBoxAspectRatioMode', 'manual' );
%    fprintf( 1, 'CP [%.3f %.3f %.3f], CT [%.3f %.3f %.3f], CI [%.3f %.3f %.3f], CVA %.3f\n', ...
%        cp.CameraPosition, ...
%        cp.CameraTarget, ...
%        cp.CameraUpVector, ...
%        cp.CameraViewAngle );
end
