Exemplo n.º 1
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.AddSurfaceParameter("Surface 1", "S1", "First bounding surface", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface 2", "S2", "Second bounding surface", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to adjust.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Swap UV", "SwapUV", "Swap the uv parameters.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse U", "ReverseU", "Reverse the u-parameter direction.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse V", "ReverseV", "Reverse the v-parameter direction.", GH_ParamAccess.item, false);
 }
Exemplo n.º 3
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.AddSurfaceParameter("Surface", "Surf", "Surface to conform to", GH_ParamAccess.item);
     pManager.AddCurveParameter("Axis", "A", "Axis (may be curved)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("UResolution", "ures", "Subdivision on u-axis", GH_ParamAccess.item, 100);
     pManager.AddIntegerParameter("VResolution", "vres", "Subdivision on v-axis", GH_ParamAccess.item, 100);
     pManager.AddSurfaceParameter("Surface", "srf", "Surface", GH_ParamAccess.item);
     pManager.AddBrepParameter("Constraint", "Cons", "A list of breps represent constraints", GH_ParamAccess.list);
     pManager.AddBrepParameter("Obstacles", "Obs", "A list of breps represent obstavles", GH_ParamAccess.list);
     pManager[3].Optional = true;
     pManager[4].Optional = true;
 }
Exemplo n.º 5
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "Name", "Name", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Plane", "Plane", "Plane", GH_ParamAccess.item);
     int b = pManager.AddTextParameter("View", "View", "View", GH_ParamAccess.item);
     int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
     pManager[a].Optional = true;
     pManager[b].Optional = true;
 }
Exemplo n.º 6
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            List<int> optional = new List<int>();

            pManager.AddSurfaceParameter("Surface", "S", "Slab Surface", GH_ParamAccess.item);

            pManager.AddTextParameter("Levelbottom", "Level", "Level name", GH_ParamAccess.item);
            optional.Add(pManager.AddPointParameter("SlopeTopPoint", "STop", "Slab Slope Top Point", GH_ParamAccess.item));
            optional.Add(pManager.AddPointParameter("SlopeBottomPoint", "SBottom", "Slab Slope Bottom Point", GH_ParamAccess.item));
            optional.Add(pManager.AddNumberParameter("Slope", "Slope", "Slope", GH_ParamAccess.item));
            optional.Add(pManager.AddBooleanParameter("Structural", "Structural", "is Slab Structural? [false]", GH_ParamAccess.item));

            optional.Add(pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list));
            
            foreach(int a in optional) pManager[a].Optional = true;
            
        }
Exemplo n.º 7
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddSurfaceParameter("Surface", "Surface", "Surface", GH_ParamAccess.item);
            //pManager.AddTextParameter("Style", "Style", "Style name", GH_ParamAccess.item);
            pManager.AddTextParameter("Layer", "Layer", "Layer name", GH_ParamAccess.item);
            pManager.AddNumberParameter("height", "height", "Slab height", GH_ParamAccess.item);
            int c = pManager.AddNumberParameter("taperAngle", "taperAngle", "Taper angle", GH_ParamAccess.item);

            int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
            pManager[a].Optional = true;
            pManager[c].Optional = true;
        }
Exemplo n.º 8
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "srf", "A surface of a list of surfaces that emits agents.", GH_ParamAccess.list);
 }
Exemplo n.º 9
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", GH_ParamAccess.item);
 }
Exemplo n.º 10
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Adjusted surface", "Surf", "Surface with adjusted uv-map.", GH_ParamAccess.item);
 }
Exemplo n.º 11
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Material", "Material", "Tortuga Material", GH_ParamAccess.item);

            List<int> optinalParameters = new List<int>();

            optinalParameters.Add(pManager.AddNumberParameter("Area", "Area", "Optional: Area to calculate", GH_ParamAccess.item));
            optinalParameters.Add(pManager.AddSurfaceParameter("Surface", "Surface", "Optional: Surface to calculate", GH_ParamAccess.item));

            foreach (int optional in optinalParameters) pManager[optional].Optional = true;
        }