• Home
  • Raw
  • Download

Lines Matching full:chain

31   // A chain represents either a polyline or a loop, depending
33 private class Chain { class in S2PolygonBuilderTest
37 public Chain(String str, boolean closed) { in Chain() method in S2PolygonBuilderTest.Chain
55 Chain[] chainsIn;
67 Chain[] chainsIn, in TestCase()
82 new TestCase(0, 0, 0.0, 10.0, new Chain[] {new Chain(null, false)}, new String[] {}, 0),
89 new Chain[] {new Chain("0:0, 0:10, 10:5", true), new Chain("0:0, 5:5", false),
90 new Chain("10:5, 20:7, 30:10, 40:15, 50:3, 60:-20", false)},
97 new Chain[] {new Chain("0:0, 0:10, 5:15, 10:10, 10:0", true),
98 new Chain("10:10, 12:12, 14:14, 16:16, 18:18", false),
99 new Chain("14:14, 14:16, 14:18, 14:20", false),
100 new Chain("14:18, 16:20, 18:22", false),
101 new Chain("18:12, 16:12, 14:12, 12:12", false),
102 new Chain("20:18, 18:16, 16:14, 14:12", false),
103 new Chain("20:14, 18:14, 16:14", false),
104 new Chain("5:15, 0:10", false)},
110 new Chain[] {new Chain("0:0, 0:10, 5:10, 10:10, 10:5, 10:0", true),
111 new Chain("0:10, 0:15, 5:15, 5:10", true),
112 new Chain("10:10, 5:10, 5:5, 10:5", true), },
119 new Chain[] {new Chain("0:0, 0:2, 0:4, 0:6, 1:5, 2:4, 3:3, 2:2, 1:1", true),
120 new Chain("0:2, 1:1, 1:3", true),
121 new Chain("0:4, 1:3, 1:5", true),
122 new Chain("1:3, 2:2, 2:4", true),
123 new Chain("0:0, 0:1", false),
124 new Chain("1:3, 5:7", false)},
137 new Chain[] {new Chain("0:0, 0:5, 5:5, 5:0", true),
138 new Chain("0:5, 0:10, 5:10, 5:5", true),
139 new Chain("5:0, 5:5, 10:5, 10:0", true),
140 new Chain("5:5, 5:10, 10:10, 10:5", true),
141 new Chain("0:10, 0:15, 0:20", false),
142 new Chain("20:0, 15:0, 10:0", false)},
152 new Chain[] {new Chain("0:0, 0:10, 10:10, 10:0", true),
153 new Chain("0:0, 1:9, 9:9, 9:1", true), new Chain("0:0, 2:8, 8:8, 8:2", true),
154 new Chain("0:0, 3:7, 7:7, 7:3", true), new Chain("0:0, 4:6, 6:6, 6:4", true)},
162 new Chain[] {new Chain("0:-20, -10:0, 0:20, 10:0", true),
163 new Chain("0:10, -10:0, 0:-10, 10:0", true),
164 new Chain("0:-10, -5:0, 0:10, 5:0", true), new Chain("0:5, -5:0, 0:-5, 5:0", true)},
175 new Chain[] {new Chain("0:-70, -70:0, 0:70, 70:0", true),
176 new Chain("0:-70, -60:0, 0:60, 60:0", true),
177 new Chain("0:-50, -60:0, 0:50, 50:0", true),
178 new Chain("0:-40, -40:0, 0:50, 40:0", true),
179 new Chain("0:-30, -30:0, 0:30, 40:0", true),
180 new Chain("0:-20, -20:0, 0:30, 20:0", true),
181 new Chain("0:-10, -20:0, 0:10, 10:0", true)},
196 new Chain[] {new Chain("0:0, 0:10, 5:5", true), new Chain("0:20, 0:30, 10:20", false),
197 new Chain("10:20, 10:30, 0:20", false)},
206 new Chain[] {new Chain("0:0, 0:10, 5:5", true), new Chain("2:2, 2:12, 7:7", true)},
221 new Chain[] {new Chain("-8:-8, -8:0", false),
222 new Chain("-8:1, -8:8", false),
223 new Chain("0:-9, -2:0", false),
224 new Chain("-1:1, 1:9", false),
225 new Chain("0:8, 2:2", false),
226 new Chain("0:-2, 1:-8", false),
227 new Chain("8:9, 9:1", false),
228 new Chain("9:0, 8:-9", false),
229 new Chain("9:-9, 0:-8", false),
230 new Chain("1:-9, -9:-9", false),
231 new Chain("8:0, 1:0", false),
232 new Chain("1:2, -8:0", false),
233 new Chain("-8:1, 1:-1", false),
234 new Chain("0:1, 8:1", false),
235 new Chain("-9:8, 1:8", false),
236 new Chain("0:9, 8:8", false)},
315 void addChain(Chain chain, in addChain() argument
322 // Transform the given edge chain to the frame (x,y,z), perturb each vertex in addChain()
326 getVertices(chain.str, x, y, z, maxPerturbation, vertices); in addChain()
327 if (chain.closed) { in addChain()
386 for (Chain chain : test.chainsIn) { in testBuilder()
387 addChain(chain, x, y, z, maxPerturbation, builder); in testBuilder()