Esempio n. 1
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("MeshA", "A", "First mesh.", GH_ParamAccess.item);
     pManager.AddMeshParameter("MeshB", "B", "Second mesh.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Operation", "Op", "Operation to perform (Union = 0, Intersection = 1, " +
                                  "AMinusB = 2, BMinusA = 3, SymmetricalDifferent = 4, All = 5", GH_ParamAccess.item, 0);
 }
Esempio n. 2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("window Panel Mesh", "mfpanel", "A planar mesh representing a panel of a window", GH_ParamAccess.item);
     pManager.AddMeshParameter("Shade Module Mesh", "mshade", "A list of shade meshes to be evaluated for direct shade coverage", GH_ParamAccess.list);
     pManager.AddVectorParameter("Projection Vector", "dir", "The vectors for shading evaluation (sun vectors)", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Launch the analysis", "start", "If bool is True: analysis is running, if bool is False: analysis stopped", GH_ParamAccess.item);
 }
Esempio n. 3
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Wall Panel", "wpanel", "A list of planar meshes representing wall panels", GH_ParamAccess.item);
     pManager.AddMeshParameter("Source Outline", "sourceOL", "A list of closed curves as direct light sources", GH_ParamAccess.tree);
     pManager.AddVectorParameter("Projection direction vector", "dir", "List of vectors for projection onto the wall panels", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Launch the analysis", "start", "If bool is True: analysis is running, if bool is False: analysis stopped", GH_ParamAccess.item);
 }
Esempio n. 4
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Person", "Person", "Person", GH_ParamAccess.item);
     pManager.AddPointParameter("Interests", "Interests", "Interests", GH_ParamAccess.list);
     pManager.AddMeshParameter("Obstacles", "Obstacles", "Obstacles", GH_ParamAccess.list);
     pManager.AddMeshParameter("Floors", "Floors", "Floors", GH_ParamAccess.list);
     pManager.AddNumberParameter("Sloping", "Slope", "Maximum sloping", GH_ParamAccess.item, 0);
 }
Esempio n. 5
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Meshes", "Parts", "a list of rhino meshes which are not boundary", GH_ParamAccess.list);

            pManager.AddMeshParameter("Meshes", "Boundaries", "a list of rhino meshes which at at boundary of the structure", GH_ParamAccess.list);

            pManager.AddBooleanParameter("Trigger", "Trigger", "Trigger", GH_ParamAccess.item);
        }
Esempio n. 6
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Baseplane", "B", "Baseplane of the whole machine. Use this to move the machine around.", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddPlaneParameter("Workplane", "W", "Workplane to define G54 work offset, relative to the world origin.", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddPointParameter("Point", "P", "Tool position point to visualize.", GH_ParamAccess.item, Point3d.Origin);
     pManager.AddGenericParameter("MachineTool", "MT", "Active machine tool.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Toolpath", "TP", "Active toolpath.", GH_ParamAccess.item);
     pManager.AddMeshParameter("Stock mesh", "M", "Mesh of workpiece material.", GH_ParamAccess.item);
     pManager.AddMeshParameter("Machine meshes", "MM", "Meshes of machine components", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Reset", "R", "Reset visualization engine.", GH_ParamAccess.item, false);
 }
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPlaneParameter("Attachment plane", "AP", "Attachement plane of robot. Overrides robot position plane.", GH_ParamAccess.item);
            pManager.AddVectorParameter("Axis", "A", "Axis as Vector", GH_ParamAccess.item);
            pManager.AddIntervalParameter("Axis Limits", "AL", "Axis Limits as Domain", GH_ParamAccess.item);
            pManager.AddMeshParameter("Base Mesh", "BM", "Base Mesh as Mesh", GH_ParamAccess.list);
            pManager.AddMeshParameter("Link Mesh", "LM", "Link Mesh as Mesh", GH_ParamAccess.list);

            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Esempio n. 8
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Name", "N", "Axis name as a Text", GH_ParamAccess.item, "default_era");
            pManager.AddPlaneParameter("Axis Plane", "AP", "Axis Plane as a Plane", GH_ParamAccess.item);
            pManager.AddIntervalParameter("Axis Limits", "AL", "Axis Limits as Domain", GH_ParamAccess.item);
            pManager.AddMeshParameter("Base Mesh", "BM", "Base Mesh as Mesh", GH_ParamAccess.list);
            pManager.AddMeshParameter("Link Mesh", "LM", "Link Mesh as Mesh", GH_ParamAccess.list);

            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Esempio n. 9
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("centrelines", "cl", "", GH_ParamAccess.list);
     pManager.AddMeshParameter("gsamesh", "gsa", "", GH_ParamAccess.list);
     pManager.AddMeshParameter("cave panels", "cp", "", GH_ParamAccess.list);
     pManager.AddCurveParameter("grid", "g", "", GH_ParamAccess.list);
     pManager.AddCurveParameter("base grid", "bg", "", GH_ParamAccess.list);
     pManager.AddTextParameter("filepath", "fp", "", GH_ParamAccess.item);
     pManager.AddBooleanParameter("write", "w", "", GH_ParamAccess.item);
     pManager.AddTextParameter("text", "t", "", GH_ParamAccess.list);
     pManager.AddCurveParameter("text locations", "tl", "", GH_ParamAccess.list);
 }
Esempio n. 10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("meshA", "meshA", "Connect a Brep or Mesh.", GH_ParamAccess.item);
     pManager.AddMeshParameter("meshB", "meshB", "Connect a Brep or Mesh.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("num", "num", "Number of cells to use for calculation, larger numbers mean better shape approximation.", GH_ParamAccess.item);
     pManager.AddNumberParameter("offset", "offset", "Connect a double if you want to smooth geometries.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("runIt", "runIt", "Set it to true to run the calculation.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("showIt", "showIt", "Set it to true to show Grasshopper result.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("writeObj", "writeObj", "Write the result in a obj file, this could be faster than Grasshopper calc.", GH_ParamAccess.item, false);
     pManager.AddTextParameter("path", "path", "Write the absolute path where to write the file.", GH_ParamAccess.item);
     pManager[3].Optional = true;
     pManager[5].Optional = true;
     pManager[6].Optional = true;
     pManager[7].Optional = true;
 }
Esempio n. 11
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Meshes", "Meshes", "Meshes used for the computation in physics simulation", GH_ParamAccess.list);
     pManager.AddPlaneParameter("Frame", "Frame", "Frame", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddBooleanParameter("Dynamic", "Dynamic", "Dynamic or Static, True: Dynamic, False: Static", GH_ParamAccess.item, true);
     pManager.AddGenericParameter("Material (Optional)", "Material", "PhysX material", GH_ParamAccess.item);
     pManager[3].Optional = true;
     pManager.AddNumberParameter("Mass", "Mass", "Mass", GH_ParamAccess.item, 1.0);
     pManager.AddVectorParameter("Initial Linear Velocity", "Linear Vel.", "Initial linear velocity", GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddVectorParameter("Initial Angular Velocity", "Angular Vel.", "Initial angular velocity", GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddNumberParameter("Linear Damping", "Linear Damp", "Linear Damping", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Angular Damping", "Angular Damp", "Angular Damping", GH_ParamAccess.item, 1.0);
     pManager.AddMeshParameter("Displayed Meshes (Optional)", "Displayed Meshes", "The displayed meshes can be different and typically has more details and higher resolution that the actual meshes used in physics simulation", GH_ParamAccess.list);
     pManager[9].Optional = true;
 }
Esempio n. 12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Meshes", "Meshes", "Meshes of objects (e.g. walls, floors) that should be published as linked open data", GH_ParamAccess.list); pManager[0].Optional = false;
     pManager.AddTextParameter("File path", "C:/...sjon", "location and filename of the final JSON", GH_ParamAccess.item); pManager[1].Optional = false;
     pManager.AddTextParameter("Guid", "Guids", "GUIDs of the Meshes involved", GH_ParamAccess.list); pManager[2].Optional = false;
     pManager.AddTextParameter("Guid", "Guids", "GUIDs of the Meshes involved", GH_ParamAccess.list); pManager[3].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "input mesh to analysis.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Constraint Indices", "I", "the indices to be constrained", GH_ParamAccess.list);
     pManager.AddNumberParameter("Constraint Values", "V", "the values to constrain with", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number of Isolines", "N", "the number of isolines", GH_ParamAccess.item, 3);
 }
Esempio n. 14
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "Mesh", "Mesh needed for topology", GH_ParamAccess.item);
            pManager.AddCurveParameter("Panels", "Panels", "Panel outlines as polylines", GH_ParamAccess.tree);
            pManager.AddVectorParameter("EdgeVectors", "EdgeVectors", "EdgeVectors are used for joint direction", GH_ParamAccess.tree);

            pManager.AddIntegerParameter("JointDiv", "JointDiv", "Number of joints on each edge", GH_ParamAccess.item, 1);
            pManager.AddNumberParameter("JointLen", "JointLen", "If number is negative the edge is scaled, if positive exact length is used", GH_ParamAccess.item, 10);
            pManager.AddNumberParameter("JointHei", "JointHei", "Joint height", GH_ParamAccess.item, 5);
            pManager.AddNumberParameter("JointThi", "JointThi", "Joint Thickiness must be the same as mesh offset W parameter", GH_ParamAccess.item, 3);

            pManager.AddBooleanParameter("Center", "Center", "Orient joint to the centre", GH_ParamAccess.item, false);
            pManager.AddBooleanParameter("Finger", "Finger", "Create finger joint", GH_ParamAccess.item, false);
            pManager.AddNumberParameter("Custom", "Custom", "Create half joint if two layers exists", GH_ParamAccess.item, -1);
            //pManager.AddCurveParameter("PanelsChamfer", "PanelsChamfer", "Additional Polylines in case offset does not work properly", GH_ParamAccess.tree);
            pManager.AddIntegerParameter("Iterations", "Iterations", "Iterations", GH_ParamAccess.item, 1);
            pManager.AddIntegerParameter("Sequence", "Sequence", "Sequence", GH_ParamAccess.list, 1);

            pManager.AddNumberParameter("TextScale", "TextScale", "0 - Panel Size, 1 - Joint Size, 2 - Adj Size, 3 - Adj Pos, 4 - Adj Scale Center,  5 - Joint Pos, 6 - last elements, 7 - extend" +
                                        "", GH_ParamAccess.list);
            for (int i = 2; i < pManager.ParamCount; i++)
            {
                pManager[i].Optional = true;
            }
        }
Esempio n. 15
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "Mesh", "Mesh needed for topology", GH_ParamAccess.item);
            pManager.AddVectorParameter("InsertionVec", "InsertionVec", "Insertion vectors", GH_ParamAccess.tree);
            pManager.AddCurveParameter("Panels", "Panels", "Panel outlines as polylines", GH_ParamAccess.tree);


            //pManager.AddGenericParameter("Joints", "Joints", "Joint Parameters", GH_ParamAccess.tree);

            pManager.AddPointParameter("TwoJoints", "TwoJoints", "Two joint points markers", GH_ParamAccess.list);
            pManager.AddLineParameter("ExtendedJoints", "ExtendedJoints", "Extended joint as lines markers", GH_ParamAccess.list);
            pManager.AddLineParameter("DeeperCutsJoints", "DeeperCutsJoints", "DeeperCutsJoints as lines markers", GH_ParamAccess.list);


            pManager.AddBooleanParameter("Center", "Center", "Orient joint to the centre", GH_ParamAccess.item, false);
            pManager.AddBooleanParameter("Finger", "Finger", "Create finger joint", GH_ParamAccess.item, false);
            pManager.AddIntegerParameter("Iterations", "Iterations", "Iterations", GH_ParamAccess.item, 1);
            pManager.AddIntegerParameter("Sequence", "Sequence", "Sequence", GH_ParamAccess.list, 1);
            pManager.AddNumberParameter("TextScale", "TextScale", "0 - Panel Size, 1 - Joint Size, 2 - Adj Size, 3 - Adj Pos, 4 - Adj Scale Center,  5 - Joint Pos, 6 - last elements, 7 - extend" + "", GH_ParamAccess.list, new List <double> {
                30, 12, 15, 0.5, 0.6, 0, 1, 5
            });


            for (int i = 0; i < pManager.ParamCount; i++)
            {
                pManager[i].Optional = true;
            }
        }
Esempio n. 16
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item);
            pManager.AddPointParameter("Fixed", "P", "Fixed Points", GH_ParamAccess.list);

            pManager[1].Optional = true;
        }
Esempio n. 17
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Base Mesh", "M", "Base mesh of the field.", GH_ParamAccess.item);
     pManager.AddGeometryParameter("Drawing Input", "IN", "Closed boundary curves that describe field.", GH_ParamAccess.list);
     pManager.AddNumberParameter("Iso Value", "IV", "Zero Iso Value Adjustment", GH_ParamAccess.item);
     pManager.AddNumberParameter("Tolerance", "T", "0-iso tolerance", GH_ParamAccess.item, 1d);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Naked", "N", "Add -1 for naked edge", GH_ParamAccess.item, false);
     pManager[0].Optional = true;
     pManager[1].Optional = true;
 }
Esempio n. 19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter(Info.mesh[0], Info.mesh[1], Info.mesh[2], GH_ParamAccess.item);
     pManager.AddGenericParameter(Info.droidVolume[0], Info.droidVolume[1], Info.droidVolume[2], GH_ParamAccess.item);
     pManager.AddNumberParameter(Info.xPos[0], Info.xPos[1], Info.xPos[2], GH_ParamAccess.item, 0);
     pManager.AddNumberParameter(Info.yPos[0], Info.yPos[1], Info.yPos[2], GH_ParamAccess.item, 0);
 }
Esempio n. 20
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Base Mesh", "Mesh", "Base Mesh.", GH_ParamAccess.list);
     pManager.AddGenericParameter("Field 0", "Field 0", "First Field.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Field 1", "Field 1", "Second Field.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Blend Parameters", "t", "Parameters at which blend is sampled", GH_ParamAccess.list);
 }
Esempio n. 21
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Base mesh.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Field", "F", "Field.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Tolerance", "T", "Weld Tolerance.", GH_ParamAccess.item, 1d);
     pManager.AddNumberParameter("Iso Value", "I", "Iso at which to draw curve.", GH_ParamAccess.item, 0d);
 }
Esempio n. 22
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("StartingMeshes", "StartingMeshes", "StartingMeshes", GH_ParamAccess.item);
     pManager.AddColourParameter("MinColor", "MinColor", "MinColor", GH_ParamAccess.item);
     pManager.AddColourParameter("MaxColor", "MaxColor", "MaxColor", GH_ParamAccess.item);
     pManager.AddNumberParameter("Range", "Range", "Range", GH_ParamAccess.item);
 }
Esempio n. 23
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "M", "Mesh to offset", GH_ParamAccess.item);
            pManager.AddNumberParameter("Dist", "D", "Offset dist", GH_ParamAccess.item, 1);

            pManager[1].Optional = true;
        }
Esempio n. 24
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            // 0
            pManager.AddIntegerParameter("recursion level", "Rec.", "Recursion level. 0: 10 vertices, 1: 29 vert., 2: 97 vert., 3: 353 vert., ...", GH_ParamAccess.item);
            // 1
            pManager.AddBooleanParameter("Viewfactors", "ViewFac?", "Showing the viewfactors on the sky dome. I.e. how much is the sensor point obstructed?", GH_ParamAccess.item);
            // 2
            pManager.AddBooleanParameter("CumSkyMatrix", "SkyMat?", "Showing the cumulative sky matrix. Requires a weather file.", GH_ParamAccess.item);
            // 3
            pManager.AddBooleanParameter("SunPath", "SunPath?", "Showing the annual sun path diagram.", GH_ParamAccess.item);
            // 4
            pManager.AddBooleanParameter("SolarVec", "SolarVec?", "Showing hourly solar vector?", GH_ParamAccess.item);
            // 5
            pManager.AddIntegerParameter("HOY", "hoy", "Hour of the year. if empty, no hourly vector will be drawn. Needs a list, but could contain only one hour.", GH_ParamAccess.list);
            // 6
            pManager.AddNumberParameter("location", "location", "Location, 2 numbers. 0: Longitude, 1: Latitude.", GH_ParamAccess.list);
            // 7
            pManager.AddNumberParameter("DNI", "DNI", "DNI. 8760 time series.", GH_ParamAccess.list);
            // 8
            pManager.AddNumberParameter("DHI", "DHI", "DHI. 8760 time series.", GH_ParamAccess.list);
            // 9
            pManager.AddNumberParameter("size", "size", "Size of the skydome. By default it is the bounding box of all the context.", GH_ParamAccess.item);
            // 10
            pManager.AddMeshParameter("context", "context", "Context, i.e. adjacent obstacles", GH_ParamAccess.list);
            // 11
            pManager.AddPointParameter("sp", "sp", "Sensor Point, around which a skydome will be constructed.", GH_ParamAccess.item);

            int[] ilist = new int[8] {
                1, 2, 3, 4, 7, 8, 9, 10
            };
            foreach (int i in ilist)
            {
                pManager[i].Optional = true;
            }
        }
Esempio n. 25
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Input Mesh", GH_ParamAccess.item);
     pManager.AddNumberParameter("Values by Vertex", "vV", "List of values by Vertex (one value per Vertex)", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Use Weighted method", "W", "Uses Weighted average if True", GH_ParamAccess.item, false);
     pManager[2].Optional = true;
 }
Esempio n. 26
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "Points", GH_ParamAccess.list);
     pManager.AddMeshParameter("Mesh", "M", "Mesh to search fro a closest point", GH_ParamAccess.item);
     pManager.AddNumberParameter("Tol", "T", "Distance", GH_ParamAccess.item, 0.01);
     pManager[2].Optional = true;
 }
Esempio n. 27
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item);
            pManager.AddNumberParameter("Angle", "A", "Angle", GH_ParamAccess.item, 0.7);
            pManager.AddNumberParameter("Scale", "S", "Scale", GH_ParamAccess.item, 1.4);
            pManager.AddBooleanParameter("NormalType", "T", "0 - normal is used as an average ngon plane, 1 - normal of adjacent triangle face", GH_ParamAccess.item, true);
            pManager.AddNumberParameter("Height", "H", "Height", GH_ParamAccess.item, 1);

            pManager.AddNumberParameter("Offset", "O", "Offset between layers", GH_ParamAccess.item, 2);
            pManager.AddNumberParameter("Thickness", "T", "Paper Thickness", GH_ParamAccess.item, 1);

            pManager.AddSurfaceParameter("RoofSurface", "RoofSurface", "RoofSurface", GH_ParamAccess.item);

            pManager.AddCurveParameter("JointMale", "JointMale", "JointMale", GH_ParamAccess.list);
            pManager.AddCurveParameter("JointFemale", "JointFemale", "JointFemale", GH_ParamAccess.list);
            pManager.AddNumberParameter("W1", "W1", "W1", GH_ParamAccess.item, 1);
            pManager.AddNumberParameter("W2", "W2", "W2", GH_ParamAccess.item, 1);
            // pManager.AddBooleanParameter("Ending", "F", "", GH_ParamAccess.item);
            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
            //pManager[6].Optional = true;
            //pManager[7].Optional = true;
            pManager[8].Optional = true;
            pManager[9].Optional = true;
        }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item);
     pManager.AddIntegerParameter("NGon Face Pair", "P", "NGon face pairs - DataTree", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Scale", "S", "Scale mesh edges", GH_ParamAccess.item, 0.9);
     pManager[0].Optional = true;
 }
Esempio n. 29
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Closed Mesh strip", "M", "Closed Mesh strip", GH_ParamAccess.item);
            pManager.AddNumberParameter("Displacement", "d", "Displacement for the added points to ensure the loop stays open", GH_ParamAccess.item, 0);

            pManager[1].Optional = true;
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Base Mesh", "M", "Base Mesh.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Field", "F", "Field to be trimmed.", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Trim Plane", "P", "Trim Plane.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Trim Value", "V", "Optional value set for all points in trim.", GH_ParamAccess.item, 1.00d);
 }