Monday, May 11, 2026

Smoothed polygons


The earlier submit constructed a triangular analog of the squircle, the unit circle within the p-norm the place p is usually round 4. The case p = 2 is a Euclidean circle and the restrict as p → ∞ is a Euclidean sq..

The earlier submit launched three capabilities Li(xy) such that the extent set of every perform

types a facet of a triangle. Then it launched a mushy penalty for every L being away 1, and the extent units of that penalty perform shaped the rounded triangles we had been searching for.

One other strategy could be to vary the L‘s barely in order that the edges are the degrees units Li(xy) = 0. The benefit to this formulation is that the product of three numbers is 0 if and provided that one of many numbers is zero. Meaning if we outline

f(x, y) = L_1(x, y) L_2(x, y) L_3(x, y)
then the set of factors

{(x, y) mid f(x,y) = c}

corresponds to the three strains when c = 0 and the extent units for small c > 0 are almost triangles. The extent units will likely be clean if the gradient is non-zero, i.e. c shouldn’t be zero.

This strategy shouldn’t be distinctive to triangles. You might create clean approximations any polygon by multiplying linear capabilities that outline the edges. Or you possibly can do one thing related with curved arcs.

If we outline our L’s by

begin{align*} L_1(x,y) &= y L_2(x,y) &= y - 2x - 2  L_3(x,y) &= 3y + x -3 end{align*}

then our curves would be the stage units of

f(x, y) = y(y - 2 x - 2)  (3 y + x - 3)

A number of stage units are proven beneath. The extent set for c = 0 is the straight strains.

Observe the extent units should not linked. If you happen to’re fascinated by approximate triangles, you need the elements which might be contained in the triangle.

 

The submit Smoothed polygons first appeared on John D. Cook dinner.

Related Articles

Latest Articles