Vector Lerp =========== .. image:: https://user-images.githubusercontent.com/14288520/189449776-d0c7d727-c373-4103-89e0-2bbf890a0483.png :target: https://user-images.githubusercontent.com/14288520/189449776-d0c7d727-c373-4103-89e0-2bbf890a0483.png Functionality ------------- This node's primary function is to perform the linear interpolation between two Vectors, or streams of Vectors. If we have two Vectors A and B, and a factor 0.5, then the output of the node will be a Vector exactly half way on the imaginary finite-line between A and B. Values beyond 1.0 or lower than 0.0 will be extrapolated to beyond the line A-B. Inputs ------ Vector Evaluate needs two Vertex stream inputs (each containing 1 or more vertices). If one list is shorter than the other then the shortest stream is extended to match the length of the longer stream by repeating the last valid vector found in the shorter stream. Parameters ---------- +------------------+---------------+-------------+-------------------------------------------------+ | Param | Type | Default | Description | +==================+===============+=============+=================================================+ | mode | Enum | Lerp | **Lerp** will linear interpolate once between | | | | | | | | | | each corresponding Vector | | | | | | | | | | **Evaluate** will repeatedly interpolate | | | | | | | | | | between each member of vectors A and B for | | | | | | | | | | all items in Factor input (see example) | +------------------+---------------+-------------+-------------------------------------------------+ | **Vertex A** | Vector | None | first group of vertices (Stream) | +------------------+---------------+-------------+-------------------------------------------------+ | **Vertex B** | Vector | None | second group of vertices (Stream) | +------------------+---------------+-------------+-------------------------------------------------+ | **Factor** | Float | 0.50 | distance ratio between vertices A and B. | | | | | | | | | | values outside of the 0.0...1.0 range are | | | | | | | | | | extrapolated on the infinite line A, B | +------------------+---------------+-------------+-------------------------------------------------+ Outputs ------- The content of **EvPoint** depends on the current mode of the node, but it will always be a list (or multiple lists) of Vectors. Example of usage ---------------- **0.5** .. image:: https://cloud.githubusercontent.com/assets/619340/22403445/b6ffef46-e617-11e6-8d84-f47295be5230.png :target: https://cloud.githubusercontent.com/assets/619340/22403445/b6ffef46-e617-11e6-8d84-f47295be5230.png * Vector-> :doc:`Vector In ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` **-0.5** .. image:: https://cloud.githubusercontent.com/assets/619340/22403447/e18ff24c-e617-11e6-82cd-abd28c22a517.png :target: https://cloud.githubusercontent.com/assets/619340/22403447/e18ff24c-e617-11e6-82cd-abd28c22a517.png * Vector-> :doc:`Vector In ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` **1.5** .. image:: https://cloud.githubusercontent.com/assets/619340/22403454/fc9b6030-e617-11e6-9f18-822fb0ab5a50.png :target: https://cloud.githubusercontent.com/assets/619340/22403454/fc9b6030-e617-11e6-9f18-822fb0ab5a50.png * Vector-> :doc:`Vector In ` * List->List Main-> :doc:`List Join ` * Viz-> :doc:`Viewer Draw ` **range float `0.0 ... 1.0 n=10` Evaluate** .. image:: https://cloud.githubusercontent.com/assets/619340/22403473/72919a98-e618-11e6-8ada-955595368766.png :target: https://cloud.githubusercontent.com/assets/619340/22403473/72919a98-e618-11e6-8ada-955595368766.png * Number-> :doc:`Number Range ` * Vector-> :doc:`Vector In ` * Viz-> :doc:`Viewer Draw ` **range float `0.0 ... 1.0 n=10` Lerp** .. image:: https://cloud.githubusercontent.com/assets/619340/22403494/ec8b0fd2-e618-11e6-8830-96b01f31bcd4.png :target: https://cloud.githubusercontent.com/assets/619340/22403494/ec8b0fd2-e618-11e6-8830-96b01f31bcd4.png * Number-> :doc:`Number Range ` * Vector-> :doc:`Vector In ` * Viz-> :doc:`Viewer Draw ` **Lerp interpolation with noise** .. image:: https://user-images.githubusercontent.com/14288520/189450649-f1f3bb7a-f9e3-4968-9985-d1d641b82132.png :target: https://user-images.githubusercontent.com/14288520/189450649-f1f3bb7a-f9e3-4968-9985-d1d641b82132.png * Generator-> :doc:`Circle ` * Vector-> :doc:`Vector Noise ` * A*SCALAR: Vector-> :doc:`Vector Math ` * Matrix-> :doc:`Matrix In ` * Viz-> :doc:`Viewer Draw ` .. image:: https://user-images.githubusercontent.com/14288520/189450678-2f4e6fbd-0d48-4abf-be47-b7d7c8091267.gif :target: https://user-images.githubusercontent.com/14288520/189450678-2f4e6fbd-0d48-4abf-be47-b7d7c8091267.gif The development thread also has examples: https://github.com/nortikin/sverchok/issues/1098 See also -------- * Number-> :doc:`Mix Inputs ` * Vector-> :doc:`Vector Interpolation ` * Matrix-> :doc:`Matrix Interpolation `