/// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     pManager.AddIntegerParameter("radius", "r", "the radius in index space, point pairs with distance below this value will be tested", GH_ParamAccess.item);
     pManager.AddNumberParameter("possibility", "p", "the possibility of connect a pair of points ", GH_ParamAccess.item);
     pManager.AddNumberParameter("near level", "nl", "if the chemoattractor level dffenrence between a pair of points is lower than this value, we connect them with possibility.", GH_ParamAccess.item);
 }
Exemplo n.º 2
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Border", "B", "Overlapping of the layers", GH_ParamAccess.item, 0);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index associated with the calculated moment", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "pl", "The bending plane", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingMoment", "M", "The bending moment [kNm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingStress", "stressB", "The bending stress [MPa]", GH_ParamAccess.item);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddVectorParameter("TotalDisplacements", "vDispl", "The total displacement of each node [mm]", GH_ParamAccess.list);
     pManager.AddNumberParameter("MaximumDisplacementX", "Xmax", "The maximum displacement in the x direction [mm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("MaximumDisplacementY", "Ymax", "The maximum displacement in the y direction [mm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("MaximumDisplacementZ", "Zmax", "The maximum displacement in the z direction [mm]", GH_ParamAccess.item);
 }
Exemplo n.º 5
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Planes", "P", "Section Planes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0.0);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Width", "w", "The larger value of the rectangle dimensions in mm", GH_ParamAccess.item);
     pManager.AddNumberParameter("Height", "h", "The smaller value of the rectangle dimensions in mm", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "t", "The thickness of the cross section in mm. If nothing specified, the default is a solid", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Struts", "Struts", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddTextParameter("Gradient String", "Grad", "The spatial gradient as an expression string", GH_ParamAccess.item, "0");
     pManager.AddNumberParameter("Maximum Radius", "Rmax", "Maximum radius in gradient", GH_ParamAccess.item, 0.5);
     pManager.AddNumberParameter("Minimum Radius", "Rmin", "Minimum radius in gradient", GH_ParamAccess.item, 0.2);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "Ln", "Line representing the cable element [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item);
     pManager.AddNumberParameter("PreTension", "P", "Optional pre-tension [kN]", GH_ParamAccess.item);
     pManager[3].Optional = true;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of a bar element", GH_ParamAccess.item);
     pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of a bar element", GH_ParamAccess.item);
     pManager.AddLineParameter("Line", "ln", "The updated line geometry", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialForce", "F", "The axial force [kN] in the bar (- is compression)", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialStress", "stressA", "The axial stress [MPa] in the bar (- is compression)", GH_ParamAccess.item);
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddNumberParameter("Area", "A", "Area of cross section", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Iyy", "Iyy", "Second moment of area around y-y axis of cross section", GH_ParamAccess.item, 200000);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
        }
Exemplo n.º 11
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of each bar element", GH_ParamAccess.list);
     pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of each bar element", GH_ParamAccess.list);
     pManager.AddNumberParameter("AxialStress", "stressA", "The axial stresses [MPa]", GH_ParamAccess.list);
     pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index of each shared point between two consecutive line segments", GH_ParamAccess.list);
     pManager.AddNumberParameter("BendingStress", "stressB", "The bending stresses [MPa]", GH_ParamAccess.list);
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddNumberParameter("Heigth", "H", "Height of cross section", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Width", "W", "Width of cross section", GH_ParamAccess.item, 100);

             pManager[0].Optional = true;
            pManager[1].Optional = true;
        }
Exemplo n.º 13
0
 /// <summary>
 /// Registers output parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "New Points", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "New radius", GH_ParamAccess.list);
     pManager.AddLineParameter("Acceleration", "A", "Draws lines to represent the acceleration of a point", GH_ParamAccess.list);
     pManager.AddLineParameter("Velocity", "V", "Draws lines to represent to velocity of a point. A good way to check if the system has settled is to attached the following to this output: Curve Length -> Mass Addition -> Data Recorder -> Quick Graph", GH_ParamAccess.list);
     pManager.AddNumberParameter("Brigthnesses", "B", "Current brightness of mesh at location of point", GH_ParamAccess.list);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddNumberParameter("BucklingLoadFactor", "BLF", "The buckling load factor [-]", GH_ParamAccess.item);
     pManager.AddNumberParameter("LoadFactors", "LF", "Load factor for each iteration", GH_ParamAccess.list);
     pManager.AddNumberParameter("DisplacementRMS", "dRMS", "The displacements as a RMS value in [m] for each iteration", GH_ParamAccess.list);
     pManager.AddPointParameter("VertexPositions", "V", "The vertex positions for each iteration", GH_ParamAccess.tree);
     pManager.AddGenericParameter("GoalOutput", "O", "The output from the goals for each iteration. The data structure is identical to the PGoals input", GH_ParamAccess.tree);
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Spring Mesh", "Spring Mesh", "Spring Mesh", GH_ParamAccess.item);
     pManager.AddCircleParameter("Planarization Regions", "Planarization Regions", "Planarization Regions", GH_ParamAccess.list);
     pManager.AddNumberParameter("Bending Stiffness", "Bending Stiffness", "Bending Stiffness", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Stiffness", "Stiffness", "Stiffness", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", GH_ParamAccess.list);
     pManager.AddNumberParameter("Stiffness (Planar Regions)", "Stiffness (Planar Regions)", "Stiffness (Planar Regions)", GH_ParamAccess.list);
 }
Exemplo n.º 16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("LineA", "LnA", "Line representing the first segment [m]", GH_ParamAccess.item);
     pManager.AddLineParameter("LineB", "LnB", "Line representing the consecutive segment [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Inertia", "I", "The moment of inertia [mm4]", GH_ParamAccess.item);
     pManager.AddNumberParameter("z-distance", "z", "The distance from the section axis to the extreme fiber [mm]", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RestAngleOption", "Opt", "Specify the rest angle. 0: straight. 1: current angle", GH_ParamAccess.item, 0);
 }
Exemplo n.º 17
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Lines", "L", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Sides", "S", "Number of sides for the struts", GH_ParamAccess.item, 6);
     pManager.AddNumberParameter("Start Radius", "Rs", "Radius at the start of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("End Radius", "Re", "Radius at the end of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("Node Depth", "N", "Offset depth for nodes", GH_ParamAccess.item);
     pManager.AddNumberParameter("Division", "D", "Segment division length", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Open", "O", "If true, nodes with only one connected strut will be left open", GH_ParamAccess.item, false);
 }
Exemplo n.º 18
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Radius", "R", "Radius of cylinder", GH_ParamAccess.item, 15);
     pManager.AddNumberParameter("Height", "H", "Height of cylinder", GH_ParamAccess.item, 25);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (axial)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (theta)", GH_ParamAccess.item, 15);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (radial)", GH_ParamAccess.item, 4);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
Exemplo n.º 19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Cell Size ( x )", "CSx", "Size of unit cell (x)", GH_ParamAccess.item, 5); // '5' is the default value
     pManager.AddNumberParameter("Cell Size ( y )", "CSy", "Size of unit cell (y)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Cell Size ( z )", "CSz", "Size of unit cell (z)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( x )", "Nx", "Number of unit cells (x)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( y )", "Ny", "Number of unit cells (y)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( z )", "Nz", "Number of unit cells (z)", GH_ParamAccess.item, 5);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Possibility Changing Direction", "PCD", "Possibility of agents to change direction. As number range: 0~1", GH_ParamAccess.item, 0.1);
     pManager.AddNumberParameter("Verticle Guide Factor", "VGF", "A factor to make agent move vertically than horizontally. 0 for no guide. The bigger the value, more verticelly agents will move. As number above 0.", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Division Detect Radius", "DVR", "Division detect radius. As integer", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Division Min", "DvMin", "Divide if neighborhood agents count above or equal. As integer.", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Division Max", "DvMax", "Divide if neighborhood agents count below.  As integer, below (DVR*2 + 1)^3 for brep env and below (DVR*2 + 1)^2 for srf env.", GH_ParamAccess.item, 10);
     pManager.AddIntegerParameter("Death Detect Radius", "DER", "Death detect radius", GH_ParamAccess.item, 3);
     pManager.AddIntegerParameter("Death Min", "DeMin", "Die if neighborhood agents count below or equal. As integer.", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Death Max", "DeMax", "Die if neighborhood agents count above. As integer, below (DVR*2 + 1)^3 for brep env and below (DVR*2 + 1)^2 for srf env.", GH_ParamAccess.item, 123);
 }
Exemplo n.º 21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Sensor Angle", "SA", "Agent sense a cone space with apenture equals 2*thisvalue. As number in degree, range 0~180", GH_ParamAccess.item, 22.5);
     pManager.AddNumberParameter("Sotate Angle", "RA", "Agent does not rotate to a sensed angle with max chemoattractor, it rotate that angle multiplies rotateangle/senseangle. As number in degree, range 0~180", GH_ParamAccess.item, 45);
     pManager.AddNumberParameter("Sensor Offset", "SO", "Agent's sensor's max range.(height of sense cone). As number", GH_ParamAccess.item, 10);
     pManager.AddIntegerParameter("Detect Direction R", "DDirR", "Subdivide of sense points on perimeter of sensecone's bottom circle. As integer.", GH_ParamAccess.item, 4);
     pManager.AddIntegerParameter("Detect Direction Phy", "DDirP", "Subdivide of sense points on radius of sensecone's bottom circle. As integer.", GH_ParamAccess.item, 1);
     pManager.AddIntegerParameter("Death Distance", "DDis", "Agents die after travel such steps", GH_ParamAccess.item, 100);
     pManager.AddNumberParameter("Max Speed", "MS", "Agents' speed in index space. As number.", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Deploy Trace Once", "DepT", "Agent deploys such amount of chemoattractor once step. As number.", GH_ParamAccess.item, 10);
 }
Exemplo n.º 22
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Count X", "X", "Slices in x direction", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Count Y", "Y", "Slices in y direction", GH_ParamAccess.item, 2);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base Plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("Project", "p", "Project slices to xy plane", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("Distance", "d", "Minimal distance between projected slices", GH_ParamAccess.item, 1.0);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Food", "food", "food", GH_ParamAccess.list); //0
     pManager[0].Optional = true;
     pManager.AddPointParameter("Origin", "origin", "origin", GH_ParamAccess.list); //1
     pManager.AddNumberParameter("Step", "D", "Step distance", GH_ParamAccess.item,45); //2
     pManager.AddNumberParameter("Infuence", "di", "Infuence distance", GH_ParamAccess.item,3); //3
     pManager.AddNumberParameter("Kill-Eat", "dk", "Killing distance", GH_ParamAccess.item,1.2); //4
     pManager.AddIntegerParameter("Iteraction", "loop", "Number of iteraction", GH_ParamAccess.item,1); //5
     pManager.AddBooleanParameter("Reset", "reset", "Reset structure", GH_ParamAccess.item,false); //6
 }
Exemplo n.º 24
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Goals", "PGoals", "Permanent goals e.g. bar, rod and support goals as FLATTENED list", GH_ParamAccess.list);
     pManager.AddGenericParameter("Load", "LGoals", "K2Structural load goals", GH_ParamAccess.list);
     pManager.AddNumberParameter("LFStart", "LFstart", "The start load factor", GH_ParamAccess.item);
     pManager.AddNumberParameter("LFStep", "LFstep", "The load factor step size", GH_ParamAccess.item);
     pManager.AddNumberParameter("Angle", "alfa", "Specify the allowed angle deviation between the tangent to the load-displacement curve and vertical in [degrees]", GH_ParamAccess.item, 15.0);
     pManager.AddNumberParameter("Displ", "dMax", "Specify the maximum allowed displacement for a vertex in [m]", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Threshold", "thres", "The total kinetic energy threshold to define equilibrium", GH_ParamAccess.item, 1e-15);
     pManager.AddIntegerParameter("IterationCount", "iter", "Specify the maximum number of equilibrium iterations for each load increment", GH_ParamAccess.item, 100);
     pManager.AddBooleanParameter("OutputAll?", "opt", "Output option. If true, displacements and goal results are output for each load increment. If false, only for the last two", GH_ParamAccess.item, false);
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddNumberParameter("Youngs Modulus", "E", "Modulus of elasticity", GH_ParamAccess.item, 210000);
            pManager.AddNumberParameter("Density", "Rho", "Density of material", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Poissons Ratio", "Nu", "Poissons Ratio", GH_ParamAccess.item, 0.3);
            pManager.AddNumberParameter("Shear Modulus", "G", "Shear modulus", GH_ParamAccess.item, 1000);

             pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
             pManager[3].Optional = true;
        }
Exemplo n.º 26
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddGeometryParameter("Design Space", "DS", "Design Space (Brep or Mesh)", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Orientation Plane", "Plane", "Lattice orientation plane", GH_ParamAccess.item, Plane.WorldXY); // default is XY-plane
     pManager.AddNumberParameter("Cell Size ( x )", "CSx", "Size of unit cell (x)", GH_ParamAccess.item, 5); // default is 5
     pManager.AddNumberParameter("Cell Size ( y )", "CSy", "Size of unit cell (y)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Cell Size ( z )", "CSz", "Size of unit cell (z)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Min Strut Length", "MinL", "Minimum allowable strut length for trimmed struts.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Max Strut Length", "MaxL", "Maxmimum allowable strut length for trimmed struts.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Strict tolerance", "Strict", "Specifies if we use a strict tolerance (i.e. strictly inside design space).", GH_ParamAccess.item, false);
 }
Exemplo n.º 27
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curves", "C", "Curves to offset", GH_ParamAccess.list);
            pManager.AddNumberParameter("Distance", "D", "Offset distance", GH_ParamAccess.item);
            pManager.AddPlaneParameter("Plane", "P", "Plane for offset operation", GH_ParamAccess.item);
            pManager.AddIntegerParameter("End Type", "E", "0 = Round\n1 = Square\n2 = Butt", GH_ParamAccess.item, 0);
            pManager.AddIntegerParameter("Join Type", "J", "0 = Round\n1 = Square\n2 = Miter", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("Miter Limit", "M", "", GH_ParamAccess.item, 10.0);
            pManager.AddNumberParameter("Arc Tolerance", "A", "The maximum distance that the flattened path will deviate from the 'true' arc", GH_ParamAccess.item, 0.01);

            pManager[2].Optional = true;
        }
Exemplo n.º 28
0
 /// <summary>
 /// Registers input parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "List of points for repulsion", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "Radius of points", GH_ParamAccess.list);
     pManager.AddMeshParameter("Mesh", "M", "Mesh on which points will move.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Damping", "D", "Damping the system. If damping=1, the system will keep running", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Force", "F", "Force working between points", GH_ParamAccess.item, 15);
     pManager.AddColourParameter("Colour", "C", "Vertex Colours in same order as vertices", GH_ParamAccess.list);
     pManager.AddNumberParameter("Colour Sensitivity Repulsion", "CIRE", "1 = if black, then NO repulsion, 0 = same repulsions anywhere on mesh", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Colour Sensitivity Radius", "CIRA", "1 = if black, then full radius, if white then radius = 0, 0 = radius doesn't change", GH_ParamAccess.item, 0.7);
     pManager.AddBooleanParameter("Reset", "Reset", "Resets the system", GH_ParamAccess.item, true);
 }
Exemplo n.º 29
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Diffuse color of the material", GH_ParamAccess.item);
     pManager.AddColourParameter("Ambient Color", "[aC]", "Ambient color of the material, multiplied by the color of the ambient light in the scene.  Default is black", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Emissive Color", "[eC]", "Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Specular Color", "[sC]", "Specular color of the material, i.e., how shiny the material is and the color of its shine. Setting this the same color as the diffuse value (times some intensity) makes the material more metallic-looking; setting this to some gray makes the material look more plastic. Default is dark gray.", GH_ParamAccess.item, System.Drawing.Color.DarkGray);
     pManager.AddNumberParameter("Shininess", "[S]", "How shiny the specular highlight is; a higher value gives a sharper highlight. Default is 30", GH_ParamAccess.item, 30.0);
     pManager.AddNumberParameter("[Opacity]", "[O]", "Number in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque.", GH_ParamAccess.item, 1.0);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Exemplo n.º 30
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Settings Dictionary", "Settings", "Silkworm Settings Dictionary", GH_ParamAccess.list);
            pManager.AddBrepParameter("Planar Breps", "Regions", "A List of Planar Breps", GH_ParamAccess.list);

            pManager.AddIntegerParameter("Infill Type", "Infill Type", "The Type of Pattern: 0 - Perimeter Spiral, 1 - Hatch", GH_ParamAccess.item);
            pManager.AddNumberParameter("Spiral Spacing", "Spacing", "The spacing between lines for the Perimeter Spiral Pattern", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Density", "Infill Density", "The Density of The Infill Pattern as a Value between 0 and 1.  This option only applies to Hatch Patterns", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Rotation", "Infill Rotation", "Rotation in Degrees for Infill Hatch Pattern", GH_ParamAccess.list);

            pManager[3].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
        }