本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}