Example #1
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_DoubleParam("Thickness", "T", "Default thickness", 1.0, GH_ParamAccess.item);                 //name, nick, description, default, isList
     inputManager.Register_DoubleParam("Thickness scale", "dT", "Default thickness scale", 0.9, GH_ParamAccess.item);    //name, nick, description, default, isList
     //profile settings
     inputManager.Register_CurveParam("Profile curve", "P", "Default profile curve", GH_ParamAccess.item);               //name, nick, description, default, isList
     inputManager.Register_PlaneParam("Profile Pivot", "PP", "Profile pivot plane", Plane.WorldXY, GH_ParamAccess.item); //name, nick, description, default, isList
 }
Example #2
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_PlaneParam("Plane", "Pl", "Plane for the vortex to operate on. The origin of the plane is the singularity point of the vortex", GH_ParamAccess.list);
     pManager.Register_DoubleParam("Exponent", "h", "Distance from field where integration will halt. 0 to run until integration is complete", 1.0d);
     pManager.Register_DoubleParam("Factor", "k", "Scalar multiple of the gravity force (positive for attraction, negative for repulsion)", 1.0d);
     pManager.Register_DoubleParam("Rotational Factor", "a", "Scalar multiple of the effect the spiral causes on the vector field", 1.0d);
     pManager.Register_BooleanParam("Exact", "e", "Use exact geodesic distances to calculate spiral path when on a surface, otherwise use a fast approximation", false);
     pManager.Register_BooleanParam("Funnel", "F", "True if you want a funnel instead of a vortex. A funnel will attract on one side and shoot out the other", false);
     pManager.Register_BooleanParam("Reverse", "R", "True if you want to reverse the spiral when constrained to a surface", false);
 }
Example #3
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
        {
            inputManager.Register_StringParam("Source String", "S", "Source String. Each symbol in the string represents a command that drives the Turtle.", GH_ParamAccess.item);//name, nick, description, default, isList

            //Default step & step scale
            inputManager.Register_DoubleParam("Step length", "L", "Length of the turle's step.", 10.0, GH_ParamAccess.item);             //name, nick, description, default, isList
            inputManager.Register_DoubleParam("Step length scale", "dL", "Step length scale", 0.9, GH_ParamAccess.item);                 //name, nick, description, default, isList

            inputManager.Register_DoubleParam("Angle", "A", "Default angle of the turle used for rotation.", 90.0, GH_ParamAccess.item); //name, nick, description, default, isList
            inputManager.Register_DoubleParam("Angle scale", "dA", "Default angle scale", 0.9, GH_ParamAccess.item);                     //name, nick, description, default, isList

            //Position + Orientation of the turtle:
            inputManager.Register_PlaneParam("Initial Position and Orientation", "O", "Initial Position and Orientation of the Turtle", _defaultInitialOrientation, GH_ParamAccess.item); //name, nick, description, default, isList

            inputManager.Register_GenericParam("Tube Settings", "TS", "Tube Settings", GH_ParamAccess.item);                                                                              //name, nick, description, default, isList
            Params.Input[6].Optional = true;
        }
Example #4
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_PlaneParam("Plane", "Pl", "Plane for the vortex to operate on. The origin of the plane is the singularity point of the vortex", GH_ParamAccess.list);
     pManager.Register_DoubleParam("k1", "k1", "Scalar multiple of the effect of the plane", 1.0d);
     pManager.Register_DoubleParam("k2", "k2", "Exponent controlling the curves steepness", 0.5d);
 }