e
http://www.grasshopper3d.com/forum/topics/every-possible-combinatio...
And I get this
7 planes => 127 combinations => 3 differents solids
I consider that, if a solid has the same center as another it is the same. Not true in general.
…
ue;
....
This is easy because you know the variables are always there. With an array you'd have to keep testing for null to be sure not to cause a NullReferenceException.
2. Create an array of bools. Least amount of typing.
3. Create an enumeration with the Flags option set to store the state:
[Flags]
private enum OutputState
{
ShowNone = 0,
ShowTime = 1,
ShowTemp = 2,
ShowDewP = 4,
ShowWind = 8,
...
ShowAll = 127
}
private OutputState _state = OutputState.ShowAll;
4. There's other ways as well, but I'd pick one of these three.
--
David Rutten
david@mcneel.com…
Added by David Rutten at 10:00am on March 10, 2014
hopper and the GH file.
2. There is a drop down menu at the top of Pure Data that reads "Media". Click on "Midi". If your device connection is working, you should see it show up as an option. Set the device to MIDI in. You don't really need to set a MIDI out unless you are planning to send messages back to the device (not sure why you would want to).
3. The boxes labeled "ctlin" with a number are the Control Change in's. In Pure Data go to the "Edit" menu and click on "Edit Mode". Click on one of the "ctlin #" boxes and change the number to match the Control Change number of your physical controller. Mine starts with 5 in the upper right and goes to 65. Each control change number shows up on the display window of my device when I use it which made it easy.
4. Continue this process for all your controls. Delete the unneccesary "ctlin #" boxes by selecting them with a fence and clicking "delete". When you hover over one of the wires you should see and "x". Press the "backspace" key to delete it.
5. Now go down to the "pack f f f ..." box. There should be as many "f" or "floats" in that box as there are you number of controllers. Delete the remaining "f".
6. Next look at the box below that reads "send /0...". Make sure to keep the "/0". If you delete the "/" it will crash Grasshopper. Change the number "5" to match your first control change number. Leave the $numbers alone. You'll want to keep them sequential. Continue change the control change numbers to match all of yours. The $numbers should match the order in which you wired each controller to the "pack f f f..." box.
7. For testing purposes hover over the input on the upper let of the "print" box and connect it to the out of the "send" box. If everything is mapped correctly, working properly, and you go back to the "main" PD window you should see a list of all controllers will a value (0 to 127) next to it. As you turn a knob, the value next to the control change number will increase from 0 to 127. This will give you a good indication of whether or not everything is working and if you mapped it correctly.
8. Click on the "connect OSC" box. You might need to exit out of "edit mode" and back to "performance" mode in the PD canvas.
9. Go To Grasshopper. If everything is working you should see the Panel read "new message" when you turn a knob. At this point it should be pretty obvious how to modify the Grasshopper components. I've tried to keep everything as consistent as possible. Since I filtered out the "/0", the "explode data treat" component starts at 0, the numbers are shifted down by 1.
I just left the IP address, etc. alone on the gHowl UDP component. Just make sure the "port number" matches the OSC port number on the send in Pure Data. If you crash, you may need to choose a new number.
Hope that helps. Let me know if you have any questions. If your computer is not recognizing your midi controller, you may need to install "Midiyoke". I did at first, but it turns out I didn't need it after all.
Best of luck.
…
、、、不同角度的理解、诠释、运用和发掘规律、、、
新闻或者幻觉:马王堆墓穴中发掘出了丝绸做的鞋,不算是现代意义上真正的鞋,但是完成了一个完整的公式。
有一部分需要是共同的,在离开了沙滩和草地的时候。
找一个成熟的不一样的数学思维合作者,(可以一起申请参加sg2014活动,也可以不)
我想听到人们写给自己的语言,我不害怕听不懂;
也不在意你能看到我的美丽的脚和我们美丽的城市。
你存在?存在0.1%?如果≥1/4
With the two version of the PDF in the file upload, doubt, 10th should be able to see the many PDF.
There are some scruples, confusion ——"The additional property of professional activities",——Subject classification, commercial, regional、、、
There is a place Africa, people don't wear shoes, A few people with grass or leather on the foot (and buildings——In order to spatial density) winding,
the manufacture of shoes, two sales do two judgment:
A There is no life belongs to shoes
B this is the market.
I spent a lot of energy explained to students, which is not to do programming people do、、、 the different angle understanding, interpretation, application and explore the law、、、
The news or illusion:Mawangdui tomb unearthed silk shoes , is not the modern sense of true shoes, but the completion of a complete formula.
There is a need is common, when they leave the beach and grass.
Find a mathematically mature different thinking partners,(Can apply to participate in the activities of the sg2014, also can not)
I want to hear people wrote their own language, I am not afraid of don't understand;
Don't care what you can see my beautiful feet and our beautiful city.
Do you have? There are 0.1%? If ≥1 / 4 You know what I did wheni found out about you?
msxf6688@163.com
…
eometry.org
//////////////////////////////////////////////////////////////////////////////////
sg2012 TALKSHOP23 March 2012
The Talkshop is an opportunity to share perspectives, open debates, pose questions, challenge orthodoxies and propose new ideas in informal and open discussions between cluster participants, leading practitioners in various fields of expertise and emerging talents in digital design.
Topics:Shifting Attitudes How do we, as design professionals of the built environment, relate ourselves to materials?Material Energies: Effects An investigation of how energy interacts with intensive material properties and what this could mean for architecture.Material Flows: Applications The reality of the design practise.The Scale of Life An investigation on how material intensities vary through different scales.
Panelists include: Branko Kolarevic, Anna Dyson, Martin Tamke, Sal Craig, Dru Crawley, Kasper Guldager Jorgensen, Kiel Moe, Marie O'Mahony, Zoe Coombes, Jan Knippers and many others.
More information:http://smartgeometry.org/index.php?option=com_content&view=article&id=113&Itemid=157
//////////////////////////////////////////////////////////////////////////////////sg2012 SYMPOSIUM24 March 2012
Invited keynote speakers will showcase major projects that explore the range of ways materiality informs design. The conference is a unique opportunity to hear insights into the challenges ahead for the discipline.
Interwoven throughout the day will be reports and highlights from each workshop cluster, giving those in attendance an opportunity to view work created during the previous four days of intensive design and development.
Keynote Speakers:Enric Ruiz-Geli Cloud 9Robert Hull Head of Department of Material Science and Engineering, Rensselaer Polytechnic InstituteManfred Grohmann Bollinger+Grohmann EngineeringPerry Hall ArtistEvan Douglis Evan Douglis Studio, Dean of the School of Architecture RPI
More information:http://smartgeometry.org/index.php?option=com_content&view=article&id=150&Itemid=155
//////////////////////////////////////////////////////////////////////////////////sg2012 CONFERENCE FEES
$350 Early Bird Price$450 Conference Day Price
Register here: http://smartgeometry.org/index.php?option=com_pmform&view=form&layout=conference&Itemid=156
Reduced fees are available for students ($120). Email registrar@smartgeometry.org to confirm student status.
Conference fees include attendance to:Talkshop (23 March)A Visit to the Workshop (evening of 23 March)Symposium (24 March)Conference Reception (evening of 24 March)
//////////////////////////////////////////////////////////////////////////////////MATERIAL INTENSITIESImagine the design space of architecture was no longer at the scale of rooms, walls and atria, but that of cells, grains and vapour droplets. Rather than the flow of people, services, or construction schedules, the focus becomes the flow of light, vapour, molecular vibrations and growth schedules: design from the inside out.
The sg2012 challenge, Material Intensities, is intended to dissolve our notion of the built environment as inert constructions enclosing physically sealed spaces. Spaces and boundaries are abundant with vibration, fluctuating intensities, shifting gradients and flows. The materials that define them are in a continual state of becoming: a dance of energy and information.
sg2010 Working Prototypes strove to emancipate digital design from the hard drive by moving from the virtual to the actual in wrestling with the tangible world of physical fabrication. sg2011 Building the Invisible focused on informing digital design with real world data. sg2012 Material Intensities aims to energise our digital prototypes and to infuse them with material behaviour. They gain the potential to become rich simulations informed by the material dynamics, chemical composition, energy flows, force fields and environmental conditions that feed back into the design process.
More information:http://smartgeometry.org/index.php?option=com_content&view=article&id=127&Itemid=145
//////////////////////////////////////////////////////////////////////////////////SMARTGEOMETRY 2012
sg2012 will take place at the EMPAC building on the campus of Rensselaer Polytechnic Institute, Troy, in upstate New York USA from 19-24 March 2012. The sg2012 Workshop and conference will be a gathering of the global community of innovators and pioneers in the fields of architecture, design and engineering.
The event will be in two parts, a four day Workshop 19-22 March, and a public conference beginning with Talkshop 23 March, followed by a Symposium 24 March. The event follows the format of the highly successful preceding events at sg2010 Barcelona and sg2011 Copenhagen.
Rensselaer's history and strengths as a world-class engineering school afford a unique environment for design at the School of Architecture. In addition to it's own Undergraduate emphasis on design, computation and the built environment, its Graduate research programs focus on lighting, acoustics, and include the Center for Architectural Science and Ecology (CASE).
http://www.case.rpi.edu
The Experimental Media and Performing Arts Center (EMPAC), a pioneering facility devoted to research and performance across a range of digital and phycial media, will be the venue for the Workshop and Conference.
http://empac.rpi.edu
//////////////////////////////////////////////////////////////////////////////////
sg2012 WORKSHOPSEven though Workshop Applications are now closed, you can still keep an eye on each Workshop Cluster's developments leading up to the event.
Clusters are busy with pre-workshop tasks, all which can be view on the sgClusters page:
http://smartgeometry.org/index.php?option=com_community&view=groups Information about each Workshop Cluster can be found here:
http://smartgeometry.org/index.php?option=com_content&view=article&id=143&Itemid=149
//////////////////////////////////////////////////////////////////////////////////PLATINUM SPONSORBentley SystemsBentley offers comprehensive software solutions for the infrastructurelifecycle: from buildings to bridges, transit to utilities, cleanenergy to clean water, Bentley is Sustaining Infrastructure.http://www.bentley.com
//////////////////////////////////////////////////////////////////////////////////http://www.smartgeometry.org…
Added by Shane Burger at 11:21pm on February 12, 2012
lass BrepDeform Inherits GH_Component Public Reslist As New List(Of String) Public Sub New() MyBase.New("BrepDeform", "Deform", _ "移动物件的控制点" & vbCrLf & "(Move the control Point to change a object)", "SEG", "Modify")
End Sub Public Overrides ReadOnly Property ComponentGuid As System.Guid Get Return New Guid("8226e0ea-ed6b-47c2-8a24-244f044152d8") End Get End Property Protected Overrides ReadOnly Property Internal_Icon_24x24() As System.Drawing.Bitmap Get Return My.Resources.SEG_BrepDeform End Get End Property Protected Overrides Sub RegisterInputParams(ByVal pManager As GH_Component.GH_InputParamManager) ' pManager.AddTextParameter("Guid", "Id", "将要被替换的犀牛物件" & vbCrLf & "(RhinoObjects that will be replaced)", GH_ParamAccess.item) 'Dim guidParam As New Param_Guid pManager.AddParameter(New Param_Guid, "Guid", "Id", "将要被替换的犀牛物件" & vbCrLf & "(RhinoObjects that will be replaced)", GH_ParamAccess.item) pManager.AddPointParameter("ControlPoint3d", "C", "控制点的位置" & vbCrLf & "(Control Point's location)", GH_ParamAccess.item) pManager.AddPointParameter("NewPoint3d", "P", "新控制点的位置" & vbCrLf & "(New Control Point's location)", GH_ParamAccess.item) pManager.AddNumberParameter("Tolerace", "T", "输入点与物件实际控制点对比的精度" & vbCrLf & "(Tolerace for the Control Point match)", GH_ParamAccess.item, 0.1)
pManager.AddBooleanParameter("BlMove", "M", "如果是True则进行移动" & vbCrLf & "(If true Perform the Move)", GH_ParamAccess.item, False)
End Sub Protected Overrides Sub RegisterOutputParams(ByVal pManager As Kernel.GH_Component.GH_OutputParamManager) pManager.AddTextParameter("Result", "RG", "结果列表" & vbCrLf & "(Result)", GH_ParamAccess.list) End Sub Public Overrides ReadOnly Property Exposure As GH_Exposure Get Return GH_Exposure.primary End Get End Property
Protected Overrides Sub SolveInstance(ByVal DA As Kernel.IGH_DataAccess) If Banner.astrict.showmessage Then Return Dim Ids As Guid = Guid.Empty 'Dim Ids As String = String.Empty Dim tpt As Point3d = Point3d.Unset, opt As Point3d = Point3d.Unset Dim tolar As Double = 0.1 Dim blMove As Boolean = False If Not DA.GetData(0, Ids) Then Return If Not DA.GetData(1, opt) Then Return If Not DA.GetData(2, tpt) Then Return If Not DA.GetData(3, tolar) Then Return If Not DA.GetData(4, blMove) Then Return If Not blMove Then GoTo line1 Reslist.Add(Now & "_未替换!(Replace failed!)") Else Reslist.Clear() ' Grasshopper.Instances.ActiveCanvas.ModifiersEnabled = False End If
' rt.AddRange(docobjlist.Select(Function(geoobj As RhinoObject) GH_Convert.ObjRefToGeometry(New ObjRef(geoobj.Id)))) 'Private Checked(5) As Boolean, Namestr() As String = {"Point", "Curve", "Brep", "Mesh", "TextDot", "TextEntity"}
Try
Dim rh As RhinoDoc = Rhino.RhinoDoc.ActiveDoc Dim rhobj As RhinoObject = rh.Objects.Find(Ids) ' Dim rhobj As RhinoObject = rh.Objects.Find(New Guid(Ids))
Dim bobj As BrepObject = CType(rhobj, BrepObject) RhinoApp.RunScript("Cancel", False) RhinoApp.RunScript("Cancel", False) bobj.Select(True)
RhinoApp.RunScript("_SolidPtOn", False) Dim gobjs As GripObject() = bobj.GetGrips ' rh.Views.RedrawEnabled = False For Each grpobj As GripObject In gobjs
If grpobj.CurrentLocation.DistanceTo(opt) < tolar Then grpobj.Select(True) Dim CurrentPln As Plane = RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport.ConstructionPlane Dim tropt As New Point3d(opt), trtpt As New Point3d(tpt) tropt.Transform(Transform.PlaneToPlane(Plane.WorldXY, CurrentPln)) trtpt.Transform(Transform.PlaneToPlane(Plane.WorldXY, CurrentPln))
Dim movestr As String = "_move " + String.Format("{0},{1},{2} ", tropt.X, tropt.Y, tropt.Z) + String.Format("{0},{1},{2} _Cancel _Cancel", trtpt.X, trtpt.Y, trtpt.Z) RhinoApp.RunScript(movestr, True) grpobj.Select(False) End If
Next
'RhinoApp.RunScript("Cancel", False) 'RhinoApp.RunScript("Cancel", False) '' rh.Views.RedrawEnabled = True Reslist.Add(Now & "_替换成功!(Replace Success!)") Catch ex As Exception Reslist.Add(Now & "_替换失败!(Replace failed!)" & vbCrLf & ex.Message)
End Try ' Grasshopper.Instances.ActiveCanvas.ModifiersEnabled = True
line1: DA.SetDataList(0, Reslist) End Sub
'Private Sub Testt_PingDocument(sender As IGH_DocumentObject, e As GH_PingDocumentEventArgs) Handles Me.PingDocument ' Dim Mbool = Aggregate bcbool In Checked Into cb = Any(bcbool)
' If Not Mbool Then ' Checked(0) = True ' Message = Namestr(0) ' Order = 0 ' End If 'End Sub
End Class
The picture below shows the two question.
Question One I must use data dam, or the component can't batch deal the brep. I don't know why, I have You can give me a solution to make it working normal not using the data dam
Question Two I can not uset the Button component, If I use it, the gh canvas will die with some mouse event--. I have see this problem before in this forum,but there is no solution and explain. I want to know why and How to solve it.
I don't know if I have made my question clear,if not give a message. Thank you! Thank you all.
The gh test file and 3dm test file in the upload files.
…