comparison +parametrization/Ti.m @ 592:4422c4476650 feature/utux2D

Merge with feature/grids
author Martin Almquist <martin.almquist@it.uu.se>
date Mon, 11 Sep 2017 14:17:15 +0200
parents 433ccb5d2f0f
children d98d9c79573f
comparison
equal deleted inserted replaced
591:39554f2de783 592:4422c4476650
180 g4 = parametrization.Curve.line(p4,p1); 180 g4 = parametrization.Curve.line(p4,p1);
181 181
182 obj = parametrization.Ti(g1,g2,g3,g4); 182 obj = parametrization.Ti(g1,g2,g3,g4);
183 end 183 end
184 184
185 function obj = rectangle(a, b)
186 p1 = a;
187 p2 = [b(1), a(2)];
188 p3 = b;
189 p4 = [a(1), b(2)];
190
191 obj = parametrization.Ti.points(p1,p2,p3,p4);
192 end
193
185 % Like the constructor but allows inputing line curves as 2-cell arrays: 194 % Like the constructor but allows inputing line curves as 2-cell arrays:
186 % example: parametrization.Ti.linesAndCurves(g1, g2, {a, b} g4) 195 % example: parametrization.Ti.linesAndCurves(g1, g2, {a, b} g4)
187 function obj = linesAndCurves(C1, C2, C3, C4) 196 function obj = linesAndCurves(C1, C2, C3, C4)
188 C = {C1, C2, C3, C4}; 197 C = {C1, C2, C3, C4};
189 c = cell(1,4); 198 c = cell(1,4);