Skip to content

Commit 005d52d

Browse files
committed
topology of red sea
1 parent 0ac40ee commit 005d52d

5 files changed

+34
-54
lines changed

AE_project.aep

1.92 MB
Binary file not shown.

notes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ Discussion:
2424
Set resolution = 0, got forever.mat
2525
What causes the sin ripple?
2626
Show 2D_scatter_T/tiny_island/41
27+
topologyOfRedSea

renderQueue.m

-54
Original file line numberDiff line numberDiff line change
@@ -6,57 +6,3 @@
66
mkdir(VIDEO_DIR);
77
VIDEO_PATH = [VIDEO_DIR '/' 'right_%d.png']
88
rollAndSaveVideo();
9-
10-
initProgram();
11-
loadDice();
12-
x = 1.5; y = 4;
13-
initDiceFromXY();
14-
VIDEO_DIR = 'video/red_sea/mid';%
15-
mkdir(VIDEO_DIR);
16-
VIDEO_PATH = [VIDEO_DIR '/' 'mid_%d.png']
17-
rollAndSaveVideo();
18-
19-
initProgram();
20-
loadDice();
21-
x = 1.2; y = 4.4;
22-
initDiceFromXY();
23-
VIDEO_DIR = 'video/red_sea/left';%
24-
mkdir(VIDEO_DIR);
25-
VIDEO_PATH = [VIDEO_DIR '/' 'left_%d.png']
26-
rollAndSaveVideo();
27-
28-
initProgram();
29-
loadDice();
30-
x = 0; y = 0;
31-
initDiceFromXY();
32-
VIDEO_DIR = 'video/zoom_out/x0y0';%
33-
mkdir(VIDEO_DIR);
34-
VIDEO_PATH = [VIDEO_DIR '/' 'x0y0_%d.png']
35-
rollAndSaveVideo();
36-
37-
initProgram();
38-
loadDice();
39-
x = 1; y = 0;
40-
initDiceFromXY();
41-
VIDEO_DIR = 'video/zoom_out/x1y0';%
42-
mkdir(VIDEO_DIR);
43-
VIDEO_PATH = [VIDEO_DIR '/' 'x1y0_%d.png']
44-
rollAndSaveVideo();
45-
46-
initProgram();
47-
loadDice();
48-
x = 0; y = 1;
49-
initDiceFromXY();
50-
VIDEO_DIR = 'video/zoom_out/x0y1';%
51-
mkdir(VIDEO_DIR);
52-
VIDEO_PATH = [VIDEO_DIR '/' 'x0y1_%d.png']
53-
rollAndSaveVideo();
54-
55-
initProgram();
56-
loadDice();
57-
x = 1; y = 1;
58-
initDiceFromXY();
59-
VIDEO_DIR = 'video/zoom_out/x1y1';%
60-
mkdir(VIDEO_DIR);
61-
VIDEO_PATH = [VIDEO_DIR '/' 'x1y1_%d.png']
62-
rollAndSaveVideo();

rollAndTopology.m

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
% Examine the ground contact information for a roll.
2+
3+
ground_contact_history = false(N_POINTS, 1);
4+
step();
5+
T = 1;
6+
while totalEnergy(point_v, absolute_X_3, press_force, - GRAVITY(3), theoratical_energy_zero) > confirm_destiny_energy
7+
step();
8+
T = T + 1;
9+
now_ground_contact = absolute_X_3 <= 0;
10+
if any(ground_contact_history(:, end) ~= now_ground_contact)
11+
ground_contact_history(:, end + 1) = now_ground_contact;
12+
end
13+
end
14+
roll_result = whichFace(X, FACE_LOOKUP);

topologyOfRedSea.m

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
initProgram();
2+
3+
loadDice();
4+
x = 1.65; y = 3.9;
5+
initDiceFromXY();
6+
rollAndTopology();
7+
RR = ground_contact_history;
8+
9+
loadDice();
10+
x = 1.5; y = 4;
11+
initDiceFromXY();
12+
rollAndTopology();
13+
MM = ground_contact_history;
14+
15+
loadDice();
16+
x = 1.2; y = 4.4;
17+
initDiceFromXY();
18+
rollAndTopology();
19+
LL = ground_contact_history;

0 commit comments

Comments
 (0)