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


C# GH_Component类代码示例

本文整理汇总了C#中GH_Component的典型用法代码示例。如果您正苦于以下问题:C# GH_Component类的具体用法?C# GH_Component怎么用?C# GH_Component使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "L", "A line to convert into a va3c JSON representation of the line", GH_ParamAccess.item);
     pManager.AddGenericParameter("Line Material", "Lm", "Line Material", GH_ParamAccess.item);
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[2].Optional = true;
 }
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_Line.cs

示例2: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
   pManager.AddPointParameter("Position", "P", "Position", GH_ParamAccess.item);
   pManager.AddVectorParameter("Velocity", "V", "Velocity", GH_ParamAccess.item);
   pManager.AddVectorParameter("Acceleration", "A", "Acceleration", GH_ParamAccess.item);
   pManager.AddIntegerParameter("Lifespan", "L", "Lifespan", GH_ParamAccess.item);
 }
开发者ID:lxfschr,项目名称:Quelea,代码行数:10,代码来源:DeconstructAgentComponent.cs

示例3: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index associated with the calculated moment", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "pl", "The bending plane", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingMoment", "M", "The bending moment [kNm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingStress", "stressB", "The bending stress [MPa]", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:CastRodOutput.cs

示例4: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddCurveParameter("Struts", "Struts", "Cleaned curve network.", GH_ParamAccess.list);
     pManager.AddPointParameter("Nodes", "Nodes", "List of unique nodes.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("CurveStart", "I", "Index in 'Nodes' for the start of each curve in 'Struts'.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("CurveEnd", "J", "Index in 'Nodes' for the end of each curve in 'Struts'.", GH_ParamAccess.list);
 }
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:CleanNetworkComponent.cs

示例5: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to plot", GH_ParamAccess.list);
     pManager.Register_StringParam("Value Key", "Key", "The name of the value to plot", GH_ParamAccess.item);
     pManager.Register_IntervalParam("Domain", "Rng", "The [optional] domain to plot, with black corresponding to the low value and white to the high value.  Defaults to the max and min of the given values", GH_ParamAccess.item);
     Params.Input[2].Optional = true;
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:7,代码来源:Heatmap.cs

示例6: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Planes", "P", "Section Planes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0.0);
 }
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBSectionComponent.cs

示例7: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Mesh Geo", "Me", "va3c geometry", GH_ParamAccess.list);
     pManager.AddTextParameter("Materials", "Mat", "va3c materials", GH_ParamAccess.list);
 }
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_Scene_ARCHIVE_20141104.cs

示例8: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curves", "C", "", GH_ParamAccess.list);
            pManager.AddPlaneParameter("Plane", "P", "", GH_ParamAccess.item);

            pManager[1].Optional = true;
        }
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBUnionComponent.cs

示例9: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_SpatialGraph(), "Spatial Graph", "S", "The Spatial Graph.", GH_ParamAccess.item);
     pManager.Register_StringParam("Script", "Func", "The function to execute", GH_ParamAccess.item);
     pManager.Register_DoubleParam("Value", "V", "Initial Values", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Generations", "G", "Number of Generations to create.", 0, GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:ants,代码行数:7,代码来源:AntsEngine.cs

示例10: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_GenericParam("Feedback", "F", "Feedback Output. Here you get a copy of the data at the \"*D\" input, or the \"*S\" input if the first is empty.");
     pManager.Register_GenericParam("Feedback History", "H", "History Output. Here you get the history of all Hoopsnake iterations.");
     pManager.Register_IntegerParam("Loops Counter", "L", "Loops Counter.");
     pManager.Register_IntegerParam("Iterations Counter", "I", "Iterations Counter.");
 }
开发者ID:kanukanun,项目名称:Hoopsnake,代码行数:7,代码来源:HSComponent.cs

示例11: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Struts", "Struts", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddTextParameter("Gradient String", "Grad", "The spatial gradient as an expression string", GH_ParamAccess.item, "0");
     pManager.AddNumberParameter("Maximum Radius", "Rmax", "Maximum radius in gradient", GH_ParamAccess.item, 0.5);
     pManager.AddNumberParameter("Minimum Radius", "Rmin", "Minimum radius in gradient", GH_ParamAccess.item, 0.2);
 }
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:HeterogenGradientComponent.cs

示例12: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
     pManager.AddIntegerParameter("detect radius", "detr", "Below this value, pairs of agents locations will be connected at a possibility.", GH_ParamAccess.item);
     pManager.AddNumberParameter("select possibility", "selp", "The possibility of a pair of agents locations are connected", GH_ParamAccess.item);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:10,代码来源:PopulationInterconnectComponent.cs

示例13: Run

        public static List<object[]> Run(GH_Component component, IList<object> data, System.Collections.IDictionary kwargs)
        {
            Type t = component.GetType();
              var method = t.GetMethod("SolveInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);

              List<object[]> input = BuildInputList(data);

              int output_count = component.Params.Output.Count;
              int iterations = input.Count;
              List<object[]> output = new List<object[]>(output_count);
              for (int i = 0; i < output_count; i++)
            output.Add(new object[iterations]);

              bool run_parallel = false;
              if (kwargs != null && kwargs.Contains("multithreaded"))
            run_parallel = (bool)kwargs["multithreaded"];

              if (run_parallel)
              {
            System.Threading.Tasks.Parallel.For(0, input.Count, (iteration) => SolveIteration(iteration, component, input, output, method));
              }
              else
              {
            for( int iteration=0; iteration<input.Count; iteration++)
            {
              SolveIteration(iteration, component, input, output, method);
            };
              }
              return output;
        }
开发者ID:needlsd,项目名称:ghpython,代码行数:30,代码来源:FastComponent.cs

示例14: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Input", "I", "Input value", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Enumerate", "E", "Enumerate lists to sequentally named items, or create a list of values", GH_ParamAccess.item, false);
     this.Params.Input[0].ObjectChanged += resetMapping;
     this.Params.Input[0].AttributesChanged += resetMapping;
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:7,代码来源:AutoHashComponent.cs

示例15: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Border", "B", "Overlapping of the layers", GH_ParamAccess.item, 0);
 }
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBLayerComponent.cs


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