LeastSquaresPlot

From K-3D

Jump to: navigation, search

Description

Aproximates points with a surface given a set of equations.
Plugin Status:Experimental
Categories:All Plugins, Experimental Plugins, Math Plugins

Metadata

Name Value

Properties

Label Description Type Script Name
Output Mesh Output mesh k3d::mesh* output_mesh
Surface Material Surface material k3d::inode* material
Input Mesh Points to approximate k3d::mesh* input_mesh
Rename u v Renames the u,v variables to suit the variables from your function. Could be x,y for example k3d::string_t uv_rename
Columns Column number k3d::int32_t columns
Rows Row number k3d::int32_t rows
Width Grid width k3d::double_t width
Height Grid height k3d::double_t height
Coefficients Output Values of the coficients k3d::string_t output_coefficients


Usage

This a plugin approximates set of points given by the Input Mesh property.

In order to approximate a specific set of point you must create that set on another object and connect this object Ouput Mesh (probably from the Instance of this object) to the Input Mesh of this plugin.
Also you must add the functions you would like to use in the approximation. To do so, add a new user property clicking on the + button on the properties panel.
Add a String (second dropdown menu) from the Generic Property (first dropdown menu).
You may also add other variables like in the SurfacePlot plugin.

Here is a screenshot of a resulting surface. Of your you may animate it so see how it approximates the points. Image:LeastSquaresPlot Screenshot.png Beware: In some cases you may generate an unsolvable linear system. Then the surface won't be updated. Check on the Help->Open Log Window... window to see if you had any error.
You will see a message like in the image above (although in this case it doesn't correspond to the displayed surface)