Exemplo n.º 1
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to adjust.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Swap UV", "SwapUV", "Swap the uv parameters.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse U", "ReverseU", "Reverse the u-parameter direction.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse V", "ReverseV", "Reverse the v-parameter direction.", GH_ParamAccess.item, false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("PinnedSupportPt", "pt", "The point to function as a support", GH_ParamAccess.item);
     pManager.AddBooleanParameter("XFixed", "X", "Set to true if the X direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("YFixed", "Y", "Set to true if the Y direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("ZFixed", "Z", "Set to true if the Z direction is fixed", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Strength", "strength", "The strength of a spring to fix the point in the desired directions", GH_ParamAccess.item, 1e15);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Triloop Stipes", "Stripes", "Input the 3 Stripes of each Triloop", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Merge Stripes", "Y", "Reorients unrolled surfaces to one connected surface", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Switch", "Switch", "Switch", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Seam", "Seam", "0: Seam on Inside, 1: Seam on Outside", GH_ParamAccess.item);
     pManager.AddPointParameter("Points", "P", "Points to unroll with Brep", GH_ParamAccess.tree);
 }
Exemplo n.º 4
0
 //set up input parameters - auth token, name, worksheets, include blank cells, spreadsheet range, row/column order, formulas/values, and a refresh toggle.
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
     pManager.AddTextParameter("Name", "N", "Name of the spreadsheet to query", GH_ParamAccess.item);
     pManager.AddTextParameter("Worksheet", "W", "Optional Worksheet name", GH_ParamAccess.item);
     pManager[2].Optional = true; //worksheets optional
     pManager.AddBooleanParameter("Include Blank Cells?", "B", "Set to true to include blank cells in data output.", GH_ParamAccess.item,false);
     pManager.AddParameter(new Range_Param(), "Spreadsheet Range", "SR", "Range of cells to query.", GH_ParamAccess.item);
     pManager[4].Optional = true; //spreadsheet range optional
     pManager.AddBooleanParameter("Organize by Rows or Columns", "R/C", "Set to true to organize data output by row - otherwise data is structured by column.", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Read Formulas or Values", "F/V", "Set to true to return formulas rather than values from the spreadsheet", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the spreadsheet data to refresh.", GH_ParamAccess.tree, true);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Mesh Geo", "Me", "va3c geometry", GH_ParamAccess.list);
     pManager.AddTextParameter("Materials", "Mat", "va3c materials", GH_ParamAccess.list);
 }
Exemplo n.º 6
0
        //set up input parameters - token, filter, and refresh trigger
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
            //description of filter parameter
            string desc = string.Concat(new string[]
                {
                    "Allows you to filter spreadsheets from your drive.",
                    "\n",
                    "Filter is case sensitive.",
                    "\n",
                    "The following wildcards are allowed:",
                    "\n",
                    "? (any single character)",
                    "\n",
                    "* (zero or more characters)",
                    "\n",
                    "# (any single digit [0-9])",
                    "\n",
                    "[chars] (any single character in chars)",
                    "\n",
                    "[!chars] (any single character not in chars)"
                });
            pManager.AddTextParameter("Filter", "F", desc, GH_ParamAccess.item);
            pManager[1].Optional = true; //filter is optional
            pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the list of spreadsheets to refresh.", GH_ParamAccess.tree, true);

            //refresh parameter value is never actually used, but any new data passed into it will trigger a new solveinstance.
        }
Exemplo n.º 7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the VA3C JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Elements", "E", "va3c Elements to add to the scene.", GH_ParamAccess.list);
     pManager[2].DataMapping = GH_DataMapping.Flatten;
 }
Exemplo n.º 8
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Input", "I", "Input value", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Enumerate", "E", "Enumerate lists to sequentally named items, or create a list of values", GH_ParamAccess.item, false);
     this.Params.Input[0].ObjectChanged += resetMapping;
     this.Params.Input[0].AttributesChanged += resetMapping;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("filename", "F", "The destination filename", GH_ParamAccess.item);
     pManager.AddIntegerParameter("height", "H", "Height (pixels) of screenshot", GH_ParamAccess.item, 600);
     pManager.AddIntegerParameter("width", "W", "Width (pixels) of screenshot", GH_ParamAccess.item, 800);
     pManager.AddTextParameter("viewport", "VP", "Viewport to capture", GH_ParamAccess.item, "Perspective");
     pManager.AddBooleanParameter("enabled", "E", "Enable the screenshot", GH_ParamAccess.item, false);
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Location", "L", "Location and orientation of the text", GH_ParamAccess.item);
     pManager.AddTextParameter("Text", "T", "Text to display", GH_ParamAccess.item);
     pManager.AddNumberParameter("Size", "S", "Size of the text", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Bold", "B", "True for bold font", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("Horizontal alignment", "H", "0=Center, 1=Left, 2=Right", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Vertical alignment", "V", "0=Center, 1=Top, 2=Bottom, 3=Baseline", GH_ParamAccess.item, 0);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
     pManager.AddPointParameter("Location", "Location", "Camera Location", GH_ParamAccess.item);
     pManager.AddPointParameter("Target", "Target", "Camera Target", GH_ParamAccess.item);
     pManager.AddNumberParameter("Lens", "Lens", "Camera Lens Focal Length", GH_ParamAccess.item);
     pManager.AddVectorParameter("Up", "Up", "Camera's Up (Z) vector", GH_ParamAccess.item);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
     pManager.AddGenericParameter("Emitter", "Emi", "Emitter", GH_ParamAccess.item);
     pManager.AddGenericParameter("Food", "F", "Food", GH_ParamAccess.item);
     pManager.AddGenericParameter("Settings", "Set", "Settings", GH_ParamAccess.list);
     pManager.AddBooleanParameter("reset", "r", "reset", GH_ParamAccess.item, true);
     pManager[3].Optional = true;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to conform to", GH_ParamAccess.item);
     pManager.AddCurveParameter("Axis", "A", "Axis (may be curved)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Radius", "R", "Radius of cylinder", GH_ParamAccess.item, 15);
     pManager.AddNumberParameter("Height", "H", "Height of cylinder", GH_ParamAccess.item, 25);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (axial)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (theta)", GH_ParamAccess.item, 15);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (radial)", GH_ParamAccess.item, 4);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Lines", "L", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Sides", "S", "Number of sides for the struts", GH_ParamAccess.item, 6);
     pManager.AddNumberParameter("Start Radius", "Rs", "Radius at the start of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("End Radius", "Re", "Radius at the end of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("Node Depth", "N", "Offset depth for nodes", GH_ParamAccess.item);
     pManager.AddNumberParameter("Division", "D", "Segment division length", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Open", "O", "If true, nodes with only one connected strut will be left open", GH_ParamAccess.item, false);
 }
Exemplo n.º 16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface 1", "S1", "First bounding surface", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface 2", "S2", "Second bounding surface", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
Exemplo n.º 17
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Count X", "X", "Slices in x direction", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Count Y", "Y", "Slices in y direction", GH_ParamAccess.item, 2);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base Plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("Project", "p", "Project slices to xy plane", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("Distance", "d", "Minimal distance between projected slices", GH_ParamAccess.item, 1.0);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Food", "food", "food", GH_ParamAccess.list); //0
     pManager[0].Optional = true;
     pManager.AddPointParameter("Origin", "origin", "origin", GH_ParamAccess.list); //1
     pManager.AddNumberParameter("Step", "D", "Step distance", GH_ParamAccess.item,45); //2
     pManager.AddNumberParameter("Infuence", "di", "Infuence distance", GH_ParamAccess.item,3); //3
     pManager.AddNumberParameter("Kill-Eat", "dk", "Killing distance", GH_ParamAccess.item,1.2); //4
     pManager.AddIntegerParameter("Iteraction", "loop", "Number of iteraction", GH_ParamAccess.item,1); //5
     pManager.AddBooleanParameter("Reset", "reset", "Reset structure", GH_ParamAccess.item,false); //6
 }
Exemplo n.º 19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Goals", "PGoals", "Permanent goals e.g. bar, rod and support goals as FLATTENED list", GH_ParamAccess.list);
     pManager.AddGenericParameter("Load", "LGoals", "K2Structural load goals", GH_ParamAccess.list);
     pManager.AddNumberParameter("LFStart", "LFstart", "The start load factor", GH_ParamAccess.item);
     pManager.AddNumberParameter("LFStep", "LFstep", "The load factor step size", GH_ParamAccess.item);
     pManager.AddNumberParameter("Angle", "alfa", "Specify the allowed angle deviation between the tangent to the load-displacement curve and vertical in [degrees]", GH_ParamAccess.item, 15.0);
     pManager.AddNumberParameter("Displ", "dMax", "Specify the maximum allowed displacement for a vertex in [m]", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Threshold", "thres", "The total kinetic energy threshold to define equilibrium", GH_ParamAccess.item, 1e-15);
     pManager.AddIntegerParameter("IterationCount", "iter", "Specify the maximum number of equilibrium iterations for each load increment", GH_ParamAccess.item, 100);
     pManager.AddBooleanParameter("OutputAll?", "opt", "Output option. If true, displacements and goal results are output for each load increment. If false, only for the last two", GH_ParamAccess.item, false);
 }
Exemplo n.º 20
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddGeometryParameter("Design Space", "DS", "Design Space (Brep or Mesh)", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Orientation Plane", "Plane", "Lattice orientation plane", GH_ParamAccess.item, Plane.WorldXY); // default is XY-plane
     pManager.AddNumberParameter("Cell Size ( x )", "CSx", "Size of unit cell (x)", GH_ParamAccess.item, 5); // default is 5
     pManager.AddNumberParameter("Cell Size ( y )", "CSy", "Size of unit cell (y)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Cell Size ( z )", "CSz", "Size of unit cell (z)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Min Strut Length", "MinL", "Minimum allowable strut length for trimmed struts.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Max Strut Length", "MaxL", "Maxmimum allowable strut length for trimmed struts.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Strict tolerance", "Strict", "Specifies if we use a strict tolerance (i.e. strictly inside design space).", GH_ParamAccess.item, false);
 }
Exemplo n.º 21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Diffuse color of the material", GH_ParamAccess.item);
     pManager.AddColourParameter("Ambient Color", "[aC]", "Ambient color of the material, multiplied by the color of the ambient light in the scene.  Default is black", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Emissive Color", "[eC]", "Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddNumberParameter("[Opacity]", "[O]", "Number in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque.", GH_ParamAccess.item, 1.0);
     pManager.AddBooleanParameter("Smooth edges?", "[s]", "Smooth edges between faces?  If false, mesh will appear faceted.", GH_ParamAccess.item, true);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
 }
Exemplo n.º 22
0
 /// <summary>
 /// Registers input parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "List of points for repulsion", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "Radius of points", GH_ParamAccess.list);
     pManager.AddMeshParameter("Mesh", "M", "Mesh on which points will move.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Damping", "D", "Damping the system. If damping=1, the system will keep running", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Force", "F", "Force working between points", GH_ParamAccess.item, 15);
     pManager.AddColourParameter("Colour", "C", "Vertex Colours in same order as vertices", GH_ParamAccess.list);
     pManager.AddNumberParameter("Colour Sensitivity Repulsion", "CIRE", "1 = if black, then NO repulsion, 0 = same repulsions anywhere on mesh", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Colour Sensitivity Radius", "CIRA", "1 = if black, then full radius, if white then radius = 0, 0 = radius doesn't change", GH_ParamAccess.item, 0.7);
     pManager.AddBooleanParameter("Reset", "Reset", "Resets the system", GH_ParamAccess.item, true);
 }
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("Layer 01 Points", "PtL01", "[Tree<Point3d>input tree of points of layer 01", GH_ParamAccess.tree);
            pManager.AddPointParameter("Layer 02 Points", "PtL02", "[Tree<Point3d>input tree of points of layer 02", GH_ParamAccess.tree);
            pManager.AddIntegerParameter("Topology Points", "TopoPtIdx", "[Tree<int>]Topology points index of the face", GH_ParamAccess.tree);

            pManager.AddIntegerParameter("Neighbour Face Index", "NFIdx", "Neighbouring faces", GH_ParamAccess.tree);

            pManager.AddIntegerParameter("Face Topology Edge Indexies", "FaceTopEdgeIdx", "Indexies of topology edges foreach face", GH_ParamAccess.tree);
            pManager.AddPointParameter("Edge Centre L01", "EdgeCentreL01", "[Tree<Point3d>] Edge Centre Points foreach Face, L01", GH_ParamAccess.tree);
            pManager.AddPointParameter("Edge Centre L02", "EdgeCentreL02", "[Tree<Point3d>] Edge Centre Points foreach Face, L02", GH_ParamAccess.tree);

            pManager.AddNumberParameter("Curve Control Point Tangent Scalar", "CtrlPScalar", "[List<double>]Controls the size of the wholes per topological point", GH_ParamAccess.list);
            pManager.AddNumberParameter("Planar Pentagon Point Tangent Scalar", "PentPScalar", "[List<double>]Controls the size of the wholes per topological point", GH_ParamAccess.list);
            pManager.AddBooleanParameter("Plate?", "O/C", "[List<boolean>]Is the module closed or open", GH_ParamAccess.list);

            // ==================================================================================================
            // Gene Added
            pManager.AddBooleanParameter("Allow PolySrf", "Allow PolySrf", "Allow PolySrf", GH_ParamAccess.item, true);

            // ==================================================================================================
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Meshes", "Mj", "va3c mesh JSON objects to add to the scene.", GH_ParamAccess.list);
     pManager.AddTextParameter("Mesh Materials", "Mm", "va3c mesh materials to add to the scene.  Input one material per mesh.  If list lengths do not match we'll apply the last material to all subsequent meshses.", GH_ParamAccess.list);
     pManager.AddTextParameter("Lines", "Lj", "vA3C line JSON objects to add to the scene.", GH_ParamAccess.list);
     pManager.AddTextParameter("Line Materials", "Lm", "vA3C line materials to add to the scene.  Input one material per line.  If list lengths do not match we'll apply the last material to all subsequent lines.", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Exemplo n.º 25
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Trigger", "T", "Trigger the retrieval of Revit materials", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("Category", "C", "1 = Images\n2 = Levels\n3 = Materials\n4 = Phases", GH_ParamAccess.item, 3);
     Grasshopper.Kernel.Parameters.Param_Integer paramInt = pManager[1] as Grasshopper.Kernel.Parameters.Param_Integer;
     if (paramInt != null)
     {
         //paramInt.AddNamedValue("Design Options", 0);
         paramInt.AddNamedValue("Images", 1);
         paramInt.AddNamedValue("Levels", 2);
         paramInt.AddNamedValue("Materials", 3);
         paramInt.AddNamedValue("Phases", 4);
     }
 }
Exemplo n.º 26
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "Curves", "A List of Curves", GH_ParamAccess.list);

            pManager.AddIntegerParameter("mainSegmentCount", "Seg", " If mainSegmentCount <= 0, then both subSegmentCount and mainSegmentCount are ignored. If mainSegmentCount > 0, then subSegmentCount must be >= 1. In this case the nurb will be broken into mainSegmentCount equally spaced chords. If needed, each of these chords can be split into as many subSegmentCount sub-parts if the subdivision is necessary for the mesh to meet the other meshing constraints. In particular, if subSegmentCount = 0, then the curve is broken into mainSegmentCount pieces and no further testing is performed.", GH_ParamAccess.item, 0);
            pManager.AddIntegerParameter("subSegmentCount", "subSeg", "An amount of subsegments.", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("maxAngleRadians", "maxAngle", "( 0 to pi ) Maximum angle (in radians) between unit tangents at adjacent vertices.", GH_ParamAccess.item, 0.05);
            pManager.AddNumberParameter("maxChordLengthRatio", "maxChord", "Maximum permitted value of (distance chord midpoint to curve) / (length of chord).", GH_ParamAccess.item, 0.1);
            pManager.AddNumberParameter("maxAspectRatio", "maxAspect", "If maxAspectRatio < 1.0, the parameter is ignored. If 1 <= maxAspectRatio < sqrt(2), it is treated as if maxAspectRatio = sqrt(2). This parameter controls the maximum permitted value of (length of longest chord) / (length of shortest chord).", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("tolerance", "tol", "If tolerance = 0, the parameter is ignored. This parameter controls the maximum permitted value of the distance from the curve to the polyline.", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("minEdgeLength", "minEdge", "The minimum permitted edge length.", GH_ParamAccess.item, 0.1);
            pManager.AddNumberParameter("maxEdgeLength", "maxEdge", "If maxEdgeLength = 0, the parameter is ignored. This parameter controls the maximum permitted edge length.", GH_ParamAccess.item, 0);
            pManager.AddBooleanParameter("keepStartPoint", "SPt?", "If true the starting point of the curve is added to the polyline. If false the starting point of the curve is not added to the polyline.", GH_ParamAccess.item, true);
        }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "Positions of node support", GH_ParamAccess.list);
     pManager.AddBooleanParameter("UX", "UX", "X direction", GH_ParamAccess.item);
     pManager.AddBooleanParameter("UY", "UY", "Y direction", GH_ParamAccess.item);
     pManager.AddBooleanParameter("UZ", "UZ", "Z direction", GH_ParamAccess.item);
     pManager.AddBooleanParameter("RX", "RX", "X rotation", GH_ParamAccess.item);
     pManager.AddBooleanParameter("RY", "RY", "Y rotation", GH_ParamAccess.item);
     pManager.AddBooleanParameter("RZ", "RZ", "Z rotation", GH_ParamAccess.item);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Spring Mesh", "Spring Mesh", "Spring Mesh", GH_ParamAccess.item);
     pManager.AddCurveParameter("PolyLine", "PolyLine", "PolyLine", GH_ParamAccess.list);
     pManager.AddNumberParameter("Thickness", "Thickness", "Thickness", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Vertex status", "Vertex status", "Vertex status", GH_ParamAccess.list);
     pManager.AddIntegerParameter("PolyLine ID", "PolyLine ID", "PolyLine ID", GH_ParamAccess.list);
     pManager.AddNumberParameter("Tangent Scale", "Tangent Scale", "Tangent Scale", GH_ParamAccess.item, 0.2);
     pManager.AddBooleanParameter("Allow PolySrf", "Allow PolySrf", "Allow PolySrf", GH_ParamAccess.item, true);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Spring Mesh", "Spring Mesh", "Spring Mesh", GH_ParamAccess.item);
     pManager.AddNumberParameter("Min. Thickness", "Min. Thickness", "Min. Thickness", GH_ParamAccess.item, 0.3);
     pManager.AddNumberParameter("Max. Thickness", "Max. Thickness", "Max. Thickness", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Tangent Scale", "Tangent Scale", "Tangent Scale", GH_ParamAccess.item, 0.2);
     pManager.AddBooleanParameter("Allow PolySrf", "Allow PolySrf", "Allow PolySrf", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Plate Offset", "Plate Offset", "Plate Offset", GH_ParamAccess.item, 0.5);
     pManager.AddNumberParameter("Threads", "Threads", "Threads", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("ThreadsP", "ThreadsP", "ThreadsP", GH_ParamAccess.item, 1.0);
 }