Esempio n. 1
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;
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Elements", "E", "Elements", GH_ParamAccess.list);
            pManager.AddGenericParameter("Supports", "S", "Supports", GH_ParamAccess.list);
            pManager.AddGenericParameter("Loads", "L", "Loads", GH_ParamAccess.list);
            pManager.AddIntegerParameter("ModelType","T", "Model type: 0 = 2D truss, 1 = 3D full", GH_ParamAccess.item, 0);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
        }
 /// <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);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
     pManager.AddIntegerParameter("detect radius", "detr", "Below this value, pairs of agents locations will be connected at a possibility.", GH_ParamAccess.item);
     pManager.AddNumberParameter("select possibility", "selp", "The possibility of a pair of agents locations are connected", GH_ParamAccess.item);
 }
Esempio n. 5
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;
 }
Esempio n. 6
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;
 }
Esempio n. 7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "L", "A line to convert into a va3c JSON representation of the line", GH_ParamAccess.item);
     pManager.AddGenericParameter("Line Material", "Lm", "Line Material", GH_ParamAccess.item);
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
 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);
 }
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddNumberParameter("BucklingLoadFactor", "BLF", "The buckling load factor [-]", GH_ParamAccess.item);
     pManager.AddNumberParameter("LoadFactors", "LF", "Load factor for each iteration", GH_ParamAccess.list);
     pManager.AddNumberParameter("DisplacementRMS", "dRMS", "The displacements as a RMS value in [m] for each iteration", GH_ParamAccess.list);
     pManager.AddPointParameter("VertexPositions", "V", "The vertex positions for each iteration", GH_ParamAccess.tree);
     pManager.AddGenericParameter("GoalOutput", "O", "The output from the goals for each iteration. The data structure is identical to the PGoals input", GH_ParamAccess.tree);
 }
Esempio n. 10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "Points", "Adaptive Points", GH_ParamAccess.list);
     pManager.AddTextParameter("Family", "Family", "Family name", GH_ParamAccess.item);
     pManager.AddTextParameter("Type", "Type", "Type name", GH_ParamAccess.item);
     int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
     pManager[a].Optional = true;
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Spring Mesh", "Spring Mesh", "Spring Mesh", GH_ParamAccess.item);
     pManager.AddCircleParameter("Planarization Regions", "Planarization Regions", "Planarization Regions", GH_ParamAccess.list);
     pManager.AddNumberParameter("Bending Stiffness", "Bending Stiffness", "Bending Stiffness", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Stiffness", "Stiffness", "Stiffness", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", GH_ParamAccess.list);
     pManager.AddNumberParameter("Stiffness (Planar Regions)", "Stiffness (Planar Regions)", "Stiffness (Planar Regions)", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("ids", "ids", "input objects ids", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Copies", "C", "Copies", GH_ParamAccess.item, 1);
     pManager.AddIntegerParameter("Priority", "P", "Priority", GH_ParamAccess.item, 1);
     pManager.AddParameter(new Orientation(), "Orientation", "O", "Orientation", GH_ParamAccess.item);
     // Ha de ser un ObjectOrientation
     pManager.AddParameter(new Criterion(), "Criterion", "Cr", "Criterion", GH_ParamAccess.item);
 }
Esempio 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 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);
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("Point 0", "P0", "First point of triangle", GH_ParamAccess.item);
            pManager.AddPointParameter("Point 1", "P1", "Second point of triangle", GH_ParamAccess.item);

            pManager.AddPointParameter("Point 2", "P2", "Third point of triangle", GH_ParamAccess.item);

             pManager.AddGenericParameter("Material", "M", "Defines material of triangle", GH_ParamAccess.item);
             pManager.AddNumberParameter("Thickness", "T", "Thickness of element", GH_ParamAccess.item);
        }
Esempio n. 15
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("Cell Size ( x )", "CSx", "Size of unit cell (x)", GH_ParamAccess.item, 5); // '5' is the default value
     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.AddIntegerParameter("Number of Cells ( x )", "Nx", "Number of unit cells (x)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( y )", "Ny", "Number of unit cells (y)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( z )", "Nz", "Number of unit cells (z)", GH_ParamAccess.item, 5);
 }
Esempio 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", "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);
 }
Esempio n. 17
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);
 }
Esempio n. 18
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "A Grasshopper Mesh", GH_ParamAccess.item);
     pManager.AddGenericParameter("Mesh Material", "Mm", "Mesh Material", GH_ParamAccess.item);
     pManager.AddTextParameter("Attribute Names", "[aN]", "Attribute Names", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddTextParameter("Attribute Values", "[aV]", "Attribute Values", GH_ParamAccess.list);
     pManager[3].Optional = true;
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[4].Optional = true;
 }
Esempio n. 19
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Material", "Material", "Tortuga Material", GH_ParamAccess.item);

            pManager.AddPointParameter("Point", "Point", "Location", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Piles", "Piles", "Number of Piles", GH_ParamAccess.item);
            pManager.AddNumberParameter("Pile Radius", "Radius", "Radius for Piles", GH_ParamAccess.item);
            pManager.AddNumberParameter("Pile Length", "Length", "Plate Length", GH_ParamAccess.item);
            pManager.AddNumberParameter("Plate Thickness", "PT", "Plate Thickness", GH_ParamAccess.item);
            pManager.AddNumberParameter("Plate Length", "PL", "Plate Length", GH_ParamAccess.item);
            pManager.AddNumberParameter("Plate Width", "PW", "Plate Width", GH_ParamAccess.item);
        }
Esempio n. 20
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Baseline", "Line", "Baseline of the wall", GH_ParamAccess.item);
            int b = pManager.AddTextParameter("Layer", "Layer", "Layer name", GH_ParamAccess.item);
            int c = pManager.AddTextParameter("Style", "Style", "Wallstyle name", GH_ParamAccess.item);
            pManager.AddNumberParameter("Height", "Height", "Wall height", GH_ParamAccess.item);

            int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
            pManager[a].Optional = true;
            pManager[b].Optional = true;
            pManager[c].Optional = true;
        }
Esempio n. 21
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);
 }
Esempio n. 22
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Settings Dictionary", "Settings", "Silkworm Settings Dictionary", GH_ParamAccess.list);
            pManager.AddGenericParameter("Brep or Mesh", "Solids", "A List of Solid or Enclosing Regions", GH_ParamAccess.list);

            pManager.AddPlaneParameter("Slicing Plane(s)", "Plane(s)", "Multiple or single plane to slice solid with. If you use planes that are not horizontal it is up to you to define how the printer will build these.", GH_ParamAccess.list);
            pManager.AddNumberParameter("Layer Height", "Layer", "For a single plane input. This sets the perpendicular offset to the plane, replicating the plane as far as the bounding box of the object", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Thickness of Planar Shell", "Shell", "In plane shell thickness", GH_ParamAccess.item, 0);
            //pManager.Register_BooleanParam("Detect Bridges and Overhangs", "Bridges", "Only useful for horizontal slicing.  If true will generate regions for overhangs and bridges", GH_ParamAccess.item);

            //pManager[5].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Esempio n. 23
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddGenericParameter("TrailSetting", "TSet", "TrailSetting", GH_ParamAccess.item);
 }
Esempio n. 24
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("LCA Result", "L", "Calculated LCA Result", GH_ParamAccess.list);
 }
Esempio n. 25
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddGenericParameter("Hash", "H", "A key/value hash", GH_ParamAccess.item);
 }
Esempio n. 26
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Label_1", "Input key/value", "Input any value here to create a key / value pair", GH_ParamAccess.item);
 }
Esempio n. 27
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddBrepParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);
     pManager.AddTextParameter("Layers", "L", "Layers", GH_ParamAccess.list);
     pManager.AddGenericParameter("Instances", "I", "Instances", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddGenericParameter("BDSetting", "BDS", "Birth Death Setting", GH_ParamAccess.item);
 }
Esempio n. 29
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddGenericParameter("LoadGoal", "L", "The K2 nodal load goal which outputs the updated position of the point where the load acts and the load in [kN]", GH_ParamAccess.item);
 }
Esempio n. 30
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Instance", "I", "Instance", GH_ParamAccess.item);
 }