コード例 #1
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_IntegerParam("Step count", "Steps", "Number of steps to simulate per run of the simulation. 0 to run until integration is complete", 0);
            pManager.Register_DoubleParam("Tolerance", "Tol", "Distance from field where integration will halt. 0 to run until integration is complete", 10.0d);
            pManager.Register_BooleanParam("Stop", "Stop", "True if the integration will stop when the integration line has stopped or has wound past the stop winding angle", true);
            pManager.Register_DoubleParam("Winding Stop Angle", "StopA", "The winding angle is used to stop the integration if it winds around the set angle (radians). Used to stop the integration at singularities or orbits", 0.0d);
            pManager.Register_DoubleParam("Interpolation Radius", "IntrpR", "Radius to use in vector interpolation method. 0 to use closest vector only", 0.0d);
            pManager.Register_BRepParam("Bounding Brep", "Bound", "Bounding area to contain the integration within");
            pManager.Register_DoubleParam("Snapping Tolerance", "SnapT", "Tolerance range to test for snapping to the start point, used to detect and close orbits. 0 to disable check", 0.0d);
            pManager.Register_DoubleParam("Snapping Minimum Angle", "SnapA", "If snapping tolerance is set, this sets the minimum difference in angles before a snap occurs. 0 to disable check. Max is 1.", 0.0d);
            pManager.Register_SurfaceParam("Surface", "Surf", "Surface to constrain the integration to, the intergration will snap to this surface as it continues");
            pManager.Register_BooleanParam("Tensor Field", "Tensor", "Set to true if your input is actually a tensor field (list of planes)", false);
            pManager.Register_IntegerParam("Tensor Direction", "TensDir", "Which direction to integrate across if we're using a tensor field (0 = X, 1 = Y, 2 = Z)", 0.0d);
            pManager.Register_IntegerParam("Tensor Axes", "TensAxs", "Which Axes are used in the line continuity check, if enabled (0 = X, 1 = Y, 2 = Z)", GH_ParamAccess.list);
            pManager.Register_BooleanParam("Line Continuity", "LCont", "Force lines to follow a straighter path if one is available", false);

            pManager[0].Optional  = true;
            pManager[1].Optional  = true;
            pManager[2].Optional  = true;
            pManager[3].Optional  = true;
            pManager[4].Optional  = true;
            pManager[5].Optional  = true;
            pManager[6].Optional  = true;
            pManager[7].Optional  = true;
            pManager[8].Optional  = true;
            pManager[9].Optional  = true;
            pManager[10].Optional = true;
            pManager[11].Optional = true;
            pManager[12].Optional = true;
        }
コード例 #2
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     //inputManager.Register_GenericParam("Rules", "R", "Evolution rules that drive the behavior of a living cell. According to the rules a cell will either die or survive.", GH_ParamAccess.list);
     inputManager.Register_IntegerParam("Born Rules (Number of neigbors)", "B", "Born Rule(s). A new cell is born if surrounded by n 'alive' neighbors", GH_ParamAccess.list);     //name, nick, description, default, isList
     Params.Input[0].Optional = true;
     inputManager.Register_IntegerParam("Survive Rules (Number of neighbors)", "S", "Survive Rule(s). A cell survives if surrounded by n 'alive' neighbors", GH_ParamAccess.list); //name, nick, description, default, isList
     Params.Input[1].Optional = true;
 }
コード例 #3
0
ファイル: Component_OBSOLETE.cs プロジェクト: jlmaoju/giraffe
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //change the param access thing to have individual items, list or tree etc
            pManager.Register_MeshParam("mesh", "m", "Mesh to planarise");

            pManager.Register_IntegerParam("metric", "D/N", " 0 = euclidian error metric, 1 = normal based error metric", 1);

            pManager.Register_IntegerParam("numberOfPanels", "n", "number of planar panels required for output", 90);

            pManager.Register_BooleanParam("run", "R", "run planarisation", false);
        }
コード例 #4
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_IntegerParam("Treshold", "T", "Treshold", GH_ParamAccess.item);
     inputManager.Register_GenericParam("Resting State(s)", "R", "Resting state(s)", GH_ParamAccess.item);
     inputManager.Register_GenericParam("Excited State", "E", "Excited state", GH_ParamAccess.list);
     inputManager.Register_GenericParam("Refractory State(s)", "R", "Refractory state(s)", GH_ParamAccess.list);
 }
コード例 #5
0
ファイル: AntPicnic.cs プロジェクト: nreifenstein/Picnic
        //protected override Bitmap Icon { get { return Ants.Properties.Resources.Ants_Icons_ant_world; } }

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_SpatialGraph(), "Spatial Graph", "S", "The Spatial Graph.", GH_ParamAccess.item);
            pManager.Register_StringParam("Script", "Func", "The function to execute", GH_ParamAccess.item);
            pManager.Register_GenericParam("Value", "V", "Initial Values", GH_ParamAccess.list);
            pManager.Register_IntegerParam("Generations", "G", "Number of Generations to create.", 0, GH_ParamAccess.item);
            pManager.Register_GenericParam("Dict", "D", "Dictionary", GH_ParamAccess.item);
            pManager.Register_StringParam("Key", "K", "Key", GH_ParamAccess.item);
        }
コード例 #6
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_BooleanParam("Respawn", "Respawn", "True if the particles should be respawned when they reach the end of their lifetimes", true);
            pManager.Register_IntegerParam("New Spawn Step Count", "NewSpK", "Steps between spawning a new set of particles at the start points (0 to disable)", 0);
            pManager.Register_IntegerParam("Randomize New Spawn", "RndSp", "Randomly add or subtract up to this number from the new spawn time to create random distributions of particles (0 to disable)", 0);
            pManager.Register_DoubleParam("Interpolation Radius", "IntrpR", "Radius to use in vector interpolation method. 0 to use closest vector only", 0.0d);
            pManager.Register_BRepParam("Bounding Brep", "Bound", "Bounding area to contain the integration within");
            pManager.Register_DoubleParam("Snapping Tolerance", "SnapT", "Tolerance range to test for snapping to the start point, used to detect and close orbits. 0 to disable check", 0.0d);
            pManager.Register_DoubleParam("Snapping Minimum Angle", "SnapA", "If snapping tolerance is set, this sets the minimum difference in angles before a snap occurs. 0 to disable check. Max is 1.", 0.0d);
            pManager.Register_SurfaceParam("Surface", "Surf", "Surface to constrain the integration to, the intergration will snap to this surface as it continues");
            pManager.Register_BooleanParam("Line Continuity", "LCont", "Force lines to follow a straighter path if one is available", false);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
            pManager[6].Optional = true;
            pManager[7].Optional = true;
            pManager[8].Optional = true;
        }
コード例 #7
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_PointParam("Field Points", "P", "List of points in the vector field (parallel to V)", GH_ParamAccess.list);
            pManager.Register_VectorParam("Field Vectors", "V", "List of vectors in the vector field (parallel to P)", GH_ParamAccess.list);
            pManager.Register_PointParam("Start Points", "SP", "Points to simulate travelling through the vector field", GH_ParamAccess.list);
            pManager.Register_IntegerParam("Particle Life Time", "T", "Number of iterations for each particle to exist, by default these are respawned at their original start points when this time is up", 0);
            pManager.Register_GenericParam("Dynamics", "D", "List of dynamics to modify the vector field with", GH_ParamAccess.list);
            pManager.Register_GenericParam("Settings", "DS", "Dynamic Settings object to customize integration parameters");
            pManager.Register_BooleanParam("Reset simulation", "R", "Reset the simulation to the starting point", true);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
        }
コード例 #8
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_StringParam("Axiom", "A", "The Axiom is the first Word in the LSystem. It is also called 'seed' or 'initiator'.", "", GH_ParamAccess.item);//name, nick, description, default, isList
     inputManager.Register_GenericParam("Production Rules", "PR", "List of Production Rules used by the LSystem to generate the Words in the LSystem language.", GH_ParamAccess.list);
     inputManager.Register_IntegerParam("Number of generations", "n", "Number of words to be generated by the LSystem", 2, GH_ParamAccess.item);
 }
コード例 #9
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_IntegerParam("Neigbors", "N", "Number of neighbors in 'alive' state", 2, GH_ParamAccess.list);//name, nick, description, default, isList
 }
コード例 #10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_IntegerParam("Discrete time", "t", "Discrete Time.", 0, GH_ParamAccess.item);
     inputManager.Register_GenericParam("Cellular Automata", "CA", "Cellular Automaton.", GH_ParamAccess.item);//name, nick, description, defaul, isList
 }