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


C# GH_Component.AddPointParameter方法代码示例

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


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

示例1: 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);
   pManager.AddPointParameter("Ref Position", "RP", "Ref Position", GH_ParamAccess.item);
 }
开发者ID:lxfschr,项目名称:Quelea,代码行数:11,代码来源:DebugDeconstructAgent.cs

示例2: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("Point 0", "P0", "First point of triangle", GH_ParamAccess.item);
            pManager.AddPointParameter("Point 1", "P1", "Second point of triangle", GH_ParamAccess.item);

            pManager.AddPointParameter("Point 2", "P2", "Third point of triangle", GH_ParamAccess.item);

             pManager.AddGenericParameter("Material", "M", "Defines material of triangle", GH_ParamAccess.item);
             pManager.AddNumberParameter("Thickness", "T", "Thickness of element", GH_ParamAccess.item);
        }
开发者ID:AndreasBak,项目名称:GrasshopperSharpFE,代码行数:10,代码来源:ConstantStrainTriangleComponent.cs

示例3: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Food", "food", "food", GH_ParamAccess.list); //0
     pManager[0].Optional = true;
     pManager.AddPointParameter("Origin", "origin", "origin", GH_ParamAccess.list); //1
     pManager.AddNumberParameter("Step", "D", "Step distance", GH_ParamAccess.item,45); //2
     pManager.AddNumberParameter("Infuence", "di", "Infuence distance", GH_ParamAccess.item,3); //3
     pManager.AddNumberParameter("Kill-Eat", "dk", "Killing distance", GH_ParamAccess.item,1.2); //4
     pManager.AddIntegerParameter("Iteraction", "loop", "Number of iteraction", GH_ParamAccess.item,1); //5
     pManager.AddBooleanParameter("Reset", "reset", "Reset structure", GH_ParamAccess.item,false); //6
 }
开发者ID:kurilluk,项目名称:SpaceColonization,代码行数:11,代码来源:SpaceColonization_Comp.cs

示例4: RegisterOutputParams

        /// <summary>
        /// Registers all the output parameters for this component.
        /// </summary>
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddPointParameter("Sofistik Points", "Points", "Points for Sofistik", GH_ParamAccess.tree);//0
            pManager.AddIntegerParameter("Sofistik Indexies", "PointIdxs", "Indexies for Sofistik", GH_ParamAccess.tree);//1

            pManager.AddPointParameter("Sofistik Curve Points", "CrvPoints", "Curve Points for Sofistik", GH_ParamAccess.tree);//2
            pManager.AddIntegerParameter("Sofistik Curve Indexies", "CrvPointIdxs", "Curve Indexies for Sofistik", GH_ParamAccess.tree);//3

            pManager.AddBrepParameter("Sofistik Breps", "Breps", "Surfaces from each Component", GH_ParamAccess.tree); //4
            pManager.AddIntegerParameter("Sofistik Breps Indexies", "BrepsIdx", "Breps Indexies for Sofistik", GH_ParamAccess.tree);//5
            pManager.AddCurveParameter("Sofistik Curves", "Curves", "All Curves for Sofistik", GH_ParamAccess.tree);//6
        }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:15,代码来源:GHC_03_Sofistik.cs

示例5: RegisterOutputParams

        /// <summary>
        /// Registers all the output parameters for this component.
        /// </summary>
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddPointParameter("Face Points", "FacePt", "Points of the face", GH_ParamAccess.tree); //0
            pManager.AddIntegerParameter("Topology Points", "TopoPtIdx", "Topology points index of the face", GH_ParamAccess.tree);  //1
            pManager.AddVectorParameter("Face Normals", "FaceN", "Normal of the face", GH_ParamAccess.list);    //2
            pManager.AddIntegerParameter("Neighbour Face Index", "NFIdx", "Neighbouring faces", GH_ParamAccess.tree); //3

            pManager.AddPointParameter("All Topology Points", "ATPC", "all topology points coordinates", GH_ParamAccess.list);  //4
            pManager.AddVectorParameter("Topology vertex normals", "TopNormals", "Normals of each topology vertex", GH_ParamAccess.list);   //5

            pManager.AddIntegerParameter("Face Topology Edge Indexies", "FaceTopEdgeIdx", "Indexies of topology edges foreach face", GH_ParamAccess.tree);  //6
            pManager.AddIntegerParameter("Topology Edge Topology Point Index", "TopEdgeTopPtsIdx", "Indexies of Topology Points foreach Topology Edge", GH_ParamAccess.tree);   //7
            pManager.AddIntegerParameter("Topology Point Connected Topology Edges Index", "TopPtsConnectedTopEdgeIdx", "Indexies of connected Topology Edges foreach Topology Point", GH_ParamAccess.tree);   //8
        }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:17,代码来源:GHC_01_ConvertMesh.cs

示例6: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddBrepParameter("Unrolled Breps", "UnrolledBreps", "Unrolled Breps", GH_ParamAccess.tree); //0
     pManager.AddPlaneParameter("Planes for Orientation", "OrientPlanes", "1st item origin plane, 2nd item target plane", GH_ParamAccess.tree); //1
     pManager.AddCurveParameter("Shared Curves", "SharedCrv", "Shared Curves between Stripes", GH_ParamAccess.tree); //2
     pManager.AddPointParameter("Points", "P", "Points unrolled with Brep", GH_ParamAccess.tree);//3
 }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:10,代码来源:GHC_Unroller.cs

示例7: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Lines", "ln", "The lines to display", GH_ParamAccess.list);
     pManager.AddPointParameter("DisplacedNodes", "pFinal", "The displaced nodes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Displacement", "displ", "The nodal displacements", GH_ParamAccess.list);
     pManager.AddColourParameter("ColourRange", "c", "The colour range (use gradient)", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:DisplacementVisualisation.cs

示例8: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Polyline", "Pl", "A list of polylines to offset", GH_ParamAccess.item);
       pManager.AddPointParameter("Point", "P", "Offset Distance", GH_ParamAccess.item);
       pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default(Plane));
       pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
 }
开发者ID:JIMMMMMMY,项目名称:clipper,代码行数:10,代码来源:PolygonContainmentComponent.cs

示例9: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Position", "pos", "The position of the load", GH_ParamAccess.list);
     pManager.AddVectorParameter("Load", "load", "The nodal load", GH_ParamAccess.list);
     pManager.AddColourParameter("Colour", "c", "The colour of the load", GH_ParamAccess.item, Color.DarkCyan);
     pManager.AddNumberParameter("Scale", "sc", "Scale factor", GH_ParamAccess.item, 1.0);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:LoadVisualisation.cs

示例10: 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

示例11: RegisterOutputParams

 /// <summary>
 /// Registers output parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "New Points", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "New radius", GH_ParamAccess.list);
     pManager.AddLineParameter("Acceleration", "A", "Draws lines to represent the acceleration of a point", GH_ParamAccess.list);
     pManager.AddLineParameter("Velocity", "V", "Draws lines to represent to velocity of a point. A good way to check if the system has settled is to attached the following to this output: Curve Length -> Mass Addition -> Data Recorder -> Quick Graph", GH_ParamAccess.list);
     pManager.AddNumberParameter("Brigthnesses", "B", "Current brightness of mesh at location of point", GH_ParamAccess.list);
 }
开发者ID:formateng,项目名称:repulsive,代码行数:12,代码来源:RepulsionOfPointsOnMesh.cs

示例12: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("PinnedSupportPt", "pt", "The point to function as a support", GH_ParamAccess.item);
     pManager.AddBooleanParameter("XFixed", "X", "Set to true if the X direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("YFixed", "Y", "Set to true if the Y direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("ZFixed", "Z", "Set to true if the Z direction is fixed", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Strength", "strength", "The strength of a spring to fix the point in the desired directions", GH_ParamAccess.item, 1e15);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:11,代码来源:Support.cs

示例13: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "Points", "Adaptive Points", GH_ParamAccess.list);
     pManager.AddTextParameter("Family", "Family", "Family name", GH_ParamAccess.item);
     pManager.AddTextParameter("Type", "Type", "Type name", GH_ParamAccess.item);
     int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
     pManager[a].Optional = true;
 }
开发者ID:bbrangeo,项目名称:Grevit,代码行数:8,代码来源:Revit.Components.cs

示例14: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Triloop Stipes", "Stripes", "Input the 3 Stripes of each Triloop", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Merge Stripes", "Y", "Reorients unrolled surfaces to one connected surface", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Switch", "Switch", "Switch", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Seam", "Seam", "0: Seam on Inside, 1: Seam on Outside", GH_ParamAccess.item);
     pManager.AddPointParameter("Points", "P", "Points to unroll with Brep", GH_ParamAccess.tree);
 }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:11,代码来源:GHC_Unroller.cs

示例15: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddNumberParameter("BucklingLoadFactor", "BLF", "The buckling load factor [-]", GH_ParamAccess.item);
     pManager.AddNumberParameter("LoadFactors", "LF", "Load factor for each iteration", GH_ParamAccess.list);
     pManager.AddNumberParameter("DisplacementRMS", "dRMS", "The displacements as a RMS value in [m] for each iteration", GH_ParamAccess.list);
     pManager.AddPointParameter("VertexPositions", "V", "The vertex positions for each iteration", GH_ParamAccess.tree);
     pManager.AddGenericParameter("GoalOutput", "O", "The output from the goals for each iteration. The data structure is identical to the PGoals input", GH_ParamAccess.tree);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:11,代码来源:BucklingAnalysis.cs


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