$begingroup$

I’ve a grid when it comes to two arrays:

factors: incorporates 3D coordinates of factors.

triangles: incorporates 3 indices per line for every triangle of the grid.

I want to interpolate the grid to make it smoother, i.e. add further factors and triangles in such a manner that the grid is smoother than it’s in the meanwhile. But I discovered that scipy.interpolate solely works if the xy-points are common, which isn’t the case right here. Any recommendations?

$endgroup$

$begingroup$

Measure every triangles sq. or non-smoothness, and if it’s not sufficiently small – then add a brand new vertex in its middle (Centroid) and reaplace the triangle with 3 smaller trangles utilizing that new vertex.

Update: Typically new Z worth is a median between different Z values, identical to with X and Y axis. If you will have an underlying top map – take values from it. Afterwards you could possibly apply a smoothing move – measure curvature between polys in every vertex and shift it accordingly to lower it.

$endgroup$

1

You should log in to reply this query.

Not the reply you are on the lookout for? Browse different questions tagged .