本文整理汇总了C#中GH_Component.AddCircleParameter方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.AddCircleParameter方法的具体用法?C# GH_Component.AddCircleParameter怎么用?C# GH_Component.AddCircleParameter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GH_Component
的用法示例。
在下文中一共展示了GH_Component.AddCircleParameter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddGenericParameter("Spring Mesh", "Spring Mesh", "Spring Mesh", GH_ParamAccess.item);
pManager.AddCircleParameter("Planarization Regions", "Planarization Regions", "Planarization Regions", GH_ParamAccess.list);
pManager.AddNumberParameter("Bending Stiffness", "Bending Stiffness", "Bending Stiffness", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Stiffness", "Stiffness", "Stiffness", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", "Bending Stiffness (Planar Regions)", GH_ParamAccess.list);
pManager.AddNumberParameter("Stiffness (Planar Regions)", "Stiffness (Planar Regions)", "Stiffness (Planar Regions)", GH_ParamAccess.list);
}
示例2: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddPointParameter("Points", "Points - 00", "Points", GH_ParamAccess.list);
pManager.AddCircleParameter("Apicals", "Apicals - 01", "Apicals", GH_ParamAccess.list);
pManager.AddNumberParameter("Masses", "Masses - 02", "Masses", GH_ParamAccess.list);
pManager.AddCurveParameter("Boundary Curve", "Boundary Curve - 03", "Boundary Curve", GH_ParamAccess.item);
pManager.AddNumberParameter("Rest Length Scale", "Rest Length Scale - 04", "Rest Length Scale", GH_ParamAccess.item, 1.0);
pManager.AddNumberParameter("Rest Length Offset", "Rest Length Offset - 05", "Rest Length Offset", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Stiffness", "Stiffness- 06", "Stiffness Scale", GH_ParamAccess.item, 1.0);
pManager.AddNumberParameter("Bending Stiffness", "Bending Stiffness - 07", "Stiffness Offset", GH_ParamAccess.item, 0.0);
pManager.AddBooleanParameter("In/Out Switch", "In/Out Switch - 08", "In/Out Switch", GH_ParamAccess.item, false);
pManager.AddNumberParameter("In/Out Threshold", "In/Out Threshold - 09", "In/Out Threshold", GH_ParamAccess.item, 0.1);
pManager.AddNumberParameter("Fixed Point Threshold", "Fixed Point Threshold - 10", "Fixed Point Threshold", GH_ParamAccess.item, 0.05);
pManager.AddCurveParameter("Fixed Point Exclusion", "Fixed Point Exclusion - 11", "Fixed Point Exclusion", GH_ParamAccess.list);
pManager.AddCurveParameter("Fixed Point Inclusion", "Fixed Point Inclusion - 12", "Fixed Point Inclusion", GH_ParamAccess.list);
pManager.AddNumberParameter("Initial Curving Bias", "Initial Curving Bias - 13", "Initial Curving Bias", GH_ParamAccess.item, 0.0);
pManager.AddBooleanParameter("Bias Apical Regions", "Bias Apical Regions - 14", "Bias Apical Regions", GH_ParamAccess.item, false);
}
示例3: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddBooleanParameter("Reset", "Reset - 00", "Reset", GH_ParamAccess.item);
pManager.AddIntegerParameter("Integrator", "Integrator - 01", "Select numerical integration method. 1 = Euler, 2 = Velocity Verlet", GH_ParamAccess.item);
pManager.AddBooleanParameter("Play", "Play - 02", "Play", GH_ParamAccess.item);
pManager.AddIntegerParameter("Iteration Count", "Iteration Count - 03", "Iteration Count", GH_ParamAccess.item, 800);
pManager.AddGenericParameter("Spring Mesh", "Spring Mesh - 04", "Spring Mesh", GH_ParamAccess.item);
pManager.AddNumberParameter("Damping", "Damping - 05", "Damping", GH_ParamAccess.item, 0.2);
pManager.AddNumberParameter("Time Step", "Time Step - 06", "Time Step", GH_ParamAccess.item, 0.005);
pManager.AddCircleParameter("Force Generators", "Force Generators - 07", "Force Generators", GH_ParamAccess.list);
pManager.AddNumberParameter("Gravity Scale", "Gravity Scale - 08", "Gravity Scale", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Rest Length Scale", "Rest Length Scale - 09", "Rest Length Scale", GH_ParamAccess.item, 1.0);
pManager.AddNumberParameter("Rest Length Offset", "Rest Length Offset - 10", "Rest Length Offset", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Stiffness Offset", "Stiffness Offset - 11", "Stiffness Offset", GH_ParamAccess.item, 0.0);
pManager.AddNumberParameter("Bending Stiffness Offset", "Bending Stiffness Offset - 12", "Bending Stiffness Offset", GH_ParamAccess.item, 0.0);
pManager.AddBooleanParameter("Enable Boundary Bending Stiffness", "Enable Boundary Bending Stiffness - 13", "Enable Boundary Bending Stiffness", GH_ParamAccess.item, false);
pManager.AddNumberParameter("Boundary Bending Stiffness", "Boundary Bending Stiffness - 14", "Boundary Bending Stiffness", GH_ParamAccess.item, 0.0);
pManager.AddBooleanParameter("Enable Column Bending Stiffness", "Enable Column Bending Stiffness - 15", "Enable Column Bending Stiffness", GH_ParamAccess.item, false);
pManager.AddNumberParameter("Column Bending Stiffness", "Column Bending Stiffness - 16", "Column Bending Stiffness", GH_ParamAccess.item, 0.0);
//added by Gene
pManager.AddIntegerParameter("Enable Equilateral Triangle", "Enable Equilateral Triangle - 15", "Enable Equilateral Triangle", GH_ParamAccess.item, 0);
pManager.AddNumberParameter("Equilateral Strength", "Equilateral Strength - 16", "Equilateral Strength", GH_ParamAccess.item, 1.0);
}
示例4: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddBooleanParameter("Reset", "Reset - 00", "Reset", GH_ParamAccess.item, true);
pManager.AddIntegerParameter("Random Seed", "Random Seed - 01", "Random Seed", GH_ParamAccess.item, -1);
pManager.AddBooleanParameter("Play", "Play - 02", "Play", GH_ParamAccess.item, false);
pManager.AddNumberParameter("Relaxation Rate", "Relaxation Rate -03", "Relaxation Rate", GH_ParamAccess.item, 0.4);
pManager.AddBooleanParameter("Add Points Automatically", "Add Points Automatically - 04", "Add Points Automatically", GH_ParamAccess.item, true);
pManager.AddBooleanParameter("Add Points Manually", "Add Points Manually - 05", "Add Points Automatically", GH_ParamAccess.item, true);
pManager.AddCircleParameter("Apical Discs", "Apical Discs - 06", "Apical Discs", GH_ParamAccess.list);
pManager.AddBooleanParameter("Fix Apical Discs", "Fix Apical Discs - 07", "Fix Apical Discs", GH_ParamAccess.item);
pManager.AddCurveParameter("Boundary Curve", "Boundary Curve - 08", "Boundary Curve", GH_ParamAccess.item);
pManager.AddNumberParameter("Point Addition Rate", "Point Addition Rate - 09", "Point Addition Rate", GH_ParamAccess.item, 1.0);
pManager.AddIntegerParameter("Max. Point Count", "Max. Point Count - 10", "Max. Point Count", GH_ParamAccess.item, 300);
pManager.AddNumberParameter("Min. Separation", "Min. Separation - 11", "Min. Separation", GH_ParamAccess.item, 0.1);
pManager.AddNumberParameter("Max. Separation", "Max. Separation - 12", "Max. Separation", GH_ParamAccess.item, 1.0);
pManager.AddNumberParameter("Growth Rate", "Growth Rate - 13", "Separation Increment Rate", GH_ParamAccess.item, 1.0);
pManager.AddIntegerParameter("Growth Option", "Growth Option - 14", "1 = Half growth, 2 = Full growth", GH_ParamAccess.item, 1);
}