Example #1
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddBoxParameter("Range Box", "RB", "", GH_ParamAccess.item);
            //1
            pManager.AddIntegerParameter("Division Scheme", "DS", "Division Scheme\r\n" +
                                         "    0: Evenly\r\n" +
                                         "    1: Refine lower coordinate proportionally\r\n" +
                                         "    2: Refine both side proportionally\r\n" +
                                         "    3: Refine higher coordinate proportionally", GH_ParamAccess.item, 0);
            Param_Integer p1 = (Param_Integer)pManager[1];

            p1.AddNamedValue("Evenly", 0);
            p1.AddNamedValue("Refine lower coordinate proportionally", 1);
            p1.AddNamedValue("Refine both side proportionally", 2);
            p1.AddNamedValue("Refine higher coordinate proportionally", 3);
            //2
            pManager.AddIntegerParameter("Mode", "Mo", "If DS = 0\r\n    0: By element number\r\n    1: By distance\r\nElse\r\n    0: By proportion\r\n    1: By prime mesh size", GH_ParamAccess.item, 0);
            Param_Integer p2 = (Param_Integer)pManager[2];

            p2.AddNamedValue("By element number / By proportion", 0);
            p2.AddNamedValue("By distance / By prime mesh size", 1);
            //3
            pManager.AddNumberParameter("Proportion or Prime mesh size", "PP", "If DS = 0: No Effect\r\nElse\r\n    If Me = 0: Proportion\r\n    If Me = 1: Prime mesh size", GH_ParamAccess.item, 0);
            //4
            pManager.AddNumberParameter("Distance or Element count in X axis", "X", "If DS = 0 and Me = 1: Distance\r\nElse: Element count\r\nSet this parameter to 0 if you do not want to divide x axis", GH_ParamAccess.item, 0);
            //5
            pManager.AddNumberParameter("Distance or Element count in Y axis", "Y", "If DS = 0 and Me = 1: Distance\r\nElse: Element count\r\nSet this parameter to 0 if you do not want to divide x axis", GH_ParamAccess.item, 0);
            //6
            pManager.AddNumberParameter("Distance or Element count in Z axis", "Z", "If DS = 0 and Me = 1: Distance\r\nElse: Element count\r\nSet this parameter to 0 if you do not want to divide x axis", GH_ParamAccess.item, 0);
        }
Example #2
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Base", "B", "Base Box", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Dynamic", "D", "Dynamic or Static, True: Dyamic, False: Static", GH_ParamAccess.item, true);
     pManager.AddGenericParameter("Material Property", "P", "PhysX Material", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
Example #3
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Base box.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "Thickness", "Thickness of a transition layer outside the Box. Default value is 1.", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("Size Inside", "SizeIn", "Element sizes inside the Box. Default value is 1.", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("Size Outside", "SizeOut", "Element sizes outside the Box. Default value is 1.", GH_ParamAccess.item, 1);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Box to zoom to", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Run", "R", "Set to true to zoom", GH_ParamAccess.item, false);
     pManager.AddTextParameter("Viewport Names", "VN", "Viewport Names to zoom to. Will use active viewport if left blank", GH_ParamAccess.list);
     pManager[2].Optional = true;
 }
Example #5
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Base Box", "B", "Base box to construct the cube mesh.", GH_ParamAccess.item, new Box(Plane.WorldXY, new Interval(-1, 1), new Interval(-1, 1), new Interval(-1, 1)));
     pManager.AddIntegerParameter("U Count", "U", "Number of faces along the {x} direction.", GH_ParamAccess.item, u);
     pManager.AddIntegerParameter("V Count", "V", "Number of faces along the {y} direction.", GH_ParamAccess.item, v);
     pManager.AddIntegerParameter("W Count", "W", "Number of faces along the {z} direction.", GH_ParamAccess.item, w);
     pManager.AddGenericParameter("iSettings", "iSettings", "Volume mesh settings.", GH_ParamAccess.item);
 }
Example #6
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Bounds", "B", "Bounds of DLA Fractal", GH_ParamAccess.item, new Box(Plane.WorldXY, new Interval(-15, 15), new Interval(-15, 15), new Interval(-15, 15)));
     Params.Input[pManager.AddPointParameter("Start Point", "P", "Start Point of Drunken Man", GH_ParamAccess.item)].Optional = true;
     pManager.AddNumberParameter("Step Size", "D", "Step Size for positions", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Seed", "S", "Seed for Randomness", GH_ParamAccess.item, 50.0);
     pManager.AddIntegerParameter("Iterations", "I", "Number of Iterations", GH_ParamAccess.item, 1000);
 }
Example #7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("XResolution", "xres", "Subdivision on x-axis", GH_ParamAccess.item, 100);
     pManager.AddIntegerParameter("YResolution", "yres", "Subdivision on y-axis", GH_ParamAccess.item, 100);
     pManager.AddIntegerParameter("ZResolution", "zres", "Subdivision on z-axis", GH_ParamAccess.item, 100);
     pManager.AddBoxParameter("Box", "B", "Box", GH_ParamAccess.item);
     pManager.AddBrepParameter("Obstacles", "Obs", "A list of breps represent obstacles", GH_ParamAccess.list);
     pManager[4].Optional = true;
 }
Example #8
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Base Box", "B", "Base box to construct the cube mesh.", GH_ParamAccess.item, new Box(Plane.WorldXY, new Interval(-1, 1), new Interval(-1, 1), new Interval(-1, 1)));
     pManager.AddIntegerParameter("U Count", "U", "Number of faces along the {x} direction.", GH_ParamAccess.item, u);
     pManager.AddIntegerParameter("V Count", "V", "Number of faces along the {y} direction.", GH_ParamAccess.item, v);
     pManager.AddIntegerParameter("W Count", "W", "Number of faces along the {z} direction.", GH_ParamAccess.item, w);
     pManager.AddBooleanParameter("Weld", "We", "Weld creases in the mesh.", GH_ParamAccess.item, weld);
     pManager.AddNumberParameter("Tolerance", "t", "Welding tolerance (Vertices smaller than this tolerance will be merged)", GH_ParamAccess.item, tolerance);
 }
        /// <inheritdoc />
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddBoxParameter("boundingBox", "bounds", "", GH_ParamAccess.item);
            pManager.AddIntegerParameter("countX", "countX", "Resolution in the x direction", GH_ParamAccess.item);
            pManager.AddIntegerParameter("countY", "countY", "Resolution in the y direction", GH_ParamAccess.item);
            pManager.AddIntegerParameter("countZ", "countZ", "Resolution in the z direction", GH_ParamAccess.item);
            pManager.AddParameter(_scalarParam);

            pManager[3].Optional = true;
        }
Example #10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Box", GH_ParamAccess.item, new Box(new BoundingBox(-1.0, -1.0, -1.0, 1.0, 1.0, 1.0)));
     pManager.AddNumberParameter("Values", "V", "Values", GH_ParamAccess.list);
     //pManager.AddIntegerParameter("XYZ resolution", "XYZ", "XYZ resolution", GH_ParamAccess.list, new List<int> { 20, 20, 20 });
     pManager.AddIntegerParameter("X resolution", "X", "X resolution", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Y resolution", "Y", "Y resolution", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Z resolution", "Z", "Z resolution", GH_ParamAccess.item, 2);
     pManager.AddNumberParameter("IsoValue", "I", "IsoValue", GH_ParamAccess.item, 0.15);
     pManager.AddBooleanParameter("Merge Vertices", "M", "Merge Vertices", 0, false);
 }
Example #11
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Box", GH_ParamAccess.item, new Box(new BoundingBox(-1.0, -1.0, -1.0, 1.0, 1.0, 1.0)));
     pManager.AddIntegerParameter("X", "X", "X", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Y", "Y", "Y", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Z", "Z", "Z", GH_ParamAccess.item, 2);
     for (int i = 0; i < pManager.ParamCount; i++)
     {
         pManager[i].Optional = true;
     }
 }
Example #12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("BoundingBox", "B", "BoundingBox", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Planes", "P", "List of planes", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Indices", "I", "Tree of indices", GH_ParamAccess.tree);
     pManager.AddNumberParameter("BucklingLength", "B", "Buckling length", GH_ParamAccess.item);
     pManager.AddNumberParameter("MinimumAngle", "A", "Minimum Angle", GH_ParamAccess.item);
     pManager.AddNumberParameter("MinimumDistance", "D", "Minimum Distance", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Continue", "C", "Continue simulation", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("Reset", "R", "Reset simulation", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("MaxTranslation", "MT", "Max Translation for a Plane", GH_ParamAccess.item);
     pManager.AddIntegerParameter("MaxRotation", "MR", "Max Rotation for a Planes", GH_ParamAccess.item);
 }
Example #13
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "Box", "Box", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Dynamic", "Dynamic", "Dynamic or Static, True: Dynamic, False: Static", GH_ParamAccess.item, true);
     pManager.AddGenericParameter("Material (Optional)", "Material", "PhysX material", GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddNumberParameter("Mass", "Mass", "Mass", GH_ParamAccess.item, 1.0);
     pManager.AddVectorParameter("Initial Linear Velocity", "Linear Vel.", "Initial linear velocity", GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddVectorParameter("Initial Angular Velocity", "Angular Vel.", "Initial angular velocity", GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddNumberParameter("Linear Damping", "Linear Damp", "Linear Damping", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Angular Damping", "Angular Damp", "Angular Damping", GH_ParamAccess.item, 1.0);
     pManager.AddMeshParameter("Displayed Meshes (Optional)", "Displayed Meshes", "Custom displayed meshes", GH_ParamAccess.list);
     pManager[8].Optional = true;
 }
Example #14
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddBoxParameter("Domain", "Domain", "Domain to create the slice from.", GH_ParamAccess.item);
            pManager.AddNumberParameter("Location", "Location", "Location in the domain to slice at", GH_ParamAccess.item);
            pManager.AddNumberParameter("Grid Size", "Grid Size", "Size of the mesh grid. Default is 1.0", GH_ParamAccess.item);
            pManager.AddBrepParameter("Exclude", "Exclude", "Breps that should be cut out from the analysis surface",
                                      GH_ParamAccess.list);
            pManager.AddIntegerParameter("Slice Direction", "Slice Direction",
                                         "Direction the domain should be sliced in. Default is x", GH_ParamAccess.item, 0);

            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;

            AddNamedValues(pManager[4] as Param_Integer, SliceDirection);
        }
Example #15
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddIntegerParameter("Unit", "U", "SI Unit\r\n    0: m\r\n    1: cm\r\n    2: mm\r\n    3: μm\r\n" +
                                         "US Unit\r\n    0: Yard\r\n    1: Feet\r\n    2: Inch", GH_ParamAccess.item, 0);
            Param_Integer p0 = (Param_Integer)pManager[0];

            p0.AddNamedValue("Meter (m) / Yard", 0);
            p0.AddNamedValue("Centimetre (cm) / Feet", 1);
            p0.AddNamedValue("Millimetre (mm) / Inch", 2);
            p0.AddNamedValue("Micrometre (µm)", 3);
            //1
            pManager.AddBoxParameter("Box", "B", "A Box to be converted to Analysis Range", GH_ParamAccess.item);
            //2
            pManager.AddBooleanParameter("Update", "Up", "Update the settings", GH_ParamAccess.item, false);
        }
Example #16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Bounds", "B", "Bounds for the Boids", GH_ParamAccess.item, new Box(Plane.WorldXY, new Interval(-15, 15), new Interval(-15, 15), new Interval(-15, 15)));
     pManager.AddPointParameter("Starting Points", "P", "Starting Points for each Boid", GH_ParamAccess.list, Point3d.Origin);
     pManager.AddNumberParameter("Perception Radius", "PR", "Perception Radius of Boids", GH_ParamAccess.item, 15.0);
     pManager.AddNumberParameter("Alignment Multiplier", "Am", "Alignment Multiplier of Boids, must be between 0 and 1", GH_ParamAccess.item, 0.1);
     pManager.AddNumberParameter("Cohesion Multiplier", "Cm", "Cohesion Multiplier of Boids, must be between 0 and 1", GH_ParamAccess.item, 0.1);
     pManager.AddNumberParameter("Separation Multiplier", "Sm", "Separation Multiplier of Boids, must be between 0 and 1", GH_ParamAccess.item, 0.1);
     pManager.AddCurveParameter("Attractor Curves", "AttC", "Curves to Attract the Boids to", GH_ParamAccess.list);
     pManager.AddNumberParameter("Attractor Multiplier", "AttM", "Attractor Strength, must be between -1 and 1", GH_ParamAccess.item, 0.1);
     pManager.AddNumberParameter("Attractor Velocity", "AttV", "Attractor Velocity, must be between -1 and 1", GH_ParamAccess.item, 0.05);
     pManager.AddBooleanParameter("Reset", "R", "Reset Simpulation Button", GH_ParamAccess.item, false);
     Params.Input[6].Optional    = true;
     Params.Input[9].Optional    = true;
     Params.Input[6].DataMapping = GH_DataMapping.Flatten;
     Params.ParameterChanged    += Params_ParameterChanged;
 }
Example #17
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Collision Planes", "Planes", "If you have planes to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddSurfaceParameter("Collision Spheres", "Spheres", "If you have spheres to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddBoxParameter("Collision Boxes", "Boxes", "If you have spheres to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddMeshParameter("Collision Meshes", "Meshes", "Make sure the mesh is triangulated and clean. Particles only collide with mesh faces who's normal vectors point away from the particle. E.g. if you want particles to stay outside of the mesh, make all mesh face normals point inward.", GH_ParamAccess.list);
     pManager.AddMeshParameter("Convex Meshes", "CMeshes", "Meshes that are known to be convex are being recognized faster. Add them here. (Currently only supports meshes with up to 64 faces)", GH_ParamAccess.list);
     pManager[0].Optional    = true;
     pManager[1].Optional    = true;
     pManager[2].Optional    = true;
     pManager[3].Optional    = true;
     pManager[4].Optional    = true;
     pManager[0].DataMapping = GH_DataMapping.Flatten;
     pManager[1].DataMapping = GH_DataMapping.Flatten;
     pManager[2].DataMapping = GH_DataMapping.Flatten;
     pManager[3].DataMapping = GH_DataMapping.Flatten;
     pManager[4].DataMapping = GH_DataMapping.Flatten;
 }
Example #18
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Collision Planes", "Planes", "If you have planes to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddSurfaceParameter("Collision Spheres", "Spheres", "If you have spheres to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddBoxParameter("Collision Boxes", "Boxes", "If you have spheres to register, use this input rather than meshes.", GH_ParamAccess.list);
     pManager.AddMeshParameter("Collision Meshes", "Meshes", "Make sure the mesh is triangulated, clean and all face normals uniformly point inwards", GH_ParamAccess.list);
     pManager.AddMeshParameter("Convex Meshes", "CMeshes", "Meshes that are known to be convex are being recognized faster. Add them here. (Currently only supports meshes with up to 64 faces)", GH_ParamAccess.list);
     pManager[0].Optional    = true;
     pManager[1].Optional    = true;
     pManager[2].Optional    = true;
     pManager[3].Optional    = true;
     pManager[4].Optional    = true;
     pManager[0].DataMapping = GH_DataMapping.Flatten;
     pManager[1].DataMapping = GH_DataMapping.Flatten;
     pManager[2].DataMapping = GH_DataMapping.Flatten;
     pManager[3].DataMapping = GH_DataMapping.Flatten;
     pManager[4].DataMapping = GH_DataMapping.Flatten;
 }
Example #19
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddBooleanParameter("ON", "ON", "Turn the RealSense grabber on and off.", GH_ParamAccess.item, false);
            pManager.AddTransformParameter("Transform", "T", "Transform the sensor data.", GH_ParamAccess.item);
            pManager.AddBoxParameter("Clipping Box", "CP", "Clipping box for the sensor data.", GH_ParamAccess.item, Box.Empty);

            pManager.AddIntegerParameter("Dec Mag", "DM", "Decimation filter magnitude", GH_ParamAccess.item, DecimationMagnitude);
            pManager.AddIntegerParameter("Spat Mag", "SM", "Spatial smoothing filter magnitude", GH_ParamAccess.item, SpatialMagnitude);
            pManager.AddNumberParameter("Spat Alpha", "SA", "Spatial smoothing filter smooth alpha", GH_ParamAccess.item, SpatialSmoothAlpha);
            pManager.AddNumberParameter("Spat Delta", "SD", "Spatial smoothing filter smooth delta", GH_ParamAccess.item, SpatialSmoothDelta);

            pManager.AddNumberParameter("Temp Alpha", "TA", "Temporal smoothing filter smooth alpha", GH_ParamAccess.item, TemporalSmoothAlpha);
            pManager.AddNumberParameter("Temp Delta", "TD", "Temporal smoothing filter smooth delta", GH_ParamAccess.item, TemporalSmoothDelta);

            for (int i = 1; i < pManager.ParamCount; ++i)
            {
                pManager[i].Optional = true;
            }
        }
Example #20
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "Add a list of points which will become the creepers spawn location", GH_ParamAccess.list);
     pManager.AddBoxParameter("Box", "B", "Add a box specifying the bounding box to bounce from", GH_ParamAccess.item);
 }
Example #21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Add a box specifying the spawn area in 2D or 3D", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Spawn Location", "S", "Input a value list specifying the spawn sets (0 = 2D Aligned or 3D Random on Ground | 1 = 2D Random Scattered on ground or 3D Random Scattered in box", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Spawn Count", "CC", "Input an integer specifying the creeper count at start", GH_ParamAccess.item, 500);
 }
Example #22
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBoxParameter("Box", "B", "Box container in which the flock will kept", GH_ParamAccess.item);
     pManager.AddNumberParameter("Multiplier", "M", "Strength of parameter", GH_ParamAccess.item, 1);
 }