Skip to content

Commit

Permalink
Updated look-and-feel of triangulations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudomanifold committed May 6, 2024
1 parent bd2533c commit bf972ae
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions mantra/realize.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,17 @@ def plot(id, top_level_simplices, coordinates):
\begin{document}
\begin{tikzpicture}
\begin{axis}
\begin{axis}[
ticks = none,
unit vector ratio = 1 1 1,
xmin = 0,
xmax = 1,
ymin = 0,
ymax = 1,
zmin = 0,
zmax = 1,
grid = both,
]
\addplot3[
patch,
patch type = triangle,
Expand All @@ -130,9 +140,11 @@ def plot(id, top_level_simplices, coordinates):

print(r"""
},
draw = black,
fill = gray!50,
shader = flat,
draw = black,
fill = gray!50,
fill opacity = 0.5,
shader = flat,
z buffer = sort,
]
table[row sep=\\] {
""", file=f, end="")
Expand Down

0 comments on commit bf972ae

Please sign in to comment.