Skip to content

Commit 8202822

Browse files
authored
Wrap matlab code in code blocks so it's easier to interpret in test/helper_functions.jl (#167)
1 parent 2b3314e commit 8202822

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/helper_functions.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,7 @@ the relationship between the convex hull of the lifting map and the Delaunay tri
15311531
15321532
For computing these triangulations, we first define the MATLAB functions:
15331533
1534+
```matlab
15341535
function [cells, lifted] = LiftingMap(points,weights)
15351536
num = size(points, 1);
15361537
lifted = zeros(num, 3);
@@ -1552,9 +1553,9 @@ For computing these triangulations, we first define the MATLAB functions:
15521553
% and the triangles are in res((res(1)+1):end, :).
15531554
writematrix(res, fullfile(pwd, 'tempmats', strcat(string(n), '.txt')));
15541555
end
1555-
1556+
```
15561557
Then, for the random triangulations, we use:
1557-
1558+
```matlab
15581559
digits(16)
15591560
rng(123)
15601561
ctr = 1;
@@ -1585,9 +1586,9 @@ Then, for the random triangulations, we use:
15851586
ctr = ctr + 1;
15861587
end
15871588
end
1588-
1589+
```
15891590
The triangulations of convex polygons are computed with the code:
1590-
1591+
```matlab
15911592
digits(16)
15921593
rng(123)
15931594
ctr = 79;
@@ -1634,6 +1635,7 @@ The triangulations of convex polygons are computed with the code:
16341635
ctr = ctr + 1;
16351636
end
16361637
end
1638+
```
16371639
=#
16381640
const WGT_DIR = joinpath(dirname(dirname(pathof(DelaunayTriangulation))), "test", "triangulation", "weighted_delaunay_mats")
16391641
const NUM_WEGT = length(readdir(WGT_DIR))

0 commit comments

Comments
 (0)