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


C# GH_Component.AddBrepParameter方法代码示例

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


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

示例1: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("XResolution", "xres", "Subdivision on x-axis", GH_ParamAccess.item, 100);
     pManager.AddIntegerParameter("YResolution", "yres", "Subdivision on y-axis", GH_ParamAccess.item, 100);
     pManager.AddIntegerParameter("ZResolution", "zres", "Subdivision on z-axis", GH_ParamAccess.item, 100);
     pManager.AddBrepParameter("Brep", "B", "Brep", GH_ParamAccess.list);
     pManager.AddBrepParameter("Obstacles", "Obs", "A list of breps represent obstacles", GH_ParamAccess.list);
     pManager[4].Optional = true;
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:9,代码来源:BrepsEnvironmentComponent.cs

示例2: 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;
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:13,代码来源:SurfaceEnvironmentComponent.cs

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

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

示例5: RegisterOutputParams

        /// <summary>
        /// Registers all the output parameters for this component.
        /// </summary>
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddPointParameter("Centre Points L01", "Centers01", "Centre Points L01", GH_ParamAccess.tree); //0
            pManager.AddPointParameter("Centre Points L02", "Centers02", "Centre Points L02", GH_ParamAccess.tree); //1
            pManager.AddCurveParameter("Curves", "Curves", "Curves", GH_ParamAccess.tree); //2
            pManager.AddCurveParameter("PlateCurves", "PlateCrvs", "Curves", GH_ParamAccess.tree); //3
            pManager.AddPointParameter("Pentagon Points L01", "PentPtsL01", "planar pentagon like shape at L01", GH_ParamAccess.tree);//4
            pManager.AddPointParameter("Pentagon Points L02", "PentPtsL02", "planar pentagon like shape at L02", GH_ParamAccess.tree);//5
            pManager.AddIntegerParameter("Stripe Indentification", "StripeIdx", "Identification Numbers for each Stripe of a Component", GH_ParamAccess.tree);//6

            pManager.AddBrepParameter("Stipe Geometry", "StripeGeo", "Geometry for each Stripe of a Component", GH_ParamAccess.tree);//7
            pManager.AddPlaneParameter("Stipe Intersection Planes", "StripXPlanes", "Stipe planes for each Stripe of a Component", GH_ParamAccess.tree);//8

            //// =======================================================================================
            // Added by Gene
            pManager.AddCurveParameter("ExtendedCurves", "ExtendedCurves", "ExtendedCurves", GH_ParamAccess.tree); //9
            pManager.AddBrepParameter("SingleStripeBreps", "SingleStripeBreps", "SingleStripeBreps", GH_ParamAccess.tree); //10
            //// =======================================================================================
        }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:22,代码来源:GHC_04_Explode.cs

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

示例7: RegisterInputParams

        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Settings Dictionary", "Settings", "Silkworm Settings Dictionary", GH_ParamAccess.list);
            pManager.AddBrepParameter("Planar Breps", "Regions", "A List of Planar Breps", GH_ParamAccess.list);

            pManager.AddIntegerParameter("Infill Type", "Infill Type", "The Type of Pattern: 0 - Perimeter Spiral, 1 - Hatch", GH_ParamAccess.item);
            pManager.AddNumberParameter("Spiral Spacing", "Spacing", "The spacing between lines for the Perimeter Spiral Pattern", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Density", "Infill Density", "The Density of The Infill Pattern as a Value between 0 and 1.  This option only applies to Hatch Patterns", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Rotation", "Infill Rotation", "Rotation in Degrees for Infill Hatch Pattern", GH_ParamAccess.list);

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

示例8: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddBrepParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);
     pManager.AddTextParameter("Layers", "L", "Layers", GH_ParamAccess.list);
     pManager.AddGenericParameter("Instances", "I", "Instances", GH_ParamAccess.list);
 }
开发者ID:moethu,项目名称:SketchUpNET,代码行数:6,代码来源:SketchUp.cs

示例9: 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("Volume", "Volume", "Optional: Volume to calculate", GH_ParamAccess.item));
            optinalParameters.Add(pManager.AddBrepParameter("Brep", "Brep", "Optional: Brep to calculate", GH_ParamAccess.item));

            foreach (int optional in optinalParameters) pManager[optional].Optional = true;
        }
开发者ID:duncancox,项目名称:Tortuga,代码行数:11,代码来源:Calculate.cs


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