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


C# GH_Component.AddVectorParameter方法代码示例

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


在下文中一共展示了GH_Component.AddVectorParameter方法的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);
 }
开发者ID:lxfschr,项目名称:Quelea,代码行数:10,代码来源:DeconstructAgentComponent.cs

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

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

示例4: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddVectorParameter("TotalDisplacements", "vDispl", "The total displacement of each node [mm]", GH_ParamAccess.list);
     pManager.AddNumberParameter("MaximumDisplacementX", "Xmax", "The maximum displacement in the x direction [mm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("MaximumDisplacementY", "Ymax", "The maximum displacement in the y direction [mm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("MaximumDisplacementZ", "Zmax", "The maximum displacement in the z direction [mm]", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:Displacements.cs

示例5: RegisterInputParams

        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //Start
            pManager.AddVectorParameter("Delimiting Vectors", "StartVec", "Vectors that describe the delimiting movement", GH_ParamAccess.item, new Vector3d(0.0, 0.0, -1.0));
            pManager.AddNumberParameter("Delimiting Speed", "StartSpd", "Corresponding delimit speed values (mm/min)", GH_ParamAccess.item, 360);
            pManager.AddNumberParameter("Delimiting Pressure", "StartPrs", "Corresponding extrusion pressure values (mm}", GH_ParamAccess.item, 1.1);

            //End
            pManager.AddVectorParameter("Delimiting Vectors", "EndVec", "Vectors that describe the delimiting movement", GH_ParamAccess.item, new Vector3d(0.0,0.0,1.0));
            pManager.AddNumberParameter("Delimiting Speed", "EndSpd", "Corresponding delimit speed values (mm/min)", GH_ParamAccess.item, 360);
            pManager.AddNumberParameter("Delimiting Pressure", "EndPrs", "Corresponding extrusion pressure values (mm)", GH_ParamAccess.item, -1);

            pManager.AddNumberParameter("Travel Speed", "Travel", "Travel speed value (mm/min)", GH_ParamAccess.item, 7200);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
        }
开发者ID:samuto,项目名称:Silkworm,代码行数:24,代码来源:DelimiterComponent.cs

示例6: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddPointParameter("Vertices", "v", "The mesh vertices", GH_ParamAccess.list);
     pManager.AddVectorParameter("VertexNormals", "nA", "The vertex normals scaled according to the associated voronoi area", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:8,代码来源:MeshVertexArea.cs

示例7: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddPointParameter("Position", "pos", "The position of the load", GH_ParamAccess.item);
     pManager.AddVectorParameter("Load", "load", "The nodal load in [kN]", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:8,代码来源:CastLoadOutput.cs

示例8: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
     pManager.AddPointParameter("Location", "Location", "Camera Location", GH_ParamAccess.item);
     pManager.AddPointParameter("Target", "Target", "Camera Target", GH_ParamAccess.item);
     pManager.AddNumberParameter("Lens", "Lens", "Camera Lens Focal Length", GH_ParamAccess.item);
     pManager.AddVectorParameter("Up", "Up", "Camera's Up (Z) vector", GH_ParamAccess.item);
 }
开发者ID:provolot,项目名称:FlounderCamera,代码行数:12,代码来源:setFlounderCameraComponent.cs

示例9: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("VertexNormals", "nA", "The vertex normals scaled according to the associated voronoi area [m2]", GH_ParamAccess.list);
     pManager.AddNumberParameter("Thickness", "t", "The thickness in [mm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("MaterialDensity", "rho", "The material density in [kg/m3]", GH_ParamAccess.item);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:9,代码来源:MeshSelfweight.cs

示例10: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Initial Velocity", "IniVel", "Initial Velocity as vector", GH_ParamAccess.item);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:7,代码来源:InitialVelocitySettingComponent.cs

示例11: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("GMT", "GMT", "Positive or negative offset for GMT timezone", GH_ParamAccess.item, 1);
     pManager.AddTimeParameter("Time", "Time", "Date/Time for the sun position", GH_ParamAccess.item, new DateTime(2013, 6, 1, 12, 0, 0, 0));
     pManager.AddNumberParameter("Latitude", "Lat", "Latitudal coordinates for the position of inquery", GH_ParamAccess.item, 52.2066);
     pManager.AddNumberParameter("Longitude", "Long", "Longitudal coordinates for the position of inquery", GH_ParamAccess.item, 5.6422);
     pManager.AddVectorParameter("North", "Nrth", "The vector indicating the north direction", GH_ParamAccess.item, new Vector3d(0, 1, 0));
     pManager.AddVectorParameter("Up", "Up", "The vector pointing to the sky", GH_ParamAccess.item, new Vector3d(0, 0, 1));
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:12,代码来源:SundirectionComponent.cs

示例12: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Snow", "S", "The snow load as a vector indicating direction and magnitude [kN/m2]", GH_ParamAccess.item);
     pManager.AddVectorParameter("VertexNormals", "nA", "The vertex normals scaled according to the associated voronoi area (projected) [m2]", GH_ParamAccess.list);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:8,代码来源:MeshSnowLoad.cs

示例13: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddVectorParameter("Velocities", "Vel", "Velocities as Vector3d", GH_ParamAccess.list);
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:7,代码来源:PopulationVelocityComponent.cs

示例14: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Line", "ln", "Line segments", GH_ParamAccess.list);
     pManager.AddVectorParameter("ShearVectors", "V", "Shear vector for each line segment", GH_ParamAccess.list);
     pManager.AddNumberParameter("ScaleFactor", "sc", "A scale factor", GH_ParamAccess.item, 0.5);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:9,代码来源:ShearVisualisation.cs

示例15: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Outline", "Outline", "Extrusion Outline", GH_ParamAccess.item);
            pManager.AddVectorParameter("Vector", "Vector", "Extrusion Vector", GH_ParamAccess.item);

            int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
            pManager[a].Optional = true;
        }
开发者ID:samuto,项目名称:Grevit,代码行数:8,代码来源:Revit.Components.cs


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