Options
All
  • Public
  • Public/Protected
  • All
Menu
brief

Allows to interpolate an attribute (scalar, vector3 or matrix33) from vertices to triangles, or from triangles to vertices

example
const s = new arch.Surface(...)
const displ = [...] // values at vertices

const I = new arch.SurfaceAttributeInterpolation(s)
const displAtT = I.fromVerticesToTriangles(displ)
example
const s = new arch.Surface(...)
const displ = s.displ(true, true) // displ at T

const I = new arch.SurfaceAttributeInterpolation(s)
const displAtV = I.fromTrianglesToVertices(displ)

Hierarchy

  • SurfaceAttributeInterpolation

Index

Constructors

Methods

  • Interpolate an attribute from triangles to vertices.

    Parameters

    • attribute: Vectord

      The attribute to interpolate. Its size should be the same as the number of triangles for teh surface

    Returns Vectord

    The interpolated attribute for which the size is the number of vertices for the surface

  • Interpolate an attribute from vertices to triangles.

    Parameters

    • attribute: Vectord

      The attribute to interpolate. Its size should be the same as the number of vertices for teh surface

    Returns Vectord

    The interpolated attribute for which the size is the number of triangles for teh surface