1 Random notes for Rambetter, don't expect to understand this:
2 ============================================================
4 Brush 0 is the problem.
6 Side 0 is the problem (under surf tri).
7 Side 1 is the +y 4-face.
8 Side 2 is the -x 4-face.
9 Side 3 is the -y 4-face.
12 (6144, 16122) -> (6784, 16241)
13 x "climb" of side 1 is 6784 - 6144 = 640.
14 y "climb" of side 1 is 16241 - 16122 = 119.
16 x/y "climb rate" of side 1 is 640 / 119 = 5.378151261.
18 After clipping side 0 against side 1, we get
20 **** (-262144, -33762.8125) -> (262144, 63722)
22 The slope of that is (262144 + 262144) / (63722 + 33762.8125) = 5.378150571.
24 (-262144, y) -> (6784, 16241)
25 So (6784 + 262144) / (16241 - y) = 640 / 119
26 So y = 16241 - ((119 * (6784 + 262144)) / 640) = -33762.8
28 (6144, 16122) -> (262144, y)
29 So (262144 - 6144) / (y - 16122) = 640 / 119
30 So y = 16122 + ((119 * (262144 - 6144)) / 640) = 63722
32 After clipping side 0 against side 1 should have
34 **** (-262144, -33762.8) -> (262144, 63722)
37 Random notes for Rambetter, don't expect to understand this:
38 ============================================================
40 Brush 0 is the problem.
42 Side 0 is the problem (under surf tri).
43 Side 1 is the +y 4-face.
44 Side 2 is the -x 4-face.
45 Side 3 is the -y 4-face.
48 (6144, 16122) -> (6784, 16241)
49 x "climb" of side 1 is 6784 - 6144 = 640.
50 y "climb" of side 1 is 16241 - 16122 = 119.
52 x/y "climb rate" of side 1 is 640 / 119 = 5.378151261.
54 After clipping side 0 against side 1, we get
56 **** (-262144, -33762.8125) -> (262144, 63722)
58 The slope of that is (262144 + 262144) / (63722 + 33762.8125) = 5.378150571.
60 (-262144, y) -> (6784, 16241)
61 So (6784 + 262144) / (16241 - y) = 640 / 119
62 So y = 16241 - ((119 * (6784 + 262144)) / 640) = -33762.8
64 (6144, 16122) -> (262144, y)
65 So (262144 - 6144) / (y - 16122) = 640 / 119
66 So y = 16122 + ((119 * (262144 - 6144)) / 640) = 63722
68 After clipping side 0 against side 1 should have
70 **** (-262144, -33762.8) -> (262144, 63722)