CFD streamlines in Grasshopper

As an experience I tried to import streamlines generated in Ansys Fluent into Grasshopper environment and I developed two (actually one and a half!) C# components in Grasshopper to do this. Basically generated tables in CFD Post are saved as a single file so you have to separate different tables and save them as individual .CVS files which is really easy, and then these C# components will do their missions!

cfd-streamline-in-grasshopper-scheme
(more…)

Connection #2

Same as Connection #1, Connection #2 has been designed to create an initial random image. But instead of straight lines and moving Dots, it uses curved lines and rotating Dots!
All Connections are created in random order like the previous version but this time they’re illustrated by cubic B├ęzier curves.

(more…)

“AD5” plugin for 3Ds Max

I developed this simple MaxScript code while I was working on “Architectural Design 5” project. It’s developed to do some repetitive and annoying (!) jobs like alignment and area calculation for you.

(more…)

Door direction tag

It’s a simple annotation mark, can be used to show the direction of a door opening and to make your documents more readable…!

Choose the right direction between upward and downward directions, also modify its appearance by changing the height and inner angle of an arrow.
For example, use smaller arrows for indoor areas and bigger ones for outdoors or show a special way through a building by using similar angles.

(more…)

AppMenu class

Menus are one of the most important methods to create better user experience and integrating with OS. And AIR platform supports both windows menu (on Windows) and application menu (on Mac OS) very well. The downside is implementing menus through the Action Script is too complex. You have to create NativeMenu instance, then attach NativeMenuItems and then do it again and and again to create simple menus. So I’ve developed “AppMenu” class which converts well-formed XML data to every type of menu that you want.
(more…)

Timer component usage

working with Timer can be fun! You can change parameters at some intervals and see the result like an animated movie. What I’ve done in this C# component is defining an integer property, named ‘num’ and then increasing its value by 1 at each computing.

(more…)

Better bordering by {less}

While I was developing my website theme, I used border a lot. So I develop following functions, using [bt-link class=”” href=”http://lesscss.org/”]{Less}[/bt-link] to add borders at different directions in one line of code.

(more…)

SType action script library

It’s been always painful for me to create instances, assign their properties and add event handlers and do it over and over again in many lines! And the final code is always messy and hard to read. So I have developed a library called SType (for super type!) which does all three steps (create, assign, handle) in one line of code. SType uses [bt-link class=”” href=”https://github.com/robertpenner/as3-signals”]AS3 Signal[/bt-link] library have been developed by Robert Penner.

(more…)

Connection #1

Think about “Connection” as a source of inspiration. Some times you sit at your desk and try to design some thing, but nothing comes to your mind. After spending hopeless hours of smoking and drinking, in a moment of glory you meet an irrelevant object and say “Yes! that’s it…”. Pieces of puzzles come together and suddenly design process becomes straightforward!

(more…)

inOutViewClass plugin for jQuery

If you scroll my blog page up and down and look at it carefully, you will see a fade in/out effect happens while scrolling. To create this effect I develop a jQuery’s plugin called “inOutViewClass”. It checks each matched elements to see whether it’s in the view or not; then add “inViewClass” or “outViewClass” based on its condition.

(more…)

newer posts,older posts