글

Revit API – Issue Spheres Generator

이미지
After developing the Revit macro that reads CSV and places the issue sphere into corresponding location, I wanted to have an UI so that user can specify which CSV file they want to read. So I started to transfer the macro code into Revit API code. Using Windows form and make Revit communicate with it wasn’t easy job; it required to use a method called BackgroundWorker and external event handler. I needed to use the backgroundworker because I wanted to show the progress bar moving during the sphere creation. To do it, code has to be executed into two different thread, one generating spheres, while other updating the progress bar. Also, I had to use external event handler since Revit did not allow external application or Windows form to access to themselves and do something. I’m a not very good programmer so it wasn’t easy for me to implement all these methods. Although the tool looks a bit simple, code behind it is not like it. Issue Sphere Generator UI and generated spheres ...

The source code of Project Owl is on the Github now!

Project Owl was a small Grasshopper plugin that I developed during my master's study. However, some might have already noticed that I stopped working on it for a while. I was really passionate about this project (I am generally very interested in reality capturing), but when I lost my most up-to-date WIP source code, I lost the passion as well. The situation wasn't so great at that moment because I lost my MacBook at the same time. Yes, that's how I've lost the source code, and it was all because I didn't use the Github to back-up and share it with others. Recently, I found out that some people actually visited my site to get the information about this tool. All the traffics were coming from the Grasshopper3D website ( related post ). So I thought  why bury it deep in my computer when there are some other people who might need it? So I decided to upload the source code on the Github ( https://github.com/hodgoong/grasshopper-kinect2 ) publically. The code I...

Project Owl: Video is up!

이미지
I have spent some time recently to revisit my old works and made a video out of it for the documentation. This video shows how the Grasshopper component I developed in 2015 called Project Owl works. It generates 3D point cloud in Rhinoceros using Microsoft Kinect V2. The purpose of this development was to create a minimalistic component that only creates point cloud, and no more than that. Hope you have fun watching the video. [Article has been copied from hojoongchung.wordpress.com. The original article has been written on Mar 2, 2018, 8:28 PM]

Rhino3D Grasshopper Add-in for Google Firebase: Firehopper released!!

이미지
The Firehopper is an add-in component for the graphical programming tool Grasshopper that can interact with Google Firebase in a RESTful way. Currently it only supports simple JSON string generation and GET/PUT requests. To download the component and see the source code, please click here . [This article has been copied from hojoongchung.wordpress.com. The original article has been written on Apr 2, 2018, 11:03 PM]

Frequently used Pandas commands - Lambda function

이미지
After finishing the first assignment of Udacity Data Analyst Nanodegree , I decided to summarize and record most commonly used Pandas commands here. The first topic I would like to post is the lambda function. Lambda function in Pandas can be used via apply() command something like below: df = pd . DataFrame({ 'A' :[ 1 , 2 ], 'B' :[ 3 , 4 ]}) df . apply( lambda x : x + 1 ) Above code adds 1 to all the data resides in the DataFrame named 'df'. The result looks like below: __ | A B 0 | 2 4 1 | 3 5 Lambda function can be applied to a single column using below code: df[ 'A' ] . apply( lambda x : x + 1 ) But the result only shows the index and values without the column name like below: 0 | 2 1 | 3 To include the column name, following code can be used: df . apply({ 'A' : lambda x : x + 1 }) And the result will look like this: __ | A 0 | 2 1 | 3 This lambda function can be us...

Project Owl with Volvox

이미지
So I've tried Owl with Volvox, which has been developed as a part of DURAARK project at the Center for Information Technology and Architecture (CITA) by Henrik Leander Evers and Mateusz Zwierzycki (http://www.grasshopper3d.com/group/volvox), and found out it's much convenient to navigate scanned point clouds in the Rhino with these two combination. Basically Volvox can turn array of points into Rhino point cloud type, which is lighter compare to have a sets of points. Have a try! Update: source code of Project Owl is now publically open. Follow the link below for the code as well as the binary GHA file! https://github.com/hodgoong/grasshopper-kinect2 [Article has been copied from hojoongchung.wordpress.com. The original article has been written on Oct 6, 2015, 5:07 PM]

Project Owl: Kinect V2 Point Cloud Generator for Grasshopper

이미지
Project Owl, the Grasshopper point cloud generator for Microsoft Kinect V2 sensor has been updated. The updated features are listed below: Updated feature User can now define the origin point of the point cloud Resolution of the point cloud can be changed in real time Point cloud can be trimmed according to its distance from the origin point Multiple components can be added and run simultaneously Most importantly, component icon has been added!! In case you want to try this component, you can download it from the following link:  https://github.com/hodgoong/grasshopper-kinect2 Note that you may install 'Kinect for Windows SDK 2.0' to make this component work. Please contact hojoong.chung(at)gmail.com for any questions, or suggestions. [Article has been copied from hojoongchung.wordpress.com. The original article has been written on Sep 17, 2015, 2:20 AM]