コード例 #1
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Srf", "Surface on which to obtain the grid", GH_ParamAccess.item);
     pManager.AddPointParameter("Starting Point", "P", "Starting UV Coordinates for grid", GH_ParamAccess.item);
     pManager.AddNumberParameter("Grid Size", "L", "Specify grid size for Chebyshev net", GH_ParamAccess.item, 1.0);
     pManager.AddAngleParameter("Rotation Angle", "Angle", "Rotation angle in radians", GH_ParamAccess.item, 0.0);
     pManager.AddBooleanParameter("Extend Surface", "Extend", "Set to true to extend the surface", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("Extension Length", "E. Length", "Optional: set a custom extension length", GH_ParamAccess.item, 2.0);
     pManager.AddIntegerParameter("Number of axis", "Axis no.", "Number of axis for the grid generation (3 to 6)", GH_ParamAccess.item, 4);
     pManager.AddAngleParameter("Skew Angle", "Skw.Angle", "OPTIONAL: List of Angles to use for uneven distribution", GH_ParamAccess.list, new List <double>());
 }
コード例 #2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("BaseCurve", "crv", "base curve", GH_ParamAccess.item);
     pManager.AddNumberParameter("Data", "data", "Main data to display", GH_ParamAccess.list);
     pManager.AddNumberParameter("OptionalData", "dataOp", "Secondary data / Curve subdivision", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddColourParameter("Colour 0", "col0", "First reference Colour", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour 1", "col1", "Second reference Colour", GH_ParamAccess.item);
     pManager.AddAngleParameter("RotationAngleInDegree", "degA", "Rotation angle for the graph", GH_ParamAccess.list, 0.00);
 }
コード例 #3
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "Name", "Name of the elements", GH_ParamAccess.item);
     pManager.AddGenericParameter("Profile", "Profile", "Profile to create element from", GH_ParamAccess.item);
     pManager.AddAngleParameter("Rotation Angle", "Rotation Angle", "Set rotation angle for the profile",
                                GH_ParamAccess.item);
     pManager.AddGenericParameter("Material", "Material", "Concrete element material", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Type", "Type", "Element type as integer. 0 = Pad Footing, 1 = Strip Footing, 2 = Beam, 3 = Column", GH_ParamAccess.item);
     pManager.AddLineParameter("Insert Lines", "Insert Lines", "Lines to specify the element length and position",
                               GH_ParamAccess.list);
 }
コード例 #4
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Input curve (required)", "inputCurve", "The first closed" +
                                       " input curve." +
                                       "The curve can either be smooth, or be a polyline, or a mixture. " +
                                       "The only requirement is that it be closed. " +
                                       "This parameter is required.", GH_ParamAccess.item);

            pManager.AddIntegerParameter("nrVerticesBoundary", "nrVerticesBoundary", "number of vertices along the boundary.", GH_ParamAccess.item, 20);
            pManager.AddIntegerParameter("Degree (optional)", "degree", "degree of the surface.", GH_ParamAccess.item, 0);
            pManager.AddAngleParameter("Rotation angle of one of the curves around itself (optional)", "roationAngle", "rotation angle of the curves around itself", GH_ParamAccess.item, 0);
        }
コード例 #5
0
ファイル: CurveSpacingGH.cs プロジェクト: paireks/T-Rex
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Id", "Id", "Id as an integer for Rebar Group", GH_ParamAccess.item);
     pManager.AddGenericParameter("Rebar Shape", "Rebar Shape", "Rebar Shape to create Rebar Group",
                                  GH_ParamAccess.item);
     pManager.AddCurveParameter("Curve", "Curve", "Curve to divide and create Rebar Group along this curve",
                                GH_ParamAccess.item);
     pManager.AddIntegerParameter("Count", "Count", "Set how many bars should be in the group",
                                  GH_ParamAccess.item);
     pManager.AddAngleParameter("Rotation Angle", "Rotation Angle", "Set rotation angle for all of the bars",
                                GH_ParamAccess.item);
 }
コード例 #6
0
ファイル: BspUlaMain.cs プロジェクト: digitecture/Dots
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     // 0. input curves
     pManager.AddCurveParameter("input-site", "site", "street grids on site", GH_ParamAccess.item);
     // 1. Number of Parcels
     pManager.AddIntegerParameter("number-parcels", "num-of-parcels ", "The number of parcels required", GH_ParamAccess.item);
     // 2. standard deviation to restrict area of individual partition & boundary
     pManager.AddNumberParameter("dev-dim (0,1)", "dev-mean-(0,1)", "standard deviation in DIMENSION to restrict parcels", GH_ParamAccess.item);
     // 3. rotation
     pManager.AddAngleParameter("angle-alignment (degrees 0, 360)", "angle-alignment", "rotate the entire parcel generation", GH_ParamAccess.item);
     // 4. show this iteration
     pManager.AddIntegerParameter("show-this-iterations", "this-itr", "showing the iteration to show - optimization", GH_ParamAccess.item);
     // 5. reset values
     pManager.AddBooleanParameter("reset-all-values", "reset-vals", "set everything to 0 and clear all values", GH_ParamAccess.item);
 }
コード例 #7
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            Param_Guid guid = new Param_Guid();

            guid.Name        = "Guid";
            guid.NickName    = "G";
            guid.Description = "Guid of Light";
            guid.Access      = GH_ParamAccess.item;
            pManager.AddParameter(guid);
            pManager.AddPointParameter("Location", "Loc", "Location", GH_ParamAccess.item, Point3d.Origin);
            pManager.AddPointParameter("Target", "T", "Target", GH_ParamAccess.item, new Point3d(0, 0, -1));
            pManager.AddNumberParameter("Intensity", "In", "Intensity", GH_ParamAccess.item, 100);
            pManager.AddAngleParameter("Radius", "R", "Radius, must be in 0-Pi/2.", GH_ParamAccess.item, Math.PI / 4);
            pManager.AddNumberParameter("HotSpot", "H", "HotSpot, must be in 0-1.", GH_ParamAccess.item, 0.5);
            pManager.AddColourParameter("DiffuseColor", "Di", "DiffuseColor", GH_ParamAccess.item, Color.Aqua);
            pManager.AddColourParameter("SpecularColor", "Sp", "SpecularColor", GH_ParamAccess.item, Color.Aqua);
        }
コード例 #8
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Input curve (required)", "inputCurve", "The first closed" +
                                       " input curve." +
                                       "The curve can either be smooth, or be a polyline, or a mixture. " +
                                       "The only requirement is that it be closed. " +
                                       "This parameter is required.", GH_ParamAccess.item);

            pManager.AddCurveParameter("Input curve (required)", "inputCurve", "The second closed" +
                                       " input curve." +
                                       "The curve can either be smooth, or be a polyline, or a mixture. " +
                                       "This parameter is required.", GH_ParamAccess.item);

            pManager.AddIntegerParameter("nrVerticesVertical (optional)", "nrVerticesVertical", "number of vertices in vertical direction.", GH_ParamAccess.item, 20);
            pManager.AddIntegerParameter("nrVerticesAround (optional)", "nrVerticesAround", "number of vertices around the cylinder.", GH_ParamAccess.item, 18);
            pManager.AddIntegerParameter("Degree (optional)", "degree", "degree of the surface.", GH_ParamAccess.item, 0);

            pManager.AddAngleParameter("Rotation angle of one of the curves around itself (optional)", "rotationAngle", "rotation angle of the curves around itself", GH_ParamAccess.item, 0);

            pManager.AddBooleanParameter("Flip one curve (optional)", "flip", "flip one curve? try this to prevent self-intersection.", GH_ParamAccess.item, false);
        }
コード例 #9
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddBooleanParameter("Run", "R", "Run", GH_ParamAccess.item, true);
            pManager.AddPointParameter("CameraLocation", "CL", "CameraLocation", GH_ParamAccess.item);
            pManager.AddPointParameter("CameraTarget", "CT", "CameraTarget", GH_ParamAccess.item);
            pManager.AddIntegerParameter("CameraType", "T", "CameraType", GH_ParamAccess.item, 2);
            pManager.AddNumberParameter("FocalLength", "L", "FocalLength", GH_ParamAccess.item, 50);
            pManager.AddAngleParameter("Bias", "B", "Bias in Radius", GH_ParamAccess.item, 0);
            pManager.AddPointParameter("UV", "UV", "nearly UV to refine the target on view.", GH_ParamAccess.item, new Point3d(0.5, 0.5, 0));
            pManager.AddTextParameter("ViewName", "N", "ViewName", GH_ParamAccess.item);
            pManager[7].Optional = true;

            ((IGH_PreviewObject)this).Hidden = true;

            Param_Integer var = pManager[3] as Param_Integer;

            if (var != null)
            {
                var.AddNamedValue("Parallel Projection", 0);
                var.AddNamedValue("Two Point Perspective Projection", 1);
                var.AddNamedValue("Perspective Projection", 2);
            }
        }
コード例 #10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item);
     pManager.AddAngleParameter("AngleLimit", "A", "AngleLimit", GH_ParamAccess.item, Math.PI / 6);
 }