function [ point, triangle ] = rectangular_object( m, n, width, height )
% 長方形の節点と三角形のデータ
    point = [];
    for j=1:n
        y = height*(j-1)/(n-1);
        for i=1:m
            x = width*(i-1)/(m-1);
            point = [point; x,y];
        end
    end

    triangle = [];
    for j=1:n-1
        for i=1:m-1
            triangle = [triangle; (j-1)*m+i, (j-1)*m+i+1, j*m+i];
        end
        for i=2:m
            triangle = [triangle; j*m+i, j*m+i-1, (j-1)*m+i];
        end
    end
end
