当前位置: 首页>>代码示例>>C#>>正文


C# GH_Component.AddSurfaceParameter方法代码示例

本文整理汇总了C#中GH_Component.AddSurfaceParameter方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.AddSurfaceParameter方法的具体用法?C# GH_Component.AddSurfaceParameter怎么用?C# GH_Component.AddSurfaceParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GH_Component的用法示例。


在下文中一共展示了GH_Component.AddSurfaceParameter方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterInputParams

 /// <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);
 }
开发者ID:smor,项目名称:intralattice,代码行数:13,代码来源:ConformSSComponent.cs

示例2: RegisterInputParams

 /// <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);
 }
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:AdjustUVComponent.cs

示例3: RegisterInputParams

 /// <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);
 }
开发者ID:smor,项目名称:intralattice,代码行数:13,代码来源:ConformSAComponent.cs

示例4: RegisterInputParams

 /// <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;
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:13,代码来源:SurfaceEnvironmentComponent.cs

示例5: RegisterInputParams

 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;
 }
开发者ID:samuto,项目名称:Grevit,代码行数:9,代码来源:Revit.Components.cs

示例6: RegisterInputParams

        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;
        }
开发者ID:bbrangeo,项目名称:Grevit,代码行数:12,代码来源:AutoCad.Components.cs

示例7: RegisterInputParams

 /// <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);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:7,代码来源:SurfaceEmitterComponent.cs

示例8: RegisterInputParams

 /// <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);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:7,代码来源:SurfaceFoodComponent.cs

示例9: RegisterOutputParams

 /// <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);
 }
开发者ID:smor,项目名称:intralattice,代码行数:7,代码来源:AdjustUVComponent.cs

示例10: RegisterInputParams

        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;
        }
开发者ID:duncancox,项目名称:Tortuga,代码行数:11,代码来源:Calculate.cs


注:本文中的GH_Component.AddSurfaceParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。