Www Woojsung Com Component Packing Eng


13 pages

Please download to get full document.

View again

of 13
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
  VB SCRIPTING + GALAPAGOS GH VER. 0.8.0010 GRASSHOPPER WORKEXAMPLE woojae sung woojae.sung@yahoo.comhttp://woojsung.com  COMPONENT PACKING  VB + GALAPAGOS - hp://woojsung.com  01 STEP02 INITIAL ARRAY VARIABLEANGLE 01 TYPE A VARIABLEANGLE 02 TYPE B VARIABLEANGLE 03 TYPE C VARIABLE   ANGLE 04 TYPE D STEP01 COMPONENTS STEP03 PACKED D1D2 IDEA The idea was to create four component types, and then array / pack them together. Each component has only one variable, the angle between two lines, which are represented by solid red lines tangent to a circle in the center. Each angle varies within a predened range, for example, TYPE A’s angle is in a range between 5 to 10 degrees, TYPE B’s in between 7 to 12, etc.. In the second step we array them based on a certain order, which we can modify later. Then in the last step we want to minimize the sum of distance D1 and D2 so the array can be packed as ght as possible. Since we have four independent variables, it seems quite tough to get the opmum angle value for each component by moving number sliders. To solve the opmum value for each number sliders, we will use Galapagos, built-in algorithm solver in Grasshopper.  COMPONENT PACKING  VB + GALAPAGOS - hp://woojsung.com 02 DEFINING A COMPONENT In the rst place, we are going to dene a component using only Grasshopper’s built-in objects (then we will convert it to a custom VB scripng object). The rst thing is to draw a line (we call it as Start Line) in Rhino in length of 20 and connect it to Grasshopper Curve Object. Then we get a mid point of the line to get a perpendicular line (we call it as Start Leg) in length of 2.5. Now we can get a tangenal circle at the end of the perpendicular line. Then we rotate geometries including the Start Line and the Start Leg by a certain amount of angle to get the “End line” and “End Leg”. GH DEFINITION Below is the screenshot of the denion ( 001 component GH objects.ghx ). 01 A CENTER POINT02 A PERPENDICULAR LINE03 A CIRCLE04 ROTATE BY ANGLE05 ROTATE BY ANGLE ANGLE    R   A   D   I   U   S  =   2 .   5   L   E   N   G   T   H   =   2 .   5 L = 0.5INPUT GEOMETRY Start LineStart Leg Pt Start LegCenter Pt End LegEnd Leg Pt End LinePivot Point Circle / Pivot Cell   COMPONENT PACKING  VB + GALAPAGOS - hp://woojsung.com  03 CUSTOM VB COMPONENT As you can see from the screenshot below, the custom VB component has three inputs and seven outputs, which are prey familiar with us. If not, refer to the component process diagram in the previous page. What it does is basically same thing with the GH denion in the previous page. We supply a curve as the inial input geometry, radius of a circle as xed number (though it is from a number slider), and pivot angle as a variable. Then we get series of outputs such as End Curve, End Leg, etc.. (002 component VB.ghx)Why do we use VB component over GH Objects? If you don’t bother with the length denion like below, you don’t have to. However, you will nd it much easier to do whatever you want to do as you get to know about VB Scripng beer (Such a fantasc excuse!).
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!