Allows to interpolate an attribute (scalar, vector3 or matrix33) from vertices to triangles, or from triangles to vertices
const s = new arch.Surface(...)const displ = [...] // values at verticesconst I = new arch.SurfaceAttributeInterpolation(s)const displAtT = I.fromVerticesToTriangles(displ)
const s = new arch.Surface(...)const displ = s.displ(true, true) // displ at Tconst I = new arch.SurfaceAttributeInterpolation(s)const displAtV = I.fromTrianglesToVertices(displ)
Create a SurfaceAttributeInterpolation
Interpolate an attribute from triangles to vertices.
The attribute to interpolate. Its size should be the same as the number of triangles for teh surface
The interpolated attribute for which the size is the number of vertices for the surface
Interpolate an attribute from vertices to triangles.
The attribute to interpolate. Its size should be the same as the number of vertices for teh surface
The interpolated attribute for which the size is the number of triangles for teh surface
Allows to interpolate an attribute (scalar, vector3 or matrix33) from vertices to triangles, or from triangles to vertices