summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/teapot.asy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/examples/teapot.asy')
-rw-r--r--graphics/asymptote/examples/teapot.asy4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/asymptote/examples/teapot.asy b/graphics/asymptote/examples/teapot.asy
index 847ffd234d..7a12cc3a66 100644
--- a/graphics/asymptote/examples/teapot.asy
+++ b/graphics/asymptote/examples/teapot.asy
@@ -202,6 +202,7 @@ triple[][][] Q0={
}
};
+
surface regularize(triple[][] P, real fraction=0.02)
{
triple[][][] B=hsplit(P,fraction);
@@ -215,7 +216,8 @@ surface regularize(triple[][] P, real fraction=0.02)
surface S=surface(Q);
for(triple[][] q : Q0)
- S.append(regularize(q));
+ // S.append(regularize(q));
+ S.append(surface(patch(q)));
pen color;
real metallic;