示例#1
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Vector 1", "V1", "First Vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector 2", "V2", "Second Vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Z axis", "Z", "Z axis of reference plane - default is World Z", GH_ParamAccess.item, Vector3d.ZAxis);
     pManager[2].Optional = true;
 }
示例#2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("t", "t", "Param", GH_ParamAccess.item);
     pManager.AddVectorParameter("Constant", "C", "Parameter Constant", GH_ParamAccess.item);
     pManager.AddVectorParameter("Multi", "M", "Parameter Multi", GH_ParamAccess.item);
     pManager.AddVectorParameter("Repeat", "R", "Parameter Repeat", GH_ParamAccess.item);
     pManager.AddVectorParameter("Phase", "P", "Parameter Phase", GH_ParamAccess.item);
 }
        /// <inheritdoc />
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddVectorParameter("scale", "scale", "", GH_ParamAccess.item, new Vec3d(1.0, 1.0, 1.0));
            pManager.AddVectorParameter("offset", "offset", "", GH_ParamAccess.item, new Vec3d(1.0, 1.0, 1.0));

            pManager[0].Optional = true;
            pManager[1].Optional = true;
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("GMT", "GMT", "Positive or negative offset for GMT timezone", GH_ParamAccess.item, 1);
     pManager.AddTimeParameter("Time", "Time", "Date/Time for the sun position", GH_ParamAccess.item, new DateTime(2013, 6, 1, 12, 0, 0, 0));
     pManager.AddNumberParameter("Latitude", "Lat", "Latitudal coordinates for the position of inquery", GH_ParamAccess.item, 52.2066);
     pManager.AddNumberParameter("Longitude", "Long", "Longitudal coordinates for the position of inquery", GH_ParamAccess.item, 5.6422);
     pManager.AddVectorParameter("North", "Nrth", "The vector indicating the north direction", GH_ParamAccess.item, new Vector3d(0, 1, 0));
     pManager.AddVectorParameter("Up", "Up", "The vector pointing to the sky", GH_ParamAccess.item, new Vector3d(0, 0, 1));
 }
示例#5
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("nodal_coordinates", "R", "[[x1,y1,z1],...](DataTree)", GH_ParamAccess.tree, -9999);                                                   ///
     pManager.AddPointParameter("grid points", "P", "[[p00,p10...],[p01,p11]...](DataTree)", GH_ParamAccess.tree);                                                      ///
     pManager.AddVectorParameter("A vector that is the basis for rotation", "vec", "Nodes are rotated around this vector", GH_ParamAccess.item, new Vector3d(1, 0, 0)); ///
     pManager.AddNumberParameter("rotate angle", "angle", "fold angle(not radian)", GH_ParamAccess.item, 90);                                                           ///
     pManager.AddPointParameter("center point of rotation", "center", "center point of rotation", GH_ParamAccess.item, new Point3d(0, 0, 0));                           ///
     pManager.AddVectorParameter("offset after rotation", "offset", "R is offsetted after rotation", GH_ParamAccess.item, new Vector3d(0, 0, 0));                       ///
     pManager[1].Optional = true;
 }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("point", "point", "...", GH_ParamAccess.item);
            pManager.AddTextParameter("patternName", "patternName", "...", GH_ParamAccess.item);
            pManager.AddVectorParameter("forceVector(N|lbf)", "forceVector(N|lbf)", "...", GH_ParamAccess.item, Vector3d.Unset);
            pManager.AddVectorParameter("momentVector(N|lbf)", "momentVector(N|lbf)", "...", GH_ParamAccess.item, Vector3d.Unset);

            Params.Input[2].Optional = true;
            Params.Input[3].Optional = true;
        }
示例#7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Nodes", "N", "Nodes as points", GH_ParamAccess.list);
     //pManager.AddIntegerParameter("Bars", "B", "Bars by node indices (start/end)", GH_ParamAccess.tree);
     pManager.AddIntegerParameter("Bars", "B1", "Bars by node indices (start)", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Bars", "B2", "Bars by node indices (end)", GH_ParamAccess.list);
     pManager.AddVectorParameter("Supports", "S", "Nodal support conditions, represented as a vector", GH_ParamAccess.list);
     pManager.AddVectorParameter("Loads", "L", "Nodal load conditions, represented as a vector", GH_ParamAccess.list);
     pManager.AddNumberParameter("Materials", "P", "Bar properties", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new MolecularParam(), "Molecular", "Molecular", "Input structure. (Accepts a Rhino mesh, a PolyMesh or a native Molecular data type.)", GH_ParamAccess.item);
     pManager.AddParameter(new MolecularParam(), "Potentials", "PCL", "Potential connections list for member-additive ", GH_ParamAccess.item);
     pManager[1].Optional = true;
     pManager.AddVectorParameter("Fixities", "Fixities", "Nodal support conditions, represented as a vector (0: fixed, 1: free)", GH_ParamAccess.list);
     pManager.AddVectorParameter("Forces", "Forces", "Nodal load conditions, represented as a vector", GH_ParamAccess.list);
     pManager.AddNumberParameter("Tensile", "-Limit", "Tensile capacity", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Compressive", "+Limit", "Compressive capacity", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Joint cost", "Joint", "Joint cost", GH_ParamAccess.item, 0.0);
     pManager.AddBooleanParameter("Reset", "Reset", "Reset", GH_ParamAccess.item, true);
 }
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("Positions", "Pos", "Point coordinates of the supports", GH_ParamAccess.list);
            pManager.AddVectorParameter("Translation Springs", "Trans", "Translation spring stiffnesses [kN/m]", GH_ParamAccess.item);
            pManager.AddVectorParameter("Rotation Springs", "Rot", "Rotation spring stiffnesses [kN/rad]", GH_ParamAccess.item);
            //TODO Plane not implemented yet!
            //pManager.AddPlaneParameter("Planes", "Plane", "Orientation planes of the supports", GH_ParamAccess.item);
            pManager[1].Optional = true;
            pManager[2].Optional = true;

            //TODO Plane not implemented yet!
            //pManager[3].Optional = true;
        }
示例#10
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;
 }
示例#11
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Meshes", "Meshes", "Meshes used for the computation in physics simulation", GH_ParamAccess.list);
     pManager.AddPlaneParameter("Frame", "Frame", "Frame", GH_ParamAccess.item, Plane.WorldXY);
     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[3].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", "The displayed meshes can be different and typically has more details and higher resolution that the actual meshes used in physics simulation", GH_ParamAccess.list);
     pManager[9].Optional = true;
 }
示例#12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("window Panel Mesh", "mfpanel", "A planar mesh representing a panel of a window", GH_ParamAccess.item);
     pManager.AddMeshParameter("Shade Module Mesh", "mshade", "A list of shade meshes to be evaluated for direct shade coverage", GH_ParamAccess.list);
     pManager.AddVectorParameter("Projection Vector", "dir", "The vectors for shading evaluation (sun vectors)", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Launch the analysis", "start", "If bool is True: analysis is running, if bool is False: analysis stopped", GH_ParamAccess.item);
 }
示例#13
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Geom", "G", "需要推拉的Curve,Surface面和线必须是平面或平面线", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "推拉的方向和距离", GH_ParamAccess.item);
     pManager.AddBooleanParameter("BothSide", "D", "是否双向推拉", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Cap", "C", "是否封口", GH_ParamAccess.item, true);
 }
示例#14
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new Param_KDTree(), "KDTree", "K", "KDTreeCloud to calculate normals on.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number of Neighbors", "N", "Ámount of Nearest Neighbors to use for calculation of normal. Minimum 3.", GH_ParamAccess.item, 5);
     pManager.AddVectorParameter("Guide Vector", "G", "Guiding Vector or Centering Point, Scan Position to orient Normal. Supply a vector3d and if centering point is chosen for GuideStyle, then the Vector3d will be directly tranlated to a point.", GH_ParamAccess.item, Vector3d.ZAxis);
     pManager.AddBooleanParameter("GuideStyle", "S", "Choose between Guiding Vector3d or Guiding Center Point. \n Vector3d = 0, CenterPoint = 1, Previous Calculated Nomal = 2.", GH_ParamAccess.item, true);
 }
示例#15
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new ModuleNameParameter(),
                           "Module Name",
                           "MN",
                           "Module name (except '" + Config.RESERVED_TO_STRING + "'). " +
                           "The Name will be converted to lowercase.",
                           GH_ParamAccess.item);
     pManager.AddPointParameter("Module Part Points",
                                "Pt",
                                "Points inside the Module Parts. Module parts will be fit" +
                                " into the Slots of the Envelope.",
                                GH_ParamAccess.list);
     pManager.AddGeometryParameter("Geometry",
                                   "G",
                                   "Geometry used to materialize the result of the " +
                                   "Monoceros Solver. The Module geometry does not have to fit " +
                                   "into the generated Module cage and can be larger, " +
                                   "smaller, different or none.",
                                   GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddPlaneParameter("Base Plane",
                                "B",
                                "Grid space base plane. Defines orientation of the grid.",
                                GH_ParamAccess.item,
                                Plane.WorldXY);
     pManager.AddVectorParameter("Module Part Diagonal",
                                 "D",
                                 "Vector specifying single Module Part dimensions" +
                                 "in base-plane-aligned XYZ axes. The Module Part Diagonal " +
                                 "must match Envelope's Slot diagonals.",
                                 GH_ParamAccess.item,
                                 new Vector3d(1.0, 1.0, 1.0));
 }
示例#16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Tag", "Tag", "Tag", GH_ParamAccess.item, "0");            //We should add default values here.
     pManager.AddIntegerParameter("LoadCase", "LC", "Load case", GH_ParamAccess.item, 0); //We should add default values here.
     pManager.AddPointParameter("PointLoad", "Pt", "Point to which load will be assigned", GH_ParamAccess.item);
     pManager.AddVectorParameter("VectorLoad[kN]", "Vec", "Vector which describe the diretion and value in kN", GH_ParamAccess.item);
 }
示例#17
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Cloth Meshes", "Mesh", "Connect one or multiple meshes to make cloth.", GH_ParamAccess.list);
     pManager.AddVectorParameter("Velocities", "Vel", "Initial velocities. Either supply one vector per mesh vertex or one vector per mesh. In any case it has to be a tree structure matching the mesh count.", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Masses", "Mass", "Either supply one value per mesh vertex or one value per mesh (to be applied on each vertx). In any case it has to be a tree structure matching the mesh count.", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Stretch Stiffness", "Stretch", "Between 0.0 and 1.0. One value per mesh", GH_ParamAccess.list, new List <double> {
         1.0
     });
     pManager.AddNumberParameter("Bending Stiffness", "Bend", "Between 0.0 and 1.0. One value per mesh", GH_ParamAccess.list, new List <double> {
         0.0
     });
     pManager.AddBooleanParameter("Self Collision", "SelfColl", "Turn self collision of cloth particles among one another on or off. (default: false)", GH_ParamAccess.list, new List <bool> {
         false
     });
     pManager.AddNumberParameter("Pre Tension", "Tension", "Optional pre tension factor.", GH_ParamAccess.list, new List <double> {
         1.0
     });
     pManager.AddGenericParameter("Anchors", "Anchors", "As vertex index integers or (x,y,z)-points.", GH_ParamAccess.tree);
     pManager.AddIntegerParameter("Group Index", "GInd", "Index to identify this fluid group later on. Make sure no index is more than once in your entire flex simulation.", GH_ParamAccess.list, new List <int> {
         0
     });
     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;
 }
示例#18
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Axis", "A", "Axis of beam", GH_ParamAccess.item);
     pManager.AddVectorParameter("Up", "U", "Up direction of beam", GH_ParamAccess.item);
     pManager.AddNumberParameter("Width", "W", "Width of beam", GH_ParamAccess.item);
     pManager.AddNumberParameter("Height", "H", "Height of beam", GH_ParamAccess.item);
 }
示例#19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Wall Panel", "wpanel", "A list of planar meshes representing wall panels", GH_ParamAccess.item);
     pManager.AddMeshParameter("Source Outline", "sourceOL", "A list of closed curves as direct light sources", GH_ParamAccess.tree);
     pManager.AddVectorParameter("Projection direction vector", "dir", "List of vectors for projection onto the wall panels", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Launch the analysis", "start", "If bool is True: analysis is running, if bool is False: analysis stopped", GH_ParamAccess.item);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "L", "The line representing the web axis of the member.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "The vector representing the web normal of the member.", GH_ParamAccess.item);
     pManager.AddTextParameter("Name", "N", "The name of the member.", 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.AddPointParameter("Position", "pos", "The position of the load", GH_ParamAccess.list);
     pManager.AddVectorParameter("Load", "load", "The nodal load", GH_ParamAccess.list);
     pManager.AddColourParameter("Colour", "c", "The colour of the load", GH_ParamAccess.item, Color.DarkCyan);
     pManager.AddNumberParameter("Scale", "sc", "Scale factor", GH_ParamAccess.item, 1.0);
 }
示例#22
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Geometry",
                                   "G",
                                   "Geometry to populate with slots",
                                   GH_ParamAccess.list);
     pManager.AddPlaneParameter("Base plane",
                                "B",
                                "Grid space base plane. Defines orientation of the grid.",
                                GH_ParamAccess.item,
                                Plane.WorldXY);
     pManager.AddVectorParameter(
         "Grid Slot Diagonal",
         "D",
         "World grid slot diagonal vector specifying single grid slot dimension " +
         "in base-plane-aligned XYZ axes",
         GH_ParamAccess.item,
         new Vector3d(1.0, 1.0, 1.0)
         );
     pManager.AddIntegerParameter("Fill Method",
                                  "F",
                                  "0 = wrap geometry surface, " +
                                  "1 = fill geometry volume, " +
                                  "2 = wrap surface and fill volume, " +
                                  "3 = wrap geometry surface (experimental)",
                                  GH_ParamAccess.item,
                                  2);
     pManager.AddNumberParameter("Precision",
                                 "P",
                                 "Geometry surface populate precision (lower = more precise & slower)",
                                 GH_ParamAccess.item,
                                 0.5);
 }
示例#23
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "Mesh", "Mesh needed for topology", GH_ParamAccess.item);
            pManager.AddVectorParameter("InsertionVec", "InsertionVec", "Insertion vectors", GH_ParamAccess.tree);
            pManager.AddCurveParameter("Panels", "Panels", "Panel outlines as polylines", GH_ParamAccess.tree);


            //pManager.AddGenericParameter("Joints", "Joints", "Joint Parameters", GH_ParamAccess.tree);

            pManager.AddPointParameter("TwoJoints", "TwoJoints", "Two joint points markers", GH_ParamAccess.list);
            pManager.AddLineParameter("ExtendedJoints", "ExtendedJoints", "Extended joint as lines markers", GH_ParamAccess.list);
            pManager.AddLineParameter("DeeperCutsJoints", "DeeperCutsJoints", "DeeperCutsJoints as lines markers", GH_ParamAccess.list);


            pManager.AddBooleanParameter("Center", "Center", "Orient joint to the centre", GH_ParamAccess.item, false);
            pManager.AddBooleanParameter("Finger", "Finger", "Create finger joint", GH_ParamAccess.item, false);
            pManager.AddIntegerParameter("Iterations", "Iterations", "Iterations", GH_ParamAccess.item, 1);
            pManager.AddIntegerParameter("Sequence", "Sequence", "Sequence", GH_ParamAccess.list, 1);
            pManager.AddNumberParameter("TextScale", "TextScale", "0 - Panel Size, 1 - Joint Size, 2 - Adj Size, 3 - Adj Pos, 4 - Adj Scale Center,  5 - Joint Pos, 6 - last elements, 7 - extend" + "", GH_ParamAccess.list, new List <double> {
                30, 12, 15, 0.5, 0.6, 0, 1, 5
            });


            for (int i = 0; i < pManager.ParamCount; i++)
            {
                pManager[i].Optional = true;
            }
        }
示例#24
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("iMesh", "iM", "Base Iguana mesh.", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "Pl", "Base plane.", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddVectorParameter("Vector", "Direction", "Stretching direction.", GH_ParamAccess.item, Vector3d.ZAxis);
     pManager.AddNumberParameter("SkewFactor", "SkewFactor", "Skew factor.", GH_ParamAccess.item, 1.0);
 }
示例#25
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "Mesh", "Mesh needed for topology", GH_ParamAccess.item);
            pManager.AddCurveParameter("Panels", "Panels", "Panel outlines as polylines", GH_ParamAccess.tree);
            pManager.AddVectorParameter("EdgeVectors", "EdgeVectors", "EdgeVectors are used for joint direction", GH_ParamAccess.tree);

            pManager.AddIntegerParameter("JointDiv", "JointDiv", "Number of joints on each edge", GH_ParamAccess.item, 1);
            pManager.AddNumberParameter("JointLen", "JointLen", "If number is negative the edge is scaled, if positive exact length is used", GH_ParamAccess.item, 10);
            pManager.AddNumberParameter("JointHei", "JointHei", "Joint height", GH_ParamAccess.item, 5);
            pManager.AddNumberParameter("JointThi", "JointThi", "Joint Thickiness must be the same as mesh offset W parameter", GH_ParamAccess.item, 3);

            pManager.AddBooleanParameter("Center", "Center", "Orient joint to the centre", GH_ParamAccess.item, false);
            pManager.AddBooleanParameter("Finger", "Finger", "Create finger joint", GH_ParamAccess.item, false);
            pManager.AddNumberParameter("Custom", "Custom", "Create half joint if two layers exists", GH_ParamAccess.item, -1);
            //pManager.AddCurveParameter("PanelsChamfer", "PanelsChamfer", "Additional Polylines in case offset does not work properly", GH_ParamAccess.tree);
            pManager.AddIntegerParameter("Iterations", "Iterations", "Iterations", GH_ParamAccess.item, 1);
            pManager.AddIntegerParameter("Sequence", "Sequence", "Sequence", GH_ParamAccess.list, 1);

            pManager.AddNumberParameter("TextScale", "TextScale", "0 - Panel Size, 1 - Joint Size, 2 - Adj Size, 3 - Adj Pos, 4 - Adj Scale Center,  5 - Joint Pos, 6 - last elements, 7 - extend" +
                                        "", GH_ParamAccess.list);
            for (int i = 2; i < pManager.ParamCount; i++)
            {
                pManager[i].Optional = true;
            }
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Slot Point",
                                "Pt",
                                "Point inside the slot",
                                GH_ParamAccess.item);
     pManager.AddPlaneParameter("Base Plane",
                                "B",
                                "Grid space base plane. Defines orientation of the grid.",
                                GH_ParamAccess.item,
                                Plane.WorldXY);
     pManager.AddVectorParameter(
         "Grid Slot Diagonal",
         "D",
         "World grid slot diagonal vector specifying single grid slot dimension " +
         "in base-plane-aligned XYZ axes",
         GH_ParamAccess.item,
         new Vector3d(1.0, 1.0, 1.0)
         );
     pManager.AddParameter(new ModuleNameParameter(),
                           "Allowed Module Names",
                           "MN",
                           "Initiate the slot with specified Module names allowed.",
                           GH_ParamAccess.list);
     pManager.AddParameter(new ModuleParameter(),
                           "Modules",
                           "M",
                           "All available Monoceros Modules. (Optional)",
                           GH_ParamAccess.list);
     pManager[4].Optional = true;
 }
示例#27
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Lines", "l", "Lines representing individual bars in grid", GH_ParamAccess.list);
     pManager.AddNumberParameter("Force densities", "q", "The force densities of the bars", GH_ParamAccess.list);
     pManager.AddPointParameter("Support points", "sp", "The strucutres suport points", GH_ParamAccess.list);
     pManager.AddVectorParameter("Force Vector", "F", "The force applied to the nodes", GH_ParamAccess.item);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Point", "P", "type hint: string", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "type hint: string", GH_ParamAccess.item);
     pManager.AddCurveParameter("Boundary", "B", "boundary", GH_ParamAccess.item);
     pManager.AddLineParameter("RefLine", "L", "ref line", GH_ParamAccess.item);
 }
示例#29
0
    }//eof




    /// <summary>
    /// Registers all the input parameters for this component.
    /// </summary>
	protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
	{
		pManager.AddNumberParameter("Latitude", "L", "Latitde of place", GH_ParamAccess.item, 32.24);
		pManager.AddIntegerParameter("Month", "M", "Month between 1 to 12", GH_ParamAccess.item, 3);
		pManager.AddIntegerParameter("Day", "D", "Day number between 1 to 31", GH_ParamAccess.item, 26);
		pManager.AddNumberParameter("Hour", "H", "Hour", GH_ParamAccess.item, 7);
        pManager.AddVectorParameter("North Direction", "N", "North direction", GH_ParamAccess.item, Vector3d.YAxis);
	}//eof
示例#30
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PMesh", "PMesh", "The input PlanktonMesh to use topology from", GH_ParamAccess.item);
     pManager.AddMatrixParameter("EigenvectorsMatrix", "v", "The eigenvectors matrix", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "n", "The vertex normals to specify the displacement directions", GH_ParamAccess.list);
     pManager.AddNumberParameter("Weights", "w", "A list of weights used for the linear combination", GH_ParamAccess.list);
     pManager.AddNumberParameter("ScaleFactor", "scale", "The scale factor of the displacements", GH_ParamAccess.item, 1.0);
 }