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;
 }
 /// <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;
 }
 /// <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
 }
 /// <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);
 }
        /// <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
            //// =======================================================================================
        }
        /// <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
        }
Example #7
0
        /// <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;
        }
Example #8
0
 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);
 }
Example #9
0
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddPointParameter("Location", "L", "Location", GH_ParamAccess.item);
            pManager.AddTextParameter("Name", "N", "Name", GH_ParamAccess.item);

            pManager.AddNumberParameter("Scale", "S", "Scale", GH_ParamAccess.item);
            pManager.AddBrepParameter("Surfaces", "Sf", "Surfaces", GH_ParamAccess.list);
            pManager.AddTextParameter("Parent Name", "PN", "Parent Name", GH_ParamAccess.item);
            pManager.AddBrepParameter("Inner", "I", "Inner", GH_ParamAccess.list);
        }
Example #10
0
        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;
        }