コード例 #1
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Planes", "P", "Section Planes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0.0);
 }
コード例 #2
0
ファイル: BBLayerComponent.cs プロジェクト: olitur/Bowerbird
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
     pManager.AddPlaneParameter("Plane", "P", "Base plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddNumberParameter("Border", "B", "Overlapping of the layers", GH_ParamAccess.item, 0);
 }
コード例 #3
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "A Grasshopper Mesh", GH_ParamAccess.item);
     pManager.AddTextParameter("Attribute Names", "[aN]", "Attribute Names", GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager.AddTextParameter("Attribute Values", "[aV]", "Attribute Values", GH_ParamAccess.list);
     pManager[2].Optional = true;
 }
コード例 #4
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "A Grasshopper Mesh", GH_ParamAccess.item);
     pManager.AddColourParameter("colors", "C", "A list of colors - one per face.", GH_ParamAccess.list);
     pManager.AddTextParameter("Attribute Names", "[aN]", "Attribute Names", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddTextParameter("Attribute Values", "[aV]", "Attribute Values", GH_ParamAccess.list);
     pManager[3].Optional = true;
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[4].Optional = true;
 }
コード例 #5
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);
 }
コード例 #6
0
 /// <summary>
 /// Registers input parameters for component
 /// </summary>
 /// <param name="pManager"></param>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "List of points for repulsion", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "Radius of points", GH_ParamAccess.list);
     pManager.AddMeshParameter("Mesh", "M", "Mesh on which points will move.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Damping", "D", "Damping the system. If damping=1, the system will keep running", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Force", "F", "Force working between points", GH_ParamAccess.item, 15);
     pManager.AddColourParameter("Colour", "C", "Vertex Colours in same order as vertices", GH_ParamAccess.list);
     pManager.AddNumberParameter("Colour Sensitivity Repulsion", "CIRE", "1 = if black, then NO repulsion, 0 = same repulsions anywhere on mesh", GH_ParamAccess.item, 0.95);
     pManager.AddNumberParameter("Colour Sensitivity Radius", "CIRA", "1 = if black, then full radius, if white then radius = 0, 0 = radius doesn't change", GH_ParamAccess.item, 0.7);
     pManager.AddBooleanParameter("Reset", "Reset", "Resets the system", GH_ParamAccess.item, true);
 }
コード例 #7
0
ファイル: HomogenComponent.cs プロジェクト: smor/intralattice
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "Mesh", "Thickened wireframe", GH_ParamAccess.item);
 }
コード例 #8
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 the base mesh here", GH_ParamAccess.item);
 }
コード例 #9
0
ファイル: LloydsComponent.cs プロジェクト: formateng/giraffe
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("mesh", "m", "Mesh to perform clustering on", GH_ParamAccess.item);
     pManager.AddIntegerParameter("metric", "D/N", " 0 = euclidian error metric, 1 = normal based error metric", GH_ParamAccess.item, 1);
     pManager.AddIntegerParameter("numberOfFacets", "n", "number of facets required for output", GH_ParamAccess.item, 90);
 }
コード例 #10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("RhinoMesh", "RhinoMesh", "RhinoMesh", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Plates ID List", "Plates ID List", "Plates ID List", GH_ParamAccess.list);
     pManager.AddNumberParameter("Min. Thickness", "Min. Thickness", "Min. Thickness", GH_ParamAccess.item, 0.3);
     pManager.AddNumberParameter("Max. Thickness", "Max. Thickness", "Max. Thickness", GH_ParamAccess.item, 1.0);
     pManager.AddPointParameter("Attr. ThicknessPts", "Attr. ThicknessPts", "Attr. ThicknessPts", GH_ParamAccess.list, new Point3d(10000, 10000, 10000));
     pManager.AddBooleanParameter("H. EffectThickness", "H. EffectThickness", "H. EffectThickness", GH_ParamAccess.item, false);
     pManager.AddPointParameter("Closed Panel Area", "Closed Panel Area", "Closed Panel Area", GH_ParamAccess.list, new Point3d());
     pManager.AddNumberParameter("Panel Effect Area", "Panel Effect Area", "Panel Effect Area", GH_ParamAccess.item, 0.001);
     pManager.AddBooleanParameter("Auto Gen Plates", "Auto Gen Plates", "Auto Gen Plates", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Plate Offset", "Plate Offset", "Plate Offset", GH_ParamAccess.item, 0.5);
     pManager.AddNumberParameter("Threads", "Threads", "Threads", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("ThreadsP", "ThreadsP", "ThreadsP", GH_ParamAccess.item, 1.0);
 }
コード例 #11
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "Mesh", "Mesh(es) to preview.", GH_ParamAccess.list);
 }
コード例 #12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "Mesh", "Mesh to inspect.", GH_ParamAccess.item);
 }
コード例 #13
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddMeshParameter("Analysis Mesh", "AMesh", "Analysis Mesh", GH_ParamAccess.item);
 }