1.同心圆
fd = @(p) ddiff(dcircle(p,0,0,1),dcircle(p,0,0,0.4));
fh1 = @(p) sqrt(p(:,1).^2+p(:,2).^2)-0.3;
fh2 = @(p) 1.2-sqrt(p(:,1).^2+p(:,2).^2)
fh = @(p) min(fh1
1.同心圆
fd = @(p) ddiff(dcircle(p,0,0,1),dcircle(p,0,0,0.4));
fh1 = @(p) sqrt(p(:,1).^2+p(:,2).^2)-0.3;
fh2 = @(p) 1.2-sqrt(p(:,1).^2+p(:,2).^2)
fh = @(p) min(fh1