Exemplo n.º 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;
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_PointParam("Singularity Points", "SP", "List of points, where each point relates to a vector (parallel to V)", GH_ParamAccess.list);
     pManager.Register_DoubleParam("Exponent", "h", "h controls the fall-off of the gravity effect, higher is faster fall-off", 1.0d);
     pManager.Register_DoubleParam("Factor", "k", "Scalar multiple of the gravity force (positive for attraction, negative for repulsion)", 1.0d);
     pManager.Register_BooleanParam("Exact", "e", "Use exact geodesic distances to calculate path when on a surface, otherwise use a fast approximation", false);
 }
Exemplo n.º 4
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_GenericParam("Settings", "S", "Settings object to customize integration parameters");
     pManager[3].Optional = true;
     pManager.Register_BooleanParam("Reset simulation", "R", "Reset the simulation to the starting point", false);
 }
Exemplo n.º 5
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_BooleanParam("111", "111", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("110", "110", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("101", "101", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("100", "100", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("011", "011", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("010", "010", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("001", "001", "New state for this configuration of states", GH_ParamAccess.item);
     inputManager.Register_BooleanParam("000", "000", "New state for this configuration of states", GH_ParamAccess.item);
 }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
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;
        }
Exemplo n.º 8
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;
        }
Exemplo n.º 9
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_BooleanParam("Reset", "R", "Reset the counter to 0", false);
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_BooleanParam("Reset", "r", "Time reset.", false, GH_ParamAccess.item);
 }