Mathematica 10 introduced lots of new geometry related functions, and one of these is SSSTriangle which creates a triangle graphic given the three side lengths. Is it possible however to label the side lengths to achieve something like this
Answer
You can use:
HighlightMesh[DiscretizeGraphics[SSSTriangle[3, 4, 5]],
Labeled[1, "Index"]]
Or,
HighlightMesh[
DiscretizeGraphics[SSSTriangle[3, 4, 5]], {Labeled[{1, 1}, 5],
Labeled[{1, 2}, 3], Labeled[{1, 3}, 4]}]
to get:
Comments
Post a Comment