3 votes
Accepted

Gradient descent (Not ML) on arbitrary meshes

Maybe you can find a heuristic to detect when it gets stuck (e.g. gradient magnitude is too small, or it stays on the same triangle or returns to a recently visited triangle too many times in a row, ...
Nathan Reed's user avatar
2 votes
Accepted

Determining the function of a radial gradient fill with midpoint

It seems to be just a scalar Bezier function to me, where the second coefficient is determined by $a$ $$(1-x)^2 + a 2 (1-x) x,$$ here $a \in [0, 1]$ is a normalized percentage. This gets you pretty ...
Reynolds's user avatar
  • 1,238
1 vote
Accepted

How to generate a gradient to the edges of a triangle in GLSL?

You can calculate the perpendicular distance from each edge, and then take the minimum of the three edges. This is related to barycentric coordinates (which are normalized edge distances). If you ...
Nathan Reed's user avatar
1 vote
Accepted

Calculating the gradient of a tetrahedral mesh

Assuming a value is assigned to each vertex of the mesh and we use purely linear interpolation, then there will be a constant gradient vector within each tetrahedron. Linear interpolation can be ...
Nathan Reed's user avatar
1 vote

Is there a tool capable of drawing a triangular linear gradient fill?

Most 2D graphics programs are able to do linear gradients with arbitrary orientations. If you don't mind a little work, it is possible to set this up to imitate the 2D linear interpolation across a ...
Nathan Reed's user avatar
1 vote

Improve accuracy of mesh gradient?

I dont know what you are using to calculate the Cotan, the accuracy should different on the implementation. But you could do more accurate calculations yourself by approximating the values using ...
the1bird's user avatar
  • 126
1 vote
Accepted

Mis understanding of the Heat Method

When solving the equation $(M - tL_C)u = \delta_\gamma$, you effectively have to invert the operator: $$ u = (M - tL_C)^{-1} \delta_\gamma $$ Note that while the individual operators $M$ and $L_C$ are ...
Nathan Reed's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible