History

removed addRandomSphere() which was dead code

ZappoMan committed 13 years ago

Commit ddf49ff1 parent f1425211 file · +0 −19Browse files

Showing the changes to interface/src/main.cpp (1 of 1 file). Show all

Unified · Split

interface/src/main.cpp+0−19
@@ -1433,25 +1433,6 @@ void setupPaintingVoxel() { · 1432 unmodified lines
1433 shiftPaintingColor();1433 shiftPaintingColor();
1434}1434}
1435 1435
1436void addRandomSphere(bool wantColorRandomizer)
1437{
1438 float r = randFloatInRange(0.05,0.1);
1439 float xc = randFloatInRange(r,(1-r));
1440 float yc = randFloatInRange(r,(1-r));
1441 float zc = randFloatInRange(r,(1-r));
1442 float s = 0.001; // size of voxels to make up surface of sphere
1443 bool solid = false;
1444
1445 printLog("random sphere\n");
1446 printLog("radius=%f\n",r);
1447 printLog("xc=%f\n",xc);
1448 printLog("yc=%f\n",yc);
1449 printLog("zc=%f\n",zc);
1450
1451 voxels.createSphere(r,xc,yc,zc,s,solid,wantColorRandomizer);
1452}
1453
1454
1455const float KEYBOARD_YAW_RATE = 0.8;1436const float KEYBOARD_YAW_RATE = 0.8;
1456const float KEYBOARD_PITCH_RATE = 0.6;1437const float KEYBOARD_PITCH_RATE = 0.6;
1457const float KEYBOARD_STRAFE_RATE = 0.03;1438const float KEYBOARD_STRAFE_RATE = 0.03;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t