Exemplo n.º 1
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Material Stiffness", "E", "Youngs modulus for the beam, set to steel by deafault", GH_ParamAccess.item, 210e9);
     pManager.AddNumberParameter("Poisons ratio", "p", "Poisons ration for the material of the beam, set to steel by default", GH_ParamAccess.item, 0.3);
     pManager.AddNumberParameter("Density", "d", "Density of the material. Given in kg/m3", GH_ParamAccess.item, 7800);
     pManager.AddNumberParameter("Ultimate Stress", "fu", "The ultimate stress for the material, used for utilisation checks", GH_ParamAccess.item, 275e6);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   pManager.AddGenericParameter(RS.particleName + " " + RS.queleaName + " Settings", RS.particleNickname + RS.queleaNickname + "S", RS.particleDescription, GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.maxSpeedName, RS.maxSpeedNickname, RS.maxSpeedDescription, GH_ParamAccess.item, RS.maxSpeedDefault);
   pManager.AddNumberParameter(RS.maxForceName, RS.maxForceNickname, RS.maxForceDescription, GH_ParamAccess.item, RS.maxForceDefault);
   pManager.AddNumberParameter(RS.visionRadiusName, RS.visionRadiusNickname, RS.visionRadiusDescription, GH_ParamAccess.item, RS.visionRadiusDefault);
   pManager.AddNumberParameter(RS.visionAngleName, RS.visionAngleNickname, RS.visionAngleDescription, GH_ParamAccess.item, RS.visionAngleDefault);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new CrossSectionParameter(), "Cross Sections", "XS", "Cross sections to group. Used in optimisations procedures", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Allow Rotation", "R", "Boolean to set if rotation of the section around its own axis should be alowed or not", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Section Chooser Procedure", "SCP", "Choose wich method to use in sectionsizer." +
         " \n 0= check all, bottom up. Allways checks smallest to largest\n 1 = Step to one larger when overutilized \n 2= Sted up if overutilized, down if underutilized. \n 3 = Search all from current ", GH_ParamAccess.item, 0);
     pManager.AddNumberParameter("Minimum Utilization", "minU", "The minimum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 0.8);
     pManager.AddNumberParameter("Maximum Utilization", "maxU", "The maximum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 1);
 }
Exemplo n.º 4
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddGenericParameter("Environment", "En", "The Surface or Polysurface Environment to flow over.", GH_ParamAccess.item);
   pManager.AddNumberParameter("Step distance", "D", "The distance the particle will move each timestep. Smaller distances will lead to more accurate results.",
     GH_ParamAccess.item, 0.1);
   pManager.AddNumberParameter("Rotation Angle", "A", "The angle that the surface tangent vector will be multiplied by PI and rotated by. A 0 angle will cause the particle to flow across the surface whereas a 0.5 angle will cause the particle to flow down the surface.",
     GH_ParamAccess.item, 0.5);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddNumberParameter("Minumum Time To Collision", "T",
     "The number of seconds of travel at the Agent's current velocity that the Agent will predict its position to avoid collisions.", GH_ParamAccess.item, RS.visionRadiusDefault);
   pManager.AddNumberParameter("Potential Collision Distance", "D",
     "The distance which will be used to indicate a potential collision is iminent. This number is added to the Agent's and the neighbor" +
     "s Body Sizes.", GH_ParamAccess.item, 0);
 }
Exemplo n.º 6
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddNumberParameter(RS.massName, RS.massNickname, "More massive attractors will exert a stronger attraction force than smaller ones.",
     GH_ParamAccess.item, RS.massDefault);
   pManager.AddNumberParameter("Distance Lower Limit", "L",
     "The lower limit of the distance by which the strength is divided by.", GH_ParamAccess.item, RS.attractLowerLimitDefault);
   pManager.AddNumberParameter("Distance Upper Limit", "U",
     "The upper limit of the distance by which the strength is divided by.", GH_ParamAccess.item, RS.attractUpperLimitDefault);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   pManager.AddVectorParameter("Up Direction", "U",
     "The up direction for the calculation of the initial orientation.", GH_ParamAccess.item,
     Vector3d.ZAxis);
   pManager.AddVectorParameter(RS.accelerationName, RS.accelerationNickName, 
                               RS.accelerationDescription, GH_ParamAccess.item, Vector3d.Zero);
   pManager.AddIntegerParameter(RS.lifespanName, RS.lifespanNickname, RS.lifespanDescription, GH_ParamAccess.item, RS.lifespanDefault);
   pManager.AddNumberParameter(RS.massName, RS.massNickname, RS.massDescription, GH_ParamAccess.item, RS.massDefault);
   pManager.AddNumberParameter(RS.bodySizeName, RS.bodySizeNickname, RS.bodySizeDescription, GH_ParamAccess.item, RS.bodySizeDefault);
   pManager.AddIntegerParameter(RS.historyLengthName, RS.historyLengthNickName, RS.historyLengthDescription, GH_ParamAccess.item, RS.historyLenDefault);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   // Use the pManager object to register your input parameters.
   // You can often supply default values when creating parameters.
   // All parameters must have the correct access type. If you want 
   // to import lists or trees of values, modify the ParamAccess flag.
   pManager.AddGenericParameter(RS.vehicleName + " " + RS.queleaName, RS.vehicleNickname + RS.queleaNickname, RS.vehicleDescription, GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.visionRadiusName + " " + RS.multiplierName, RS.visionRadiusNickname + RS.multiplierNickname, RS.visionRadiusMultiplierDescription, GH_ParamAccess.item, RS.visionRadiusMultiplierDefault/5);
   pManager.AddNumberParameter(RS.visionAngleName + " " + RS.multiplierName, RS.visionAngleNickname + RS.multiplierNickname, RS.visionAngleMultiplierDescription, GH_ParamAccess.item, RS.visionAngleMultiplierDefault/8);
   pManager.AddBooleanParameter("Crossed?", "C", "If true, the sensors will affect the wheels on the opposite side. If false, a higher sensor reading on the left side will cause the left wheel to turn faster causing the vehicle to turn to its right. Generally, if the sensors are not crossed, then the vehicle will steer away from areas with high values.",
     GH_ParamAccess.item, false);
 }
 /// <summary>
 ///     Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     if (_parameters == null) _parameters = new RhinoNestKernel.Nesting.RhinoNestNestingParameters();
     pManager.AddNumberParameter("Item to Item Distance", "I2I", "Item to Item Distance", GH_ParamAccess.item,
         _parameters.DistanceItemToItem);
     pManager.AddNumberParameter("Item to Sheet Distance", "I2S", "Item to Sheet Distance", GH_ParamAccess.item,
         _parameters.DistanceItemToSheet);
     pManager.AddNumberParameter("Limit of Variants", "LoV", "Limit of Variants", GH_ParamAccess.item,
         _parameters.LimitVariants);
     pManager.AddNumberParameter("Max time", "Mt", "Max time", GH_ParamAccess.item, _parameters.TimeOut);
     pManager.AddNumberParameter("Precision", "P", "Precision", GH_ParamAccess.item,
         _parameters.DistancePrecision);
     pManager.AddParameter(new GCriterion(), "Global Criterion", "GC", "Global Criterion", GH_ParamAccess.item);
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddCurveParameter(RS.curveName, RS.curveNickname, RS.curveForFollowPathDescription, GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.pathRadiusName, RS.radiusNickname,
     RS.pathRadiusDescription, GH_ParamAccess.item, RS.pathRadiusDefault);
   pManager.AddNumberParameter(RS.predictionDistanceName, RS.predictionDistanceNickName, RS.predictionDistanceDescription,
     GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.pathTargetDistanceName, RS.pathTargetDistanceNickName,
     RS.pathTargetDistanceDescription,
     GH_ParamAccess.item);
   pManager[pManager.ParamCount-1].Optional = true;
   pManager[pManager.ParamCount - 2].Optional = true;
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new StructureParam(), "Structure", "Str", "The structure to solve", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Modes", "m", "The modes to optimize for", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scale factor", "sFac", "Optional scale factor. Scales all forces based on this value. Deafaults to 1", GH_ParamAccess.item, 1);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddGenericParameter(RS.environmentName, RS.environmentNickname, RS.environmentDescription, GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.visionRadiusMultiplierName, RS.visionRadiusMultiplierNickname, RS.visionRadiusMultiplierDescription,
     GH_ParamAccess.item, RS.visionRadiusMultiplierDefault / 5);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddBrepParameter("Obstacle", "O", "A brep representing the obstacle to avoid.", GH_ParamAccess.item);
   pManager.AddNumberParameter(RS.visionRadiusMultiplierName, RS.visionRadiusMultiplierNickname, RS.visionRadiusMultiplierDescription,
     GH_ParamAccess.item, RS.visionRadiusMultiplierDefault / 5);
 }
Exemplo n.º 14
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("WaterLevel", "WL", "WaterLevel", GH_ParamAccess.item, _waterLevel);
     pManager.AddNumberParameter("ContourInterval", "CI", "The interval (if this analysis is enabled)",
                                 GH_ParamAccess.item, _contourInterval);
     pManager.AddIntegerParameter("AverageFrames", "AF",
                                  "Amount of depth frames to average across. This number has to be greater than zero.",
                                  GH_ParamAccess.item, averageFrames);
     pManager.AddIntegerParameter("BlurRadius", "BR", "Radius for Gaussian blur.", GH_ParamAccess.item,
                                  blurRadius);
     pManager.AddGenericParameter("SandwormOptions", "SWO", "Setup & Calibration options", GH_ParamAccess.item);
     pManager[0].Optional = true;
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Region", "R", "Boundary region as either a planar polyline or a mesh.", GH_ParamAccess.item);
     pManager.AddCurveParameter("Polylines", "P", "Polylines to grow.", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "Collision radius.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Iterations", "I", "Simulation iterations.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Convergence", "C", "Convergence iterations.", GH_ParamAccess.item);
 }
 //register all the input parameters
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Crve", "C", "Curves to Divide", GH_ParamAccess.item);
     pManager.AddNumberParameter("Distance", "D", "List of Distances", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Repeat Type", "R", "0 = Wrap, 1 = Repeat Last, 2 = No Repeat. Default is 0", GH_ParamAccess.item, 0);
     //pManager.AddIntegerParameter("Pattern", "P", "Pattern index if using optional distances. ", GH_ParamAccess.list);
     pManager.HideParameter(0);
 }
Exemplo n.º 17
0
 /// <summary>
 ///     Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     if (_parameters == null)
     {
         _parameters = new RhinoNestKernel.Nesting.RhinoNestNestingParameters();
     }
     pManager.AddNumberParameter("Item to Item Distance", "I2I", "Item to Item Distance", GH_ParamAccess.item,
                                 _parameters.DistanceItemToItem);
     pManager.AddNumberParameter("Item to Sheet Distance", "I2S", "Item to Sheet Distance", GH_ParamAccess.item,
                                 _parameters.DistanceItemToSheet);
     pManager.AddNumberParameter("Limit of Variants", "LoV", "Limit of Variants", GH_ParamAccess.item,
                                 _parameters.LimitVariants);
     pManager.AddNumberParameter("Max time", "Mt", "Max time", GH_ParamAccess.item, _parameters.TimeOut);
     pManager.AddNumberParameter("Precision", "P", "Precision", GH_ParamAccess.item,
                                 _parameters.DistancePrecision);
     pManager.AddParameter(new GCriterion(), "Global Criterion", "GC", "Global Criterion", GH_ParamAccess.item);
 }
Exemplo n.º 18
0
        protected override void RegisterInputParams(GH_InputParamManager manager)
        {
            //manager.AddGeometryParameter("Revit_PointCloud", "R_PCD", string.Empty, GH_ParamAccess.item); manager[0].Optional = false;
            manager[manager.AddParameter(new Parameters.Element(), "Revit Point Cloud Instance", "R_PCD", string.Empty, GH_ParamAccess.item)].Optional = false;

            manager.AddNumberParameter("averageDistance", "d", string.Empty, GH_ParamAccess.item, 0.01); manager[1].Optional = true;
            manager.AddIntegerParameter("numPoints", "n", string.Empty, GH_ParamAccess.item, 999999); manager[2].Optional    = true;
        }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("Center Point", "Center", "Center point for the refinement region", GH_ParamAccess.item);
            pManager.AddNumberParameter("Radius", "Radius", "Radii of the refinement regions", GH_ParamAccess.list);
            pManager.AddNumberParameter("Height", "Height", "Height of the refinement regions", GH_ParamAccess.list);
            pManager.AddIntegerParameter("Mesh Level", "Level",
                                         "Mesh Level of the refinement regions. The value given here is the mesh level at the inner most refinement region.\n" +
                                         "Every refinement region after that will have a mesh level is that 1 lower than the previous.",
                                         GH_ParamAccess.item);
            pManager.AddNumberParameter("Resolution", "Resolution",
                                        "Resolution of each of the refinement regions in meters.\n" +
                                        "This input is used only if Level doesn't have a input.", GH_ParamAccess.list
                                        );

            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Exemplo n.º 20
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Text", "T", "Text content", GH_ParamAccess.item);
            pManager.AddTextParameter("Font", "F", "Text font", GH_ParamAccess.item);
            pManager.AddPointParameter("Location", "L", "Text location", GH_ParamAccess.item);
            pManager.AddColourParameter("Colour", "C", "Text colour", GH_ParamAccess.item, Color.Black);
            pManager.AddNumberParameter("Horizontal", "H", "Normalised horizontal offset", GH_ParamAccess.item, 0.0);
            pManager.AddNumberParameter("Vertical", "V", "Normalised vertical offset", GH_ParamAccess.item, 0.0);
            pManager.AddAngleParameter("Angle", "A", "Rotation angle.", GH_ParamAccess.item, 0.0);

            Param_Number angle = pManager[6] as Param_Number;

            if (angle != null)
            {
                angle.UseDegrees = true;
            }
        }
Exemplo n.º 21
0
 protected override void RegisterInputParams(GH_InputParamManager manager)
 {
     manager.AddPointParameter("Points", "C", "Points to query", GH_ParamAccess.list);
     manager.AddNumberParameter("Tolerance", "T", "Tolerance used to query", GH_ParamAccess.item, 0.0);
     manager.AddBooleanParameter("BoundingBox", "B", "Query as a BoundingBox", GH_ParamAccess.item, true);
     manager.AddBooleanParameter("Strict", "S", "True means element should be strictly contained", GH_ParamAccess.item, false);
     base.RegisterInputParams(manager);
 }
Exemplo n.º 22
0
 protected override void RegisterInputParams(GH_InputParamManager manager)
 {
     manager.AddCurveParameter("Axis", "A", string.Empty, GH_ParamAccess.item);
     manager[manager.AddParameter(new Parameters.ElementType(), "Type", "T", string.Empty, GH_ParamAccess.item)].Optional = true;
     manager[manager.AddParameter(new Parameters.Element(), "Level", "L", string.Empty, GH_ParamAccess.item)].Optional    = true;
     manager.AddBooleanParameter("Structural", "S", string.Empty, GH_ParamAccess.item, true);
     manager[manager.AddNumberParameter("Height", "H", string.Empty, GH_ParamAccess.item)].Optional = true;
 }
Exemplo n.º 23
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list);
            pManager.AddNumberParameter("Scale factor", "s", "The displacement scale", GH_ParamAccess.item, 10);
            pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item);

            pManager[2].Optional = true;
        }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list);
            pManager.AddNumberParameter("Scale factor", "s", "The displacement scale", GH_ParamAccess.item, 10);
            pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item);

            pManager[2].Optional = true;
        }
Exemplo n.º 25
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     RegisterDefaultInputParams(pManager);
     pManager.AddTextParameter("Value", "val", "The starting value of the header component.",
                               GH_ParamAccess.item, "header");
     pManager.AddNumberParameter("Scale", "scale", "The scale of heading to create (1-4).",
                                 GH_ParamAccess.item, 1);
 }
Exemplo n.º 26
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Plants", "P", "The plant attributes to simulate", GH_ParamAccess.list);
     pManager.AddPointParameter("Locations", "L", "The locations to assign to each attribute", GH_ParamAccess.list);
     pManager.AddNumberParameter("Times", "T", "The time (in years) since initial planting to display", GH_ParamAccess.item);
     pManager[2].Optional = true;
     //pManager.AddBooleanParameter("Visualisations", "V", "Whether to show a full L-system visualisation (true) or just the base geoemtries (false)", GH_ParamAccess.item, false);
     //pManager[3].Optional = true;
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Beta", "Beta", "Beta factor.", GH_ParamAccess.item, 1);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("LoadPosition", "LoadPosition", "Load position. top/center/bottom", GH_ParamAccess.item, "top");
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("ContinuouslyRestrained", "ContinuouslyRestrained", "Continuously restrained. True/false.", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 28
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Contour Curves", "C", "The contours to check", GH_ParamAccess.list);
     pManager[0].Optional = false;
     pManager.AddCurveParameter("Boundary", "B", "The boundary rectangle to clip to", GH_ParamAccess.item);
     pManager[1].Optional = false;
     pManager.AddNumberParameter("Maximum Distance", "D", "The maximum distance allowed as a gap between two contours", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list);
            pManager.AddBooleanParameter("DisplayToggles", "DT", "Toggles the forces to display. Input should be a list of 6 booleans (N, Vy, Vz, T, Myy, Mzz). [Normal force, shear in weak axis, shear in strong axis, torsion, bending in strong direction, bending in weak direction]", GH_ParamAccess.list);
            pManager.AddNumberParameter("ScalingFactor", "sfac", "Scaling factor for the drawing. Input should be either one 'global' scaling factor or a list of 6 individual ones.", GH_ParamAccess.list, 1);
            pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item);

            pManager[3].Optional = true;
        }
Exemplo n.º 30
0
        /// <inheritdoc />
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddLineParameter("lines", "lines", "", GH_ParamAccess.list);
            pManager.AddNumberParameter("tolerance", "tol", "", GH_ParamAccess.item, 1.0e-4);

            // TODO make menu items
            pManager.AddBooleanParameter("allowMulti", "multi", "", GH_ParamAccess.item, false);
            pManager.AddBooleanParameter("allowLoops", "loops", "", GH_ParamAccess.item, false);
        }
Exemplo n.º 31
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("MarkerColor", "Color", "The color, or colors, of the markers this component should track", GH_ParamAccess.list);
     pManager.AddNumberParameter("ColorFuzz", "Fuzz", "The amount of leeway to use when matching the color. A higher value will identify more similar colors",
                                 GH_ParamAccess.item);
     pManager.AddGenericParameter("SandwormOptions", "SWO", "Setup & Calibration options", GH_ParamAccess.item);
     pManager[0].Optional = false;
     pManager[1].Optional = true;
     pManager[2].Optional = true;
 }
Exemplo n.º 32
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        /// <param name="pManager">Use the pManager to register new parameters. pManager is never null.</param>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            // set the message for this component.
            pManager.AddCurveParameter("Polylines", "P", "A list of polylines to offset", GH_ParamAccess.list);
            pManager.AddNumberParameter("Distance", "D", "Offset Distance", GH_ParamAccess.item);
            pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default);


            pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
            //public enum ClosedFilletType { Round, Square, Miter }
            pManager.AddIntegerParameter("ClosedFillet", "CF", "Closed fillet type (0 = Round, 1 = Square, 2 = Miter)", GH_ParamAccess.list, new List <int> {
                1
            });
            ////public enum OpenFilletType { Round, Square, Butt }
            pManager.AddIntegerParameter("OpenFillet", "OF", "Open fillet type (0 = Round, 1 = Square, 2 = Butt)", GH_ParamAccess.list, new List <int> {
                1
            });
            pManager.AddNumberParameter("Miter", "M", "If closed fillet type of Miter is selected: the maximum extension of a curve is Distance * Miter", GH_ParamAccess.item, 2);
        }
Exemplo n.º 33
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Bricks", "B", "Center planes of bricks", GH_ParamAccess.tree);
     pManager.AddTextParameter("Types", "T", "Types of bricks", GH_ParamAccess.tree);
     pManager.AddPointParameter("Corners", "C", "Corners of bricks", GH_ParamAccess.tree);
     pManager.AddPlaneParameter("SuckerCenter", "SC", "Center of sucker", GH_ParamAccess.item);
     pManager.AddPlaneParameter("SensorCenter", "SE", "Center of sensor", GH_ParamAccess.item);
     pManager.AddPlaneParameter("HomePlane", "HP", "Home planes of bricks", GH_ParamAccess.item);
     pManager.AddNumberParameter("Retreat", "R", "Retreat of sensor", GH_ParamAccess.item, 160);
 }
Exemplo n.º 34
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   // Use the pManager object to register your input parameters.
   // You can often supply default values when creating parameters.
   // All parameters must have the correct access type. If you want 
   // to import lists or trees of values, modify the ParamAccess flag.
   pManager.AddNumberParameter(RS.weightMultiplierName, RS.weightMultiplierNickname, RS.weightMultiplierDescription,
     GH_ParamAccess.item, RS.weightMultiplierDefault);
 }
Exemplo n.º 35
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Brep", "Brep", "Brep / Surface Geometry", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number", "Number", "Identifier of structural area", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("Group", "Group", "Group numbers", GH_ParamAccess.list, 0);
     pManager.AddNumberParameter("Thickness", "Thickness", "Thickness of structural area", GH_ParamAccess.list, 0.0);
     pManager.AddIntegerParameter("Material", "Material", "Material number", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("ReinforcementMaterial", "ReinfMat", "Reinforcement material number", GH_ParamAccess.list, 0);
     pManager.AddVectorParameter("Dir x", "Dir x", "Direction of local x-axis", GH_ParamAccess.list, new Vector3d());
 }
Exemplo n.º 36
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Curve", "LineCurve or ArcCurve", GH_ParamAccess.item);
     pManager.AddNumberParameter("AE", "AE", "AE", GH_ParamAccess.item, 1E7);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("ItG", "ItG", "ItG", GH_ParamAccess.item, 1E7);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("I1E", "I1E", "I1E", GH_ParamAccess.item, 1E7);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("I2E", "I2E", "I2E", GH_ParamAccess.item, 1E7);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("Connectivity", "Connectivity", "Connectivity. Connectivity. If 1 item this item defines both start and end connectivity. If two items the first item defines the start connectivity and the last item defines the end connectivity.", GH_ParamAccess.list);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true);
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier.", GH_ParamAccess.item, "BF");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 37
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     // Use the pManager object to register your input parameters.
     // You can often supply default values when creating parameters.
     // All parameters must have the correct access type. If you want
     // to import lists or trees of values, modify the ParamAccess flag.
     pManager.AddNumberParameter(RS.weightMultiplierName, RS.weightMultiplierNickname, RS.weightMultiplierDescription,
                                 GH_ParamAccess.item, RS.weightMultiplierDefault);
 }
Exemplo n.º 38
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Type", "T", "Type of advice to offer.", GH_ParamAccess.item);
            pManager.AddCurveParameter("Bounds", "B", "Region advice is being applied to.", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Program Indices", "i", "Indices of programs to apply advice to.", GH_ParamAccess.list);
            pManager.AddNumberParameter("Program Adjustments", "a", "Adjustment to be made to program.", GH_ParamAccess.list);

            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
Exemplo n.º 39
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curves", "C", "The group of curves that form the network to traverse", GH_ParamAccess.list);
     pManager.AddPointParameter("Starts", "S", "The point or points that form the starting point of the path", GH_ParamAccess.list);
     pManager.AddPointParameter("Ends", "E", "The point or points that form the end point of the path", GH_ParamAccess.list);
     pManager.AddNumberParameter("Lengths", "L", String.Join("A manually-specified length for each curve; useful if you want to artificially ",
                                                             "increase or decrease their traversability. If no lengths provided, they will be ",
                                                             "manually calculated for each of the curves."), GH_ParamAccess.list);
     pManager[3].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Elements to Adjust", "E", "The elements to adjust", GH_ParamAccess.item);
     pManager.AddColourParameter("Foreground", "FC", "The foreground color of the element", GH_ParamAccess.item);
     pManager[1].Optional = true;
     pManager.AddColourParameter("Background", "BC", "The background color of the element", GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddNumberParameter("Font Size", "S", "The font size of the element", GH_ParamAccess.item);
     pManager[3].Optional = true;
 }
Exemplo n.º 41
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Alignment", "Alignment", "top/bottom/center", GH_ParamAccess.item, "center");
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("Eccentricity", "Ecc", "Eccentricity. [m]", GH_ParamAccess.item, 0);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("EccentricityCalculation", "EccCalc", "Consider eccentricity in calculation? True/false.", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("EccentricityByCracking", "EccByCracking", "Consider eccentricity caused by cracking in cracked section analysis? True/false.", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 42
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_InputParamManager inputParamManager)
        {
            int index;

            index = inputParamManager.AddParameter(new GooPanelParam(), "_panels", "_panels", "SAM Analytical Panels", GH_ParamAccess.list);
            inputParamManager[index].DataMapping = GH_DataMapping.Flatten;

            GooSpaceParam gooSpaceParam = new GooSpaceParam();

            gooSpaceParam.Optional = true;
            index = inputParamManager.AddParameter(gooSpaceParam, "spaces_", "spaces_", "SAM Analytical Spaces", GH_ParamAccess.list);
            inputParamManager[index].DataMapping = GH_DataMapping.Flatten;

            inputParamManager.AddNumberParameter("tolerance_", "tolerance_", string.Format("Topologic CellComplex default {0}", 0.0001), GH_ParamAccess.item, 0.0001);
            //inputParamManager.AddBooleanParameter("_run", "_run", "Run", GH_ParamAccess.item, false);
            inputParamManager.AddBooleanParameter("tryCellComplexByCells_", "tryCellComplexByCells_", "Try to Create Cell Complex By Cells", GH_ParamAccess.item, false);
            inputParamManager.AddNumberParameter("minArea_", "minArea_", "Minimal Acceptable area of Aperture", GH_ParamAccess.item, Tolerance.MacroDistance);
            inputParamManager.AddNumberParameter("silverSpacing_", "silverSpacing_", string.Format("Silver spacing for point in Space calculation {0}", Tolerance.MacroDistance), GH_ParamAccess.item, Tolerance.MacroDistance);
            inputParamManager.AddBooleanParameter("_run", "_run", "Run", GH_ParamAccess.item, false);
        }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "S", "Base landscape form (as a surface) for the flow calculation", GH_ParamAccess.item);
     pManager.AddPointParameter("Points", "P", "Start points for the flow paths. These should be above the surface (they will be projected on to it)", GH_ParamAccess.list);
     pManager.AddNumberParameter("Fidelity", "F", "Amount to move for each flow iteration. Small numbers may take a long time to compute. If not specified or set to 0 a (hopefully) sensible step size will be calculated.", GH_ParamAccess.item, 0);
     pManager[2].Optional = true;
     pManager.AddIntegerParameter("Steps", "L", "A limit to the number of flow iterations. Leave unset or to 0 for an unlimited set of iterations", GH_ParamAccess.item, 0);
     pManager[3].Optional = true;
     pManager.AddBooleanParameter("Thread", "T", "Whether to multithread the solution (this can speed up long calculations)", GH_ParamAccess.item, false);
     pManager[4].Optional = true;
 }
Exemplo n.º 44
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddGenericParameter("TimberPlateMaterial", "Material", "Timber plate material.", GH_ParamAccess.item);
     pManager.AddVectorParameter("SpanDirection", "Direction", "Span direction of the timber plate.", GH_ParamAccess.item);
     pManager.AddNumberParameter("PanelWidth", "PanelWidth", "Width of each individual CLT panel in region. 1.5m if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("BorderEdgeConnection", "BorderEdgeConnection", "EdgeConnection of the external border of the panel. Optional. If not defined hinged will be used.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("AvgMeshSize", "AverageMeshSize", "Average mesh size. If zero an automatic value will be used by FEM-Design. Optional. [m]", GH_ParamAccess.item, 0);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "PP");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 45
0
 void Inputs(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("File", "F", "Text file. Each target should be one line, values should be separated by commas.", GH_ParamAccess.item);
     pManager.AddParameter(new TargetParameter(), "Target", "T", "Created targets will use the parameters of this reference target if they're not supplied in the CSV file.", GH_ParamAccess.item);
     pManager.AddTextParameter("Mask", "M", "Mask representing CSV format. Parameters allowed: 'position, normal, xaxis, speed, zone, type'. The first three should be 3 values (x,y,z). Distance values should be defined in mm. Speed is defined in mm/minute. Type should be an integer (0,1) where 0 is a rapid move and 1 is a cutting move.", GH_ParamAccess.item, "position, normal, speed");
     pManager.AddBooleanParameter("Reverse normal", "R", "Reverses the tool normal.", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("Cutting speed", "C", "Maximum speed in mm/min that will be considered a cutting move.", GH_ParamAccess.item, 2750);
     pManager.AddPointParameter("Point alignment", "P", "Aligns the X axis of the tagets to look towards this point (in world coordinate system). If not supplied it will use the X axis of the reference target.", GH_ParamAccess.item);
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Exemplo n.º 46
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "N", "Tool name", GH_ParamAccess.item, "DefaultGHTool");
     pManager.AddPlaneParameter("TCP", "P", "TCP plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddPlaneParameter("Calibration", "4", "Optional 4 point TCP calibration. Orient the tool in 4 different ways around the same point in space and input the 4 planes that correspond to the flange", GH_ParamAccess.list);
     pManager.AddNumberParameter("Weight", "W", "Tool weight in kg", GH_ParamAccess.item, 0.0);
     pManager.AddPointParameter("Centroid", "C", "Optional tool center of mass", GH_ParamAccess.item);
     pManager.AddMeshParameter("Mesh", "M", "Tool geometry", GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Exemplo n.º 47
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "N", "Program name", GH_ParamAccess.item, "DefaultProgram");
     pManager.AddParameter(new RobotSystemParameter(), "Robot system", "R", "Robot system used in program", GH_ParamAccess.item);
     pManager.AddParameter(new TargetParameter(), "Targets 1", "T1", "List of targets for the first robot", GH_ParamAccess.list);
     pManager.AddParameter(new TargetParameter(), "Targets 2", "T2", "List of targets for the second robot", GH_ParamAccess.list);
     pManager.AddParameter(new CommandParameter(), "Init commands", "C", "Optional list of commands that will run at the start of the program", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Multifile indices", "I", "Optional list of indices to split the program into multiple files. The indices correspond to the first target of the aditional files", GH_ParamAccess.list);
     pManager.AddNumberParameter("Step Size", "S", "Distance in mm to step through linear motions, used for error checking and program simulation. Smaller is more accurate but slower", GH_ParamAccess.item, 1);
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("X-translation", "X", "Fix translation in x direction. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
     pManager.AddNumberParameter("Y-translation", "Y", "Fix translation in y direction. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
     pManager.AddNumberParameter("Z-translation", "Z", "Fix translation in Z direction. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
     pManager.AddNumberParameter("X-rotation", "XX", "Fix rotation around the x-axis. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
     pManager.AddNumberParameter("Y-rotation", "YY", "Fix rotation around the x-axis. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
     pManager.AddNumberParameter("Y-rotation", "ZZ", "Fix rotation around the x-axis. val < 0 => fixed, val = 0 => released, val > 0 => spring with stiffness=val", GH_ParamAccess.item);
 }
Exemplo n.º 49
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddPointParameter(RS.pointName, RS.pointNickname, "The source point for the sensory field.", GH_ParamAccess.item, Point3d.Origin);
   pManager.AddNumberParameter("Radius", "R", "The radius of the range of the sensory field falloff.", GH_ParamAccess.item, 10);
 }
Exemplo n.º 50
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddNumberParameter("Arrival Radius", "AR", "The radius within which agents will start to slow down to eventually stop at the target point. Set this to 0 if you do not want the Agent to stop at the target point.",
     GH_ParamAccess.item, RS.visionRadiusDefault);
 }
Exemplo n.º 51
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            //0
            pManager.AddGeometryParameter("Geometry", "Geom", "Input Surface or Mesh", GH_ParamAccess.item);

            //1
            pManager.AddGenericParameter("TargetLengthFunction", "L", "A function determining local edge length", GH_ParamAccess.item);

            //2
            pManager.AddCurveParameter("FixCurves", "FixC", "Curves which will be kept sharp during remeshing. Can be boundary or internal curves", GH_ParamAccess.list);
            pManager[2].Optional = true;

            //3
            pManager.AddPointParameter("FixVertices", "FixV", "Points to keep fixed during remeshing", GH_ParamAccess.list);
            pManager[3].Optional = true;

            //4
            pManager.AddIntegerParameter("Flip", "Flip", "Criterion used to decide when to flip edges (0 for valence based, 1 for angle based)", GH_ParamAccess.item, 1);

            //5
            pManager.AddNumberParameter("PullStrength", "Pull", "Strength of pull to target geometry (between 0 and 1). Set to 0 for minimal surfaces", GH_ParamAccess.item, 0.8);

            //6
            pManager.AddIntegerParameter("Iterations", "Iter", "Number of steps between outputs", GH_ParamAccess.item, 1);

            //7
            pManager.AddBooleanParameter("Reset", "Reset", "True to initialize, false to run remeshing. Connect a timer for continuous remeshing", GH_ParamAccess.item, true);
        }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new ResultElementParam(), "Result Elements", "RE", "Result elements, storing results from the calculation", GH_ParamAccess.list);
     pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Show deflections", "def", "Enables or disables showing deformed sections", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("ScalingFactor", "sfac", "Scaling factor for the drawing.", GH_ParamAccess.item, 1);
 }
Exemplo n.º 53
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Translation", "T", "TCP translation speed", GH_ParamAccess.item, 100.0);
     pManager.AddNumberParameter("Rotation", "R", "TCP rotation and swivel speed", GH_ParamAccess.item, PI);
     pManager.AddNumberParameter("External translation", "Et", "External axes translation speed", GH_ParamAccess.item, 5000.0);
     pManager.AddNumberParameter("External rotation", "Er", "External axes rotation speed", GH_ParamAccess.item, PI * 6);
 }
Exemplo n.º 54
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program to simulate", GH_ParamAccess.item);
     pManager.AddNumberParameter("Time", "T", "Advance the simulation to this time", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("Normalized", "N", "Time value is normalized (from 0 to 1)", GH_ParamAccess.item, true);
 }
Exemplo n.º 55
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   pManager.AddGenericParameter(RS.agentName + " " + RS.queleaName + " Settings", RS.agentNickname + RS.queleaNickname + "S", RS.agentDescription, GH_ParamAccess.item);
   pManager.AddNumberParameter("Wheel Radius", "W", "The radius of the wheels.", GH_ParamAccess.item, RS.wheelRadiusDefault);
 }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list);
            pManager.AddBooleanParameter("DisplayToggles", "DT", "Toggles the forces to display. Input should be a list of 6 booleans (N, Vy, Vz, T, Myy, Mzz). [Normal force, shear in weak axis, shear in strong axis, torsion, bending in strong direction, bending in weak direction]", GH_ParamAccess.list);
            pManager.AddNumberParameter("ScalingFactor", "sfac", "Scaling factor for the drawing. Input should be either one 'global' scaling factor or a list of 6 individual ones.", GH_ParamAccess.list, 1);
            pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item);

            pManager[3].Optional = true;
        }
Exemplo n.º 57
0
 /// <summary>
 ///     Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Witdh", "W", "Witdh", GH_ParamAccess.item,100);
     pManager.AddNumberParameter("Height", "H", "Height", GH_ParamAccess.item,100);
     //pManager.AddBooleanParameter("Multi Sheet", "MS", "Multi Sheet", GH_ParamAccess.item, true);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new StructureParam(), "Structure", "Str", "The structure to solve", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
     pManager.AddNumberParameter("Max Ratio", "R", "Maximum ratio of eigenvalue in relation to the first before break", GH_ParamAccess.item, 5);
 }
Exemplo n.º 59
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program", GH_ParamAccess.item);
            pManager.AddIntegerParameter("First set", "A", "First set of objects. Input a list of index values that correspond to the first collision group. The order is the same as the meshes output of the kinematics component. The environment would be an additional last mesh.", GH_ParamAccess.list, new int[] { 7 });
            pManager.AddIntegerParameter("Second set", "B", "Second set of objects. Input a list of index values that correspond to the second collision group. The order is the same as the meshes output of the kinematics component. The environment would be an additional last mesh.", GH_ParamAccess.list, new int[] { 4 });
            pManager.AddMeshParameter("Environment", "E", "Single mesh object representing the environment", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Environment plane", "P", "If attached to the robot, plane index where the environment is attached to", GH_ParamAccess.item, -1);
            pManager.AddNumberParameter("Linear step size", "Ls", "Linear step size in mm to check for collisions", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Angular step size", "As", "Angular step size in rad to check for collisions", GH_ParamAccess.item, PI / 4);

            pManager[3].Optional = true;
        }
Exemplo n.º 60
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddNumberParameter("Strength", "S", "Strength affects the size of the search space that the Agent be able to steer towards. Higher strengths will lead to wider range of movement.", GH_ParamAccess.item, 1.0);
   pManager.AddNumberParameter("Rate", "R", "Rate affects the range of distance from its previous wander seek point along the search space that the Agent will choose its next point to seek. Higher rates will lead to greater change in direction from one timestep to the next.", GH_ParamAccess.item, 0.5);
 }