Skip to content

Instantly share code, notes, and snippets.

@jcchurch
Created June 30, 2012 20:58
Show Gist options
  • Save jcchurch/3025492 to your computer and use it in GitHub Desktop.
Save jcchurch/3025492 to your computer and use it in GitHub Desktop.
Demonstration of Triangle Circumcircle creation
>> TRI
TRI =
9 13 16
6 4 7
15 14 17
10 11 13
17 14 16
9 7 10
11 5 2
7 1 5
9 6 7
4 1 7
5 1 2
4 3 1
4 6 8
9 12 6
12 8 6
3 8 15
3 4 8
14 12 16
14 15 12
8 12 15
12 9 16
7 5 10
9 10 13
5 11 10
16 13 17
>> X
X =
62 87 102 103 113 122 130 145 156 162 165 170 197 200 205 207 232
>> Y
Y =
185 82 301 219 130 217 150 281 159 121 70 215 122 224 274 185 236
>> hold on
>> [CENTERS, RADII] = tricenters(TRI, X, Y);
>> trimesh(TRI, X, Y)
>> drawCircles(CENTERS, RADII); axis equal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment