コード例 #1
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddCurveParameter("Struts", "Struts", "Cleaned curve network.", GH_ParamAccess.list);
     pManager.AddPointParameter("Nodes", "Nodes", "List of unique nodes.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("CurveStart", "I", "Index in 'Nodes' for the start of each curve in 'Struts'.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("CurveEnd", "J", "Index in 'Nodes' for the end of each curve in 'Struts'.", GH_ParamAccess.list);
 }
コード例 #2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("filename", "F", "The destination filename", GH_ParamAccess.item);
     pManager.AddIntegerParameter("height", "H", "Height (pixels) of screenshot", GH_ParamAccess.item, 600);
     pManager.AddIntegerParameter("width", "W", "Width (pixels) of screenshot", GH_ParamAccess.item, 800);
     pManager.AddTextParameter("viewport", "VP", "Viewport to capture", GH_ParamAccess.item, "Perspective");
     pManager.AddBooleanParameter("enabled", "E", "Enable the screenshot", GH_ParamAccess.item, false);
 }
コード例 #3
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of each bar element", GH_ParamAccess.list);
     pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of each bar element", GH_ParamAccess.list);
     pManager.AddNumberParameter("AxialStress", "stressA", "The axial stresses [MPa]", GH_ParamAccess.list);
     pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index of each shared point between two consecutive line segments", GH_ParamAccess.list);
     pManager.AddNumberParameter("BendingStress", "stressB", "The bending stresses [MPa]", GH_ParamAccess.list);
 }
コード例 #4
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of a bar element", GH_ParamAccess.item);
     pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of a bar element", GH_ParamAccess.item);
     pManager.AddLineParameter("Line", "ln", "The updated line geometry", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialForce", "F", "The axial force [kN] in the bar (- is compression)", GH_ParamAccess.item);
     pManager.AddNumberParameter("AxialStress", "stressA", "The axial stress [MPa] in the bar (- is compression)", GH_ParamAccess.item);
 }
コード例 #5
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("ids", "ids", "input objects ids", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Copies", "C", "Copies", GH_ParamAccess.item, 1);
     pManager.AddIntegerParameter("Priority", "P", "Priority", GH_ParamAccess.item, 1);
     pManager.AddParameter(new Orientation(), "Orientation", "O", "Orientation", GH_ParamAccess.item);
     // Ha de ser un ObjectOrientation
     pManager.AddParameter(new Criterion(), "Criterion", "Cr", "Criterion", GH_ParamAccess.item);
 }
コード例 #6
0
 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;
 }
コード例 #7
0
ファイル: BBTextComponent.cs プロジェクト: olitur/Bowerbird
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Location", "L", "Location and orientation of the text", GH_ParamAccess.item);
     pManager.AddTextParameter("Text", "T", "Text to display", GH_ParamAccess.item);
     pManager.AddNumberParameter("Size", "S", "Size of the text", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Bold", "B", "True for bold font", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("Horizontal alignment", "H", "0=Center, 1=Left, 2=Right", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Vertical alignment", "V", "0=Center, 1=Top, 2=Bottom, 3=Baseline", GH_ParamAccess.item, 0);
 }
コード例 #8
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Radius", "R", "Radius of cylinder", GH_ParamAccess.item, 15);
     pManager.AddNumberParameter("Height", "H", "Height of cylinder", GH_ParamAccess.item, 25);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (axial)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (theta)", GH_ParamAccess.item, 15);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (radial)", GH_ParamAccess.item, 4);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
コード例 #9
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface 1", "S1", "First bounding surface", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface 2", "S2", "Second bounding surface", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
コード例 #10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Cell Size ( x )", "CSx", "Size of unit cell (x)", GH_ParamAccess.item, 5); // '5' is the default value
     pManager.AddNumberParameter("Cell Size ( y )", "CSy", "Size of unit cell (y)", GH_ParamAccess.item, 5);
     pManager.AddNumberParameter("Cell Size ( z )", "CSz", "Size of unit cell (z)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( x )", "Nx", "Number of unit cells (x)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( y )", "Ny", "Number of unit cells (y)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number of Cells ( z )", "Nz", "Number of unit cells (z)", GH_ParamAccess.item, 5);
 }
コード例 #11
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to conform to", GH_ParamAccess.item);
     pManager.AddCurveParameter("Axis", "A", "Axis (may be curved)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
コード例 #12
0
 /// <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;
 }
コード例 #13
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Sensor Angle", "SA", "Agent sense a cone space with apenture equals 2*thisvalue. As number in degree, range 0~180", GH_ParamAccess.item, 22.5);
     pManager.AddNumberParameter("Sotate Angle", "RA", "Agent does not rotate to a sensed angle with max chemoattractor, it rotate that angle multiplies rotateangle/senseangle. As number in degree, range 0~180", GH_ParamAccess.item, 45);
     pManager.AddNumberParameter("Sensor Offset", "SO", "Agent's sensor's max range.(height of sense cone). As number", GH_ParamAccess.item, 10);
     pManager.AddIntegerParameter("Detect Direction R", "DDirR", "Subdivide of sense points on perimeter of sensecone's bottom circle. As integer.", GH_ParamAccess.item, 4);
     pManager.AddIntegerParameter("Detect Direction Phy", "DDirP", "Subdivide of sense points on radius of sensecone's bottom circle. As integer.", GH_ParamAccess.item, 1);
     pManager.AddIntegerParameter("Death Distance", "DDis", "Agents die after travel such steps", GH_ParamAccess.item, 100);
     pManager.AddNumberParameter("Max Speed", "MS", "Agents' speed in index space. As number.", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Deploy Trace Once", "DepT", "Agent deploys such amount of chemoattractor once step. As number.", GH_ParamAccess.item, 10);
 }
コード例 #14
0
ファイル: Agent.cs プロジェクト: lxfschr/Quelea
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
   pManager.AddIntegerParameter("Lifespan", "L", "Timesteps the agent will be alive for.", GH_ParamAccess.item, 30);
   pManager.AddNumberParameter("Mass", "M", "The mass of the agent.", GH_ParamAccess.item, 1.0);
   pManager.AddNumberParameter("Body Size", "B", "The diameter of the extent of the agent's size.", GH_ParamAccess.item, 1.0);
   pManager.AddNumberParameter("Maximum Speed", "S", "The maximum speed of the agent.", GH_ParamAccess.item, 0.5);
   pManager.AddNumberParameter("Maximum Force", "F", "The maximum force of the agent.", GH_ParamAccess.item, 0.1);
   pManager.AddNumberParameter("Vision Angle", "A", "The maximum angle, taken from the velocity vector,  that the agent can see around it.", GH_ParamAccess.item, 15.0);
   pManager.AddNumberParameter("Vision Radius", "R", "The maximum radius around the agent that it can see.", GH_ParamAccess.item, 5.0);
   pManager.AddIntegerParameter("Length of position history", "N", "The length of position history", GH_ParamAccess.item, 1);
 }
コード例 #15
0
ファイル: BBWaffleComponent.cs プロジェクト: olitur/Bowerbird
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Count X", "X", "Slices in x direction", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Count Y", "Y", "Slices in y direction", GH_ParamAccess.item, 2);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base Plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("Project", "p", "Project slices to xy plane", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("Distance", "d", "Minimal distance between projected slices", GH_ParamAccess.item, 1.0);
 }
コード例 #16
0
        /// <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
        }
コード例 #17
0
ファイル: BBOffsetComponent.cs プロジェクト: olitur/Bowerbird
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curves", "C", "Curves to offset", GH_ParamAccess.list);
            pManager.AddNumberParameter("Distance", "D", "Offset distance", GH_ParamAccess.item);
            pManager.AddPlaneParameter("Plane", "P", "Plane for offset operation", GH_ParamAccess.item);
            pManager.AddIntegerParameter("End Type", "E", "0 = Round\n1 = Square\n2 = Butt", GH_ParamAccess.item, 0);
            pManager.AddIntegerParameter("Join Type", "J", "0 = Round\n1 = Square\n2 = Miter", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("Miter Limit", "M", "", GH_ParamAccess.item, 10.0);
            pManager.AddNumberParameter("Arc Tolerance", "A", "The maximum distance that the flattened path will deviate from the 'true' arc", GH_ParamAccess.item, 0.01);

            pManager[2].Optional = true;
        }
コード例 #18
0
ファイル: SegmentComponent.cs プロジェクト: samuto/Silkworm
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "Curves", "A List of Curves", GH_ParamAccess.list);

            pManager.AddIntegerParameter("mainSegmentCount", "Seg", " If mainSegmentCount <= 0, then both subSegmentCount and mainSegmentCount are ignored. If mainSegmentCount > 0, then subSegmentCount must be >= 1. In this case the nurb will be broken into mainSegmentCount equally spaced chords. If needed, each of these chords can be split into as many subSegmentCount sub-parts if the subdivision is necessary for the mesh to meet the other meshing constraints. In particular, if subSegmentCount = 0, then the curve is broken into mainSegmentCount pieces and no further testing is performed.", GH_ParamAccess.item, 0);
            pManager.AddIntegerParameter("subSegmentCount", "subSeg", "An amount of subsegments.", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("maxAngleRadians", "maxAngle", "( 0 to pi ) Maximum angle (in radians) between unit tangents at adjacent vertices.", GH_ParamAccess.item, 0.05);
            pManager.AddNumberParameter("maxChordLengthRatio", "maxChord", "Maximum permitted value of (distance chord midpoint to curve) / (length of chord).", GH_ParamAccess.item, 0.1);
            pManager.AddNumberParameter("maxAspectRatio", "maxAspect", "If maxAspectRatio < 1.0, the parameter is ignored. If 1 <= maxAspectRatio < sqrt(2), it is treated as if maxAspectRatio = sqrt(2). This parameter controls the maximum permitted value of (length of longest chord) / (length of shortest chord).", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("tolerance", "tol", "If tolerance = 0, the parameter is ignored. This parameter controls the maximum permitted value of the distance from the curve to the polyline.", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("minEdgeLength", "minEdge", "The minimum permitted edge length.", GH_ParamAccess.item, 0.1);
            pManager.AddNumberParameter("maxEdgeLength", "maxEdge", "If maxEdgeLength = 0, the parameter is ignored. This parameter controls the maximum permitted edge length.", GH_ParamAccess.item, 0);
            pManager.AddBooleanParameter("keepStartPoint", "SPt?", "If true the starting point of the curve is added to the polyline. If false the starting point of the curve is not added to the polyline.", GH_ParamAccess.item, true);
        }
コード例 #19
0
ファイル: OffsetComponent.cs プロジェクト: JIMMMMMMY/clipper
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            // set the message for this component.
              pManager.AddCurveParameter("Polylines", "P", "A list of polylines to offset", GH_ParamAccess.list);
              pManager.AddNumberParameter("Distance", "D", "Offset Distance", GH_ParamAccess.item);
              pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default(Plane));

              pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
            //public enum ClosedFilletType { Round, Square, Miter }
              pManager.AddIntegerParameter("ClosedFillet", "CF", "Closed fillet type (0 = Round, 1 = Square, 2 = Miter)", GH_ParamAccess.list, new List<int> { 1 });
              ////public enum OpenFilletType { Round, Square, Butt }
              pManager.AddIntegerParameter("OpenFillet", "OF", "Open fillet type (0 = Round, 1 = Square, 2 = Butt)", GH_ParamAccess.list, new List<int> { 1 });
              pManager.AddNumberParameter("Miter", "M", "If closed fillet type of Miter is selected: the maximum extension of a curve is Distance * Miter", GH_ParamAccess.item, 2);
        }
コード例 #20
0
        /// <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
        }
コード例 #21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
     pManager.AddIntegerParameter("detect radius", "detr", "Below this value, pairs of agents locations will be connected at a possibility.", GH_ParamAccess.item);
     pManager.AddNumberParameter("select possibility", "selp", "The possibility of a pair of agents locations are connected", GH_ParamAccess.item);
 }
コード例 #22
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index associated with the calculated moment", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "pl", "The bending plane", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingMoment", "M", "The bending moment [kNm]", GH_ParamAccess.item);
     pManager.AddNumberParameter("BendingStress", "stressB", "The bending stress [MPa]", GH_ParamAccess.item);
 }
コード例 #23
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     base.RegisterInputParams(pManager);
     pManager.AddIntegerParameter("radius", "r", "the radius in index space, point pairs with distance below this value will be tested", GH_ParamAccess.item);
     pManager.AddNumberParameter("possibility", "p", "the possibility of connect a pair of points ", GH_ParamAccess.item);
     pManager.AddNumberParameter("near level", "nl", "if the chemoattractor level dffenrence between a pair of points is lower than this value, we connect them with possibility.", GH_ParamAccess.item);
 }
コード例 #24
0
 /// <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);
 }
コード例 #25
0
 /// <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);
 }
コード例 #26
0
ファイル: Rod.cs プロジェクト: CecilieBrandt/K2Engineering
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("LineA", "LnA", "Line representing the first segment [m]", GH_ParamAccess.item);
     pManager.AddLineParameter("LineB", "LnB", "Line representing the consecutive segment [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
     pManager.AddNumberParameter("Inertia", "I", "The moment of inertia [mm4]", GH_ParamAccess.item);
     pManager.AddNumberParameter("z-distance", "z", "The distance from the section axis to the extreme fiber [mm]", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RestAngleOption", "Opt", "Specify the rest angle. 0: straight. 1: current angle", GH_ParamAccess.item, 0);
 }
コード例 #27
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Lines", "L", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Sides", "S", "Number of sides for the struts", GH_ParamAccess.item, 6);
     pManager.AddNumberParameter("Start Radius", "Rs", "Radius at the start of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("End Radius", "Re", "Radius at the end of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("Node Depth", "N", "Offset depth for nodes", GH_ParamAccess.item);
     pManager.AddNumberParameter("Division", "D", "Segment division length", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Open", "O", "If true, nodes with only one connected strut will be left open", GH_ParamAccess.item, false);
 }
コード例 #28
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Food", "food", "food", GH_ParamAccess.list); //0
     pManager[0].Optional = true;
     pManager.AddPointParameter("Origin", "origin", "origin", GH_ParamAccess.list); //1
     pManager.AddNumberParameter("Step", "D", "Step distance", GH_ParamAccess.item,45); //2
     pManager.AddNumberParameter("Infuence", "di", "Infuence distance", GH_ParamAccess.item,3); //3
     pManager.AddNumberParameter("Kill-Eat", "dk", "Killing distance", GH_ParamAccess.item,1.2); //4
     pManager.AddIntegerParameter("Iteraction", "loop", "Number of iteraction", GH_ParamAccess.item,1); //5
     pManager.AddBooleanParameter("Reset", "reset", "Reset structure", GH_ParamAccess.item,false); //6
 }
コード例 #29
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Elements", "E", "Elements", GH_ParamAccess.list);
            pManager.AddGenericParameter("Supports", "S", "Supports", GH_ParamAccess.list);
            pManager.AddGenericParameter("Loads", "L", "Loads", GH_ParamAccess.list);
            pManager.AddIntegerParameter("ModelType","T", "Model type: 0 = 2D truss, 1 = 3D full", GH_ParamAccess.item, 0);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
        }
コード例 #30
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Goals", "PGoals", "Permanent goals e.g. bar, rod and support goals as FLATTENED list", GH_ParamAccess.list);
     pManager.AddGenericParameter("Load", "LGoals", "K2Structural load goals", GH_ParamAccess.list);
     pManager.AddNumberParameter("LFStart", "LFstart", "The start load factor", GH_ParamAccess.item);
     pManager.AddNumberParameter("LFStep", "LFstep", "The load factor step size", GH_ParamAccess.item);
     pManager.AddNumberParameter("Angle", "alfa", "Specify the allowed angle deviation between the tangent to the load-displacement curve and vertical in [degrees]", GH_ParamAccess.item, 15.0);
     pManager.AddNumberParameter("Displ", "dMax", "Specify the maximum allowed displacement for a vertex in [m]", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Threshold", "thres", "The total kinetic energy threshold to define equilibrium", GH_ParamAccess.item, 1e-15);
     pManager.AddIntegerParameter("IterationCount", "iter", "Specify the maximum number of equilibrium iterations for each load increment", GH_ParamAccess.item, 100);
     pManager.AddBooleanParameter("OutputAll?", "opt", "Output option. If true, displacements and goal results are output for each load increment. If false, only for the last two", GH_ParamAccess.item, false);
 }