/// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMatrixParameter("LaplacianMatrix", "L", "The Laplacian matrix (symmetric) for the eigenvalue problem", GH_ParamAccess.item);
     pManager.AddIntegerParameter("EigenCount", "n", "The number of eigenvalues/vectors to extract. By default all eigenvalues/vectors are output", GH_ParamAccess.item);
     pManager.AddBooleanParameter("RunCalculation", "run", "If true, run calculation", GH_ParamAccess.item);
     pManager[1].Optional = true;
 }
Esempio n. 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMesh", "PMesh", "The input PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddMatrixParameter("EigenvectorsMatrix", "v", "The eigenvectors matrix", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "n", "The vertex normals to specify the displacement directions", GH_ParamAccess.list);
     pManager.AddNumberParameter("Weights", "w", "A list of weights used for the linear combination", GH_ParamAccess.list);
     pManager.AddNumberParameter("ScaleFactor", "scale", "The scale factor of the displacements", GH_ParamAccess.item, 1.0);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMesh", "PMesh", "The PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddMatrixParameter("Eigenvectors", "v", "The eigenvectors to display", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RowCount", "rowCount", "The number of modes to be displayed in a row", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("IndexHighlight", "highlight", "Index to highlight by rectangle", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("ColourOption", "cOption", "0: grey scale, 1: absolute grey scale", GH_ParamAccess.item, 0);
 }
Esempio n. 4
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMesh", "PMesh", "The PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddMatrixParameter("Eigenvectors", "v", "The eigenvectors to display", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RowCount", "rowCount", "The number of modes to be displayed in a row", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Spacing", "spacing", "The spacing between meshes as a multiplier of the width/height", GH_ParamAccess.item, 0.1);
     pManager.AddIntegerParameter("ColourOption", "cOption", "0: grey scale, 1: absolute grey scale", GH_ParamAccess.item, 0);
 }
Esempio n. 5
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMeshInitial", "PMeshInit", "The initial PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("TargetSurface", "targetSrf", "The target surface", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "n", "The vertex normals", GH_ParamAccess.list);
     pManager.AddMatrixParameter("EigenvectorMatrix", "v", "The eigenvector matrix of the initial PlanktonMesh", GH_ParamAccess.item);
     pManager.AddIntegerParameter("EigsCount", "k", "The number of eigenvectors to be used for back-calculation", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Option", "opt", "0: k most significant eigenvectors, 1: first k eigenvectors", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("PresetSliders", "preset", "If true, the sliders named (w0, w1, ..., wn, scale) are preset to the calculated values", GH_ParamAccess.item, false);
 }
Esempio n. 6
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("pMeshInit", "pMeshInit", "The initial Plankton Mesh before the target approximation", GH_ParamAccess.item);
     pManager.AddMatrixParameter("EigenvectorMatrix", "v", "The eigenvector matrix", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "n", "The vertex normals", GH_ParamAccess.list);
     pManager.AddNumberParameter("TargetWeights", "tw", "The weights of the target", GH_ParamAccess.list);
     pManager.AddNumberParameter("TargetScale", "ts", "The scale factor of the target", GH_ParamAccess.item);
     pManager.AddNumberParameter("NewWeights", "nw", "The new weights", GH_ParamAccess.list);
     pManager.AddNumberParameter("NewScale", "ns", "The new scale factor", GH_ParamAccess.item);
     pManager.AddNumberParameter("Percentage", "p", "The desired area increase in percent", GH_ParamAccess.item);
 }
Esempio n. 7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Footprint", "footprint", "The footprint (planktonMesh) to use topology from", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "n", "The vertex normals", GH_ParamAccess.list);
     pManager.AddIntegerParameter("EigenvectorIndices1", "vI1", "The eigenvector indices for shape 1", GH_ParamAccess.list);
     pManager.AddNumberParameter("Weights1", "w1", "The weights for shape 1", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scalefactor1", "s1", "The scale factor for shape 1", GH_ParamAccess.item);
     pManager.AddIntegerParameter("EigenvectorIndices2", "vI2", "The eigenvector indices for shape 2", GH_ParamAccess.list);
     pManager.AddNumberParameter("Weights2", "w2", "The weights for mesh 2", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scalefactor2", "s2", "The scale factor for mesh 2", GH_ParamAccess.item);
     pManager.AddMatrixParameter("SharedEigenvectorMatrix", "v", "The full shared eigenvector matrix", GH_ParamAccess.item);
     pManager.AddNumberParameter("MorphCoefficient", "coeff", "The morph coefficients in the range between 0.0 and 1.0 for each mode. The last coefficient corresponds to the scalefactor", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMatrixParameter("EigenVectorMatrix", "v", "The matrix containing all the eigenvectors", GH_ParamAccess.item);
     pManager.AddIntegerParameter("EigenvectorIndices", "i", "The indices specifying the eigenvectors to be extracted", GH_ParamAccess.list);
 }
Esempio n. 9
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMesh", "PMesh", "The PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddMatrixParameter("EigenvectorMatrix", "v", "The eigenvector matrix", GH_ParamAccess.item);
 }
Esempio n. 10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMatrixParameter("LaplacianMatrix", "L", "The cotangent or graph Laplacian matrix", GH_ParamAccess.item);
     pManager.AddGenericParameter("PlanktonMesh", "PMesh", "The PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddPointParameter("FixedPts", "pts", "A list of points to be fixed", GH_ParamAccess.list);
 }