//component inputs protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Charges", "C", "Charge locations", GH_ParamAccess.list); pManager.AddPointParameter("Points", "P", "Point locations", GH_ParamAccess.list); pManager.AddNumberParameter("Targets", "T", "Points' target charges", GH_ParamAccess.list); pManager.AddNumberParameter("Velocity", "V", "Terminal velocity", GH_ParamAccess.item); //max Speed for the particles }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddColourParameter("Colour 1", "C1", "Start colour of gradient.", GH_ParamAccess.item, Color.Crimson); pManager.AddColourParameter("Colour 2", "C2", "End colour of gradient.", GH_ParamAccess.item, Color.Teal); pManager.AddPointParameter("Point 1", "P1", "Start point of gradient", GH_ParamAccess.item, new Point3d(0, 0, 0)); pManager.AddPointParameter("Point 2", "P2", "End point of gradient", GH_ParamAccess.item, new Point3d(100, 100, 0)); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Curves", "C", "The group of curves that form the network to traverse", GH_ParamAccess.list); pManager.AddPointParameter("Starts", "S", "The point or points that form the starting point of the path", GH_ParamAccess.list); pManager.AddPointParameter("Ends", "E", "The point or points that form the end point of the path", GH_ParamAccess.list); pManager.AddNumberParameter("Lengths", "L", String.Join("A manually-specified length for each curve; useful if you want to artificially ", "increase or decrease their traversability. If no lengths provided, they will be ", "manually calculated for each of the curves."), GH_ParamAccess.list); pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Curves", "C", "The Loft Sections", GH_ParamAccess.list); var start = pManager.AddPointParameter("Start", "S", "The point at the loft start", GH_ParamAccess.item); var end = pManager.AddPointParameter("End", "E", "The point at the loft end", GH_ParamAccess.item); var loftParam = new Param_LoftOptions(); loftParam.SetPersistentData(new LoftOptions()); var options = pManager.AddParameter(loftParam, "Options", "O", "Loft options", GH_ParamAccess.item); new[] { start, end, options }.ToList().ForEach(p => pManager[p].Optional = true); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddGenericParameter("3D View", "V", "The 3D view to modify", GH_ParamAccess.item); pManager.AddBooleanParameter("Show View Cube", "VC", "Show the view cube", GH_ParamAccess.item); pManager.AddBooleanParameter("Allow Pan", "AP", "Allow user to pan 3d view", GH_ParamAccess.item); pManager.AddBooleanParameter("Allow Zoom", "AZ", "Allow user to zoom 3d view", GH_ParamAccess.item); pManager.AddBooleanParameter("Allow Move", "AM", "Allow user to move 3d view", GH_ParamAccess.item); pManager.AddBooleanParameter("Allow Rotation", "AR", "Allow user to rotate 3d view", GH_ParamAccess.item); pManager.AddBooleanParameter("Perspective/Parallel", "Par", "Set to true for Parallel, false for Perspective", GH_ParamAccess.item); pManager.AddPointParameter("Camera Location", "CL", "The camera location", GH_ParamAccess.item); pManager.AddPointParameter("Camera Target", "CT", "The target for the camera", GH_ParamAccess.item); pManager.AddNumberParameter("Camera Transition Time", "CTT", "The amount of time it takes the camera position to update", GH_ParamAccess.item); Enumerable.Range(1, 9).ToList().ForEach(i => pManager[i].Optional = true); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> /// <param name="pManager">Use the pManager to register new parameters. pManager is never null.</param> protected override void RegisterInputParams(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); pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item); pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item); pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black); pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1); }
void Inputs(GH_InputParamManager pManager) { pManager.AddTextParameter("File", "F", "GCode file.", GH_ParamAccess.item); pManager.AddParameter(new TargetParameter(), "Target", "T", "Created targets will use the parameters of this reference target if they're not supplied in the G-code file.", GH_ParamAccess.item); pManager.AddPointParameter("Point alignment", "P", "Aligns the X axis of the tagets to look towards this point (in world coordinate system). If not supplied it will use the X axis of the reference target.", GH_ParamAccess.item); pManager[2].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddGenericParameter("Shape to add to", "S", "The Shape object to add element(s) to", GH_ParamAccess.item); pManager.AddGenericParameter("Element to add", "E", "The element(s) to add to the shapes. For text use a TextBlock or Label, for instance.", GH_ParamAccess.list); pManager.AddPointParameter("Element Location", "L", "The point at which to position the element", GH_ParamAccess.list); pManager.AddNumberParameter("Scale", "Sc", "The scale (this should match whatever you're using for your shape)", GH_ParamAccess.item, 1); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Pt", "P", "Input Point data.", GH_ParamAccess.tree); pManager[0].Optional = true; // avoid "failed to collect data" pManager.AddNumberParameter("Epsilon", "E", "Precision threshold for coordinate comparison", GH_ParamAccess.item, 0.0001); pManager[1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Text", "T", "Text content", GH_ParamAccess.item); pManager.AddTextParameter("Font", "F", "Text font", GH_ParamAccess.item); pManager.AddPointParameter("Location", "L", "Text location", GH_ParamAccess.item); pManager.AddColourParameter("Colour", "C", "Text colour", GH_ParamAccess.item, Color.Black); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Path", "P", "Path to the excel file", GH_ParamAccess.item); pManager.AddPointParameter("xyStartPoint", "sP", "A point where the first xy curve segment begins", GH_ParamAccess.item); pManager.AddBooleanParameter("BooleanRead", "B", "A boolean controlling if the component should read the file. Could be used to suspend reading if the file is large", GH_ParamAccess.item, true); pManager.AddNumberParameter("Tolerance", "t", "A tolerance used for the creation of clothoids and the interpolated curve. Submit in Rhino units, conversion is made in component.", GH_ParamAccess.item); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item); pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item); pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black); pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { //0 pManager.AddGeometryParameter("Geometry", "Geom", "Input Surface or Mesh", GH_ParamAccess.item); //1 pManager.AddGenericParameter("TargetLengthFunction", "L", "A function determining local edge length", GH_ParamAccess.item); //2 pManager.AddCurveParameter("FixCurves", "FixC", "Curves which will be kept sharp during remeshing. Can be boundary or internal curves", GH_ParamAccess.list); pManager[2].Optional = true; //3 pManager.AddPointParameter("FixVertices", "FixV", "Points to keep fixed during remeshing", GH_ParamAccess.list); pManager[3].Optional = true; //4 pManager.AddIntegerParameter("Flip", "Flip", "Criterion used to decide when to flip edges (0 for valence based, 1 for angle based)", GH_ParamAccess.item, 1); //5 pManager.AddNumberParameter("PullStrength", "Pull", "Strength of pull to target geometry (between 0 and 1). Set to 0 for minimal surfaces", GH_ParamAccess.item, 0.8); //6 pManager.AddIntegerParameter("Iterations", "Iter", "Number of steps between outputs", GH_ParamAccess.item, 1); //7 pManager.AddBooleanParameter("Reset", "Reset", "True to initialize, false to run remeshing. Connect a timer for continuous remeshing", GH_ParamAccess.item, true); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddMeshParameter("Bricks", "B", "Input brick meshs", GH_ParamAccess.list); pManager.AddPointParameter("Center", "C", "Center of robot", GH_ParamAccess.item); pManager.AddNumberParameter("MortarThickness", "MT", "Thickness of mortar", GH_ParamAccess.item, 8); pManager.AddNumberParameter("zTolerence", "T", "Tolerence of a floor of bricks", GH_ParamAccess.item, 0.1); }
} //Terrain Grade protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddMeshParameter("地形", "Mt", "要进行坡度分析的山地地形网格,仅支持单项数据", GH_ParamAccess.item); pManager.AddMeshParameter("障碍物", "O", "(可选)阻挡视线的障碍物体,,仅支持单列数据", GH_ParamAccess.list); pManager[1].Optional = true; pManager.AddPointParameter("观察点", "P", "观察者所在的点位置(不一定在网格上),支持多点观察,仅支持单列数据", GH_ParamAccess.list); pManager.AddIntegerParameter("精度", "A", "分析精度,即分析点阵内的间距,仅支持单项数据", GH_ParamAccess.item); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Point", "Pt", "Point Geometry", GH_ParamAccess.list); pManager.AddIntegerParameter("Number", "Number", "Identifier of structural point", GH_ParamAccess.list, 0); pManager.AddVectorParameter("Dir x", "Dir x", "Direction of local x-axis", GH_ParamAccess.list, new Vector3d()); pManager.AddVectorParameter("Dir z", "Dir z", "Direction of local z-axis", GH_ParamAccess.list, new Vector3d()); pManager.AddTextParameter("Fixation", "Fixation", "Support condition literal", GH_ParamAccess.list, string.Empty); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("d", "data", "data from interface", GH_ParamAccess.list); pManager.AddGeometryParameter("C", "Columns", "Columns", GH_ParamAccess.item); pManager.AddGeometryParameter("P", "Plinth", "Plinth", GH_ParamAccess.item); pManager.AddGeometryParameter("S", "Swing", "Swing", GH_ParamAccess.item); pManager.AddPointParameter("A", "Anchors", "Anchors", GH_ParamAccess.list); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { List<bool> allFixed = new List<bool> { true, true, true, true, true, true }; pManager.AddPointParameter("Position", "P", "Node position", GH_ParamAccess.item); pManager.AddBooleanParameter("Releases", "R", "Releases for the restraint. Should be a list of 6 bools. True = Fixed, False = Free. Defaults as all fixed.", GH_ParamAccess.list, allFixed); pManager.AddPlaneParameter("Orientation", "Pl", "Add an optional plane for node restraints", GH_ParamAccess.item, Plane.WorldXY); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Point", "Point", "Point. [m]", GH_ParamAccess.item); pManager.AddTextParameter("Identifier", "Identifier", "Identifier.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Point", "Point", "Point. [m]", GH_ParamAccess.item); pManager.AddVectorParameter("Force", "Force", "Force. [kN]", GH_ParamAccess.item); pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item); pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item); pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager manager) { manager.AddPointParameter("Points", "C", "Points to query", GH_ParamAccess.list); manager.AddNumberParameter("Tolerance", "T", "Tolerance used to query", GH_ParamAccess.item, 0.0); manager.AddBooleanParameter("BoundingBox", "B", "Query as a BoundingBox", GH_ParamAccess.item, true); manager.AddBooleanParameter("Strict", "S", "True means element should be strictly contained", GH_ParamAccess.item, false); base.RegisterInputParams(manager); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddGenericParameter("Plants", "P", "The plant attributes to simulate", GH_ParamAccess.list); pManager.AddPointParameter("Locations", "L", "The locations to assign to each attribute", GH_ParamAccess.list); pManager.AddNumberParameter("Times", "T", "The time (in years) since initial planting to display", GH_ParamAccess.item); pManager[2].Optional = true; //pManager.AddBooleanParameter("Visualisations", "V", "Whether to show a full L-system visualisation (true) or just the base geoemtries (false)", GH_ParamAccess.item, false); //pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Origin", "O", "Distribution origin.", GH_ParamAccess.item, Point3d.Origin); pManager.AddGeometryParameter("Geometry", "G", "Geometry to distribute.", GH_ParamAccess.list); pManager.AddPlaneParameter("Geometry planes", "P", "Planes for each piece of geometry.", GH_ParamAccess.list); pManager.AddNumberParameter("XSpacing", "X", "Spacing in the X-direction.", GH_ParamAccess.item, 2000.0); pManager.AddNumberParameter("YSpacing", "Y", "Spacing in the Y-direction.", GH_ParamAccess.item, 1000.0); pManager.AddIntegerParameter("NumColumns", "N", "Number of columns in the distribution.", GH_ParamAccess.item, 4); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { List <bool> allFixed = new List <bool> { true, true, true, true, true, true }; pManager.AddPointParameter("Position", "P", "Node position", GH_ParamAccess.item); pManager.AddBooleanParameter("Releases", "R", "Releases for the restraint. Should be a list of 6 bools. True = Fixed, False = Free. Defaults as all fixed.", GH_ParamAccess.list, allFixed); pManager.AddPlaneParameter("Orientation", "Pl", "Add an optional plane for node restraints", GH_ParamAccess.item, Plane.WorldXY); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddBooleanParameter("Reset", "Reset", "Reset", GH_ParamAccess.item, true); pManager.AddBooleanParameter("Run", "Run", "Run", GH_ParamAccess.item, false); pManager.AddPointParameter("Initial Particles", "Initial Particles", "Initial Particles", GH_ParamAccess.list); pManager.AddLineParameter("Initial Branches", "Initial Branches", "Initial Branches", GH_ParamAccess.list); pManager[3].Optional = true; pManager.AddIntegerParameter("Free Particle Count", "Free Particle Count", "Free Particle Count", GH_ParamAccess.item); pManager.AddIntegerParameter("Subiterations", "Subiterations", "Subiterations", GH_ParamAccess.item, 10); }
void Inputs(GH_InputParamManager pManager) { pManager.AddParameter(new ToolpathParameter(), "Toolpath", "T", "Toolpath to orient.", GH_ParamAccess.item); pManager.AddMeshParameter("Surface", "S", "Surface mesh - mesh touching the toolpath.", GH_ParamAccess.item); pManager.AddMeshParameter("Guide", "G", "Guide mesh - mesh that will be used to align the normal of the targets.", GH_ParamAccess.item); pManager.AddPointParameter("Point alignment", "P", "Aligns the X axis of the tagets to look towards this point (in world coordinate system). If not supplied it will use the X axis of the reference target.", GH_ParamAccess.item); pManager[1].Optional = true; pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPlaneParameter("Bricks", "B", "Center planes of bricks", GH_ParamAccess.tree); pManager.AddTextParameter("Types", "T", "Types of bricks", GH_ParamAccess.tree); pManager.AddPointParameter("Corners", "C", "Corners of bricks", GH_ParamAccess.tree); pManager.AddPlaneParameter("SuckerCenter", "SC", "Center of sucker", GH_ParamAccess.item); pManager.AddPlaneParameter("SensorCenter", "SE", "Center of sensor", GH_ParamAccess.item); pManager.AddPlaneParameter("HomePlane", "HP", "Home planes of bricks", GH_ParamAccess.item); pManager.AddNumberParameter("Retreat", "R", "Retreat of sensor", GH_ParamAccess.item, 160); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddSurfaceParameter("Surface", "S", "Base landscape form (as a surface) for the flow calculation", GH_ParamAccess.item); pManager.AddPointParameter("Points", "P", "Start points for the flow paths. These should be above the surface (they will be projected on to it)", GH_ParamAccess.list); pManager.AddNumberParameter("Fidelity", "F", "Amount to move for each flow iteration. Small numbers may take a long time to compute. If not specified or set to 0 a (hopefully) sensible step size will be calculated.", GH_ParamAccess.item, 0); pManager[2].Optional = true; pManager.AddIntegerParameter("Steps", "L", "A limit to the number of flow iterations. Leave unset or to 0 for an unlimited set of iterations", GH_ParamAccess.item, 0); pManager[3].Optional = true; pManager.AddBooleanParameter("Thread", "T", "Whether to multithread the solution (this can speed up long calculations)", GH_ParamAccess.item, false); pManager[4].Optional = true; }
void Inputs(GH_InputParamManager pManager) { pManager.AddTextParameter("File", "F", "Text file. Each target should be one line, values should be separated by commas.", GH_ParamAccess.item); pManager.AddParameter(new TargetParameter(), "Target", "T", "Created targets will use the parameters of this reference target if they're not supplied in the CSV file.", GH_ParamAccess.item); pManager.AddTextParameter("Mask", "M", "Mask representing CSV format. Parameters allowed: 'position, normal, xaxis, speed, zone, type'. The first three should be 3 values (x,y,z). Distance values should be defined in mm. Speed is defined in mm/minute. Type should be an integer (0,1) where 0 is a rapid move and 1 is a cutting move.", GH_ParamAccess.item, "position, normal, speed"); pManager.AddBooleanParameter("Reverse normal", "R", "Reverses the tool normal.", GH_ParamAccess.item, false); pManager.AddNumberParameter("Cutting speed", "C", "Maximum speed in mm/min that will be considered a cutting move.", GH_ParamAccess.item, 2750); pManager.AddPointParameter("Point alignment", "P", "Aligns the X axis of the tagets to look towards this point (in world coordinate system). If not supplied it will use the X axis of the reference target.", GH_ParamAccess.item); pManager[4].Optional = true; pManager[5].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "Name", "Name of storey", GH_ParamAccess.item); pManager.AddPointParameter("Origo", "Origo", "Origo of storey. Storeys can only have unique Z-coordinates. If several storeys are placed in a model their origos should share XY-coordinates.", GH_ParamAccess.item); pManager.AddVectorParameter("Direction", "Direction", "Direction of storey x'-axis in the XY-plane. If several storeys are placed in a model their direction should be identical. Optional, default value is GCS x-axis.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("DimensionX", "DimensionX", "Dimension in x'-direction. [m]", GH_ParamAccess.item, 50); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("DimensionY", "DimensionY", "Dimension in y'-direction. [m]", GH_ParamAccess.item, 30); pManager[pManager.ParamCount - 1].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Start point A", "PtA", "Start point A", GH_ParamAccess.item); pManager.AddPointParameter("Start point B", "PtB", "Start point B", GH_ParamAccess.item); pManager.AddPlaneParameter("Working plane", "P", "Working plane of elastica", GH_ParamAccess.item); pManager.AddNumberParameter("Length", "L", "Curve length", GH_ParamAccess.item); pManager.AddNumberParameter("Width", "W", "Distance between point A and B", GH_ParamAccess.item); pManager.AddNumberParameter("Height", "H", "Height of curve", GH_ParamAccess.item); pManager.AddNumberParameter("Angle", "A", "Angle", GH_ParamAccess.item); pManager.AddNumberParameter("E modulus", "E", "Elastic modulus of curve", GH_ParamAccess.item); pManager.AddNumberParameter("Moment of inertia", "I", "Moment of inertia of curve", GH_ParamAccess.item); 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; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "N", "Tool name", GH_ParamAccess.item, "DefaultGHTool"); pManager.AddPlaneParameter("TCP", "P", "TCP plane", GH_ParamAccess.item, Plane.WorldXY); pManager.AddPlaneParameter("Calibration", "4", "Optional 4 point TCP calibration. Orient the tool in 4 different ways around the same point in space and input the 4 planes that correspond to the flange", GH_ParamAccess.list); pManager.AddNumberParameter("Weight", "W", "Tool weight in kg", GH_ParamAccess.item, 0.0); pManager.AddPointParameter("Centroid", "C", "Optional tool center of mass", GH_ParamAccess.item); pManager.AddMeshParameter("Mesh", "M", "Tool geometry", GH_ParamAccess.item); pManager[2].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPointParameter("Load position", "P", "Position of the poit load", GH_ParamAccess.item); pManager.AddVectorParameter("Force", "F", "Force. Defaulted to 0 vector.", GH_ParamAccess.item, new Vector3d(0, 0, 0)); pManager.AddVectorParameter("Moment", "M", "Moment. Defaulted to 0 vector.", GH_ParamAccess.item, new Vector3d(0,0,0)); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { base.RegisterInputParams(pManager); pManager.AddPointParameter(RS.pointName, RS.pointNickname, "The source point for the sensory field.", GH_ParamAccess.item, Point3d.Origin); pManager.AddNumberParameter("Radius", "R", "The radius of the range of the sensory field falloff.", GH_ParamAccess.item, 10); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { //0 pManager.AddGeometryParameter("Geometry", "Geom", "Input Surface or Mesh", GH_ParamAccess.item); //1 pManager.AddGenericParameter("TargetLengthFunction", "L", "A function determining local edge length", GH_ParamAccess.item); //2 pManager.AddCurveParameter("FixCurves", "FixC", "Curves which will be kept sharp during remeshing. Can be boundary or internal curves", GH_ParamAccess.list); pManager[2].Optional = true; //3 pManager.AddPointParameter("FixVertices", "FixV", "Points to keep fixed during remeshing", GH_ParamAccess.list); pManager[3].Optional = true; //4 pManager.AddIntegerParameter("Flip", "Flip", "Criterion used to decide when to flip edges (0 for valence based, 1 for angle based)", GH_ParamAccess.item, 1); //5 pManager.AddNumberParameter("PullStrength", "Pull", "Strength of pull to target geometry (between 0 and 1). Set to 0 for minimal surfaces", GH_ParamAccess.item, 0.8); //6 pManager.AddIntegerParameter("Iterations", "Iter", "Number of steps between outputs", GH_ParamAccess.item, 1); //7 pManager.AddBooleanParameter("Reset", "Reset", "True to initialize, false to run remeshing. Connect a timer for continuous remeshing", GH_ParamAccess.item, true); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { base.RegisterInputParams(pManager); pManager.AddPointParameter("Target Point", "P", "Point to be attracted to.", GH_ParamAccess.item, Point3d.Origin); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddBooleanParameter("Trigger", "T", "Trigger to stream the data from Grasshopper to another application.", GH_ParamAccess.item, false); pManager.AddPointParameter("Origin Point", "OP", "Origin points for sent objects.", GH_ParamAccess.tree, null); pManager.AddPointParameter("Adaptive Points", "AP", "Adaptive component points.", GH_ParamAccess.tree, null); pManager.AddCurveParameter("Curve", "C", "Single arc, line, or closed planar curves. Closed planar curves can be used to generate floor, wall or roof sketches, or single segment non-closed arcs or lines can be used for line based family generation.", GH_ParamAccess.tree); pManager.AddVectorParameter("Orientation", "O", "Vector to orient objects.", GH_ParamAccess.tree); pManager.AddVectorParameter("Orientation on Face", "F", "Orientation of the element in relation to the face it will be hosted to", GH_ParamAccess.tree); pManager[1].Optional = true; pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { base.RegisterInputParams(pManager); pManager.AddPointParameter(RS.pointName, RS.pointNickname, RS.pointForEmitterDescription, GH_ParamAccess.item, Point3d.Origin); }