Computational Urban Modelling and Simulation

Slides:



Advertisements
Similar presentations
Getting Started with PowerPoint
Advertisements

Whats New in Office 2010?. Major Changes in Office 2010 The Office Ribbon, which first made its appearance in Office 2007, now appears in all Office 2010.
Word 2007 – Quick Intro. The user interface has been redesigned in the Office 2007 programs: Word, Excel, PowerPoint, Access, and Outlook (in the composing.
Microsoft Word 2003 Tutorial 2 – Editing and Formatting a Document.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 7 Creating an Online Form.
Introducing Microsoft PowerPoint 2010 John Matthews (ITS)
Using a Template to Create a Resume and Sharing a Finished Document
How to prepare a PowerPoint presentation
Microsoft Excel 2010 Chapter 7
CAHE Technology Help Desk ● (505) ● ● Intermediate Word – Part III Mail Merge.
PowerPoint: Tables Computer Information Technology Section 5-11 Some text and examples used with permission from: Note: We are.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Cutting-and-Pasting Content Directly Into Blackboard.
Creating a Web Page HTML, FrontPage, Word, Composer.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
© Commonwealth of Australia 2009 Using OneNote in the Classroom.
Chapter 2 Creating a Research Paper with References and Sources Microsoft Word 2013.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
An Introduction to Designing and Executing Workflows with Taverna Katy Wolstencroft University of Manchester.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Integrating with Other Programs Lesson 12.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Microsoft Project 2010 ® Tutorial 6: Sharing Project Information with Other People & Applications.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
Project Name Date of Completion: Fill in Here Program Summary: Please type your program summary here. It should be 25 words or less. I'm just typing this.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Page 1 Non-Payroll Cost Transfer Enhancements Last update January 24, 2008 What are the some of the new enhancements of the Non-Payroll Cost Transfer?
PowerPoint Basics Tutorial 4: Interactivity & Media PowerPoint can communicate with the outside world by linking to different applications, managing different.
Welcome to PowerPoint for Beginners In-Tech Training Elementary School Teachers Day 2 January 13 and 14, 2003.
T01.01 Building Area: (SM) Fill in Here Cost per Square Meter: Fill in Here Construction Cost Fill in Here Date of Completion: Fill in Here Program Summary:
Typing and Formatting a Research Paper WORD 2013.
What is PowerPoint? By Kettina L. Robinson. Unit Questions What do I want to accomplish? What do I want to accomplish? What content do I need to cover?
 Given live by a presenter  Played without a presenter on a computer screen or on the Web  Slides provide a way to use text and graphics to introduce.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
Standard Toolbar Formatting Toolbar Paragraph Indent Markers Formatting Font Style And Font Size Setting Indents Paragraph alignment Paragraph And Line.
Creating and Editing a Web Page
Click on this button to move to the previous slide of your notebook. Click on this button to move to the next slide of your notebook. Click on this button.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
How to create an educational wiki. Laurie Roberts 2010.
Laboratory Exercise # 10 – Microsoft Word Additional Topics Office Productivity Tools 1 Laboratory Exercise # 10 Microsoft Word Additional Topics Objectives:
>>0 >>1 >> 2 >> 3 >> 4 >>
Instructional Design Center Embedding Google Documents in Blackboard.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Chapter 5 Using a Template to Create a Resume and Sharing a Finished Document Microsoft Word 2013.
Chapter 8 Using Document Collaboration, Integration, and Charting Tools Microsoft Word 2013.
Shelly Cashman: Microsoft Word 2016
Excel Tutorial 8 Developing an Excel Application
A step-by-Step Guide For labels or merges
Project Name Program Summary:
Integrating Office 2003 Applications and the World Wide Web
Introduction to presentations ms PowerPoint
PowerPoint Activity 5: To Be Determined…
PowerPoint: Tables and Charts
Tutorial 1 – Creating a Document
Adding Assignments and Learning Units to Your TSS Course
Tutorial on Microsoft Word and Powerpoint
How to Create a PBWorks Site
Project Name Program Summary:
Project Name Program Summary:
Chapter 2 Creating a Research Paper with References and Sources
SAMPLE PRESENTATION Company Name presents PowerPoint Basics
Shelly Cashman: Microsoft Word 2016
Basic parts of Word 2016 EIT, ©Author Gay Robertson, 2017.
A few tricks to take you beyond the basics of Microsoft Office
Presentation transcript:

Computational Urban Modelling and Simulation Exercise I [<- change the number correspondingly] Author [= you] | Date [= e.g. 18.10.2018] | Your Matrikel-Number [please replace the information and delete the brackets!]

Programming Exercise Starting Point | Sources | Task Description This document is a template! Please change the figures and replace text place holders like this one. On this first page: Mention where you start from. E.g. from which website you‘ve taken your starting code. Describe the aim that you‘ve defined for your exercise. Alpine Architecture Taut, B. (1917)

Programming Exercise Code documentation and description Please document your code (or Grasshopper definition) as shown on this page! Of cause you can use more than one page. Look at the last page for an instruction how to format your code so that it looks like the example on the right side here. We create a grid of rectangles again, but this time we grow the rectangles until they intersect with another one. With the first part of the code we are familiar with. The section where we grow the rectangles starts at line 20. We use some additional lists to manage the growth process. In line 26 a do loop starts, which is executed until all rectangles are grown to a size that they would intersect with another one if they grow another step. Since there is no direct copy or duplicate function for Rectangle3d, we used a GH_Rectangle. Both are very similar, but the second one is implemented in the Grasshopper namespace. The copied rectangle copyRect is now scaled by the factor 1.2 in line 35. Afterwards we test if the existing rectangles intersect with the new copyRect. Therefore we use a foreach look in line 40. The conditional check in line 42 ensures that we don’t compare the same rectangles with each other. The intersection computation is done in line 44 and returns an events variable of the type Rhino.Geometry.Intersect.CurveIntersections. We just use it to test if there is an intersection in line 45. 1 private void RunScript(int nr, Rectangle3d rect, ref object A) 2 { 3 int iterations = nr; 4 List<Extrusion> collectBreps = new List<Extrusion>(); 5 List<Rectangle3d> collectRectangles = new List<Rectangle3d>(); 6 7 // -- first loop used for x coordinates 8 for(int i = 0; i < iterations; i++) 9 { 10 // -- second loop used for y coordinates 11 for(int k = 0; k < iterations; k++) 12 { 13 // -- create the rectangles 14 Rectangle3d myRectangle = CreateRectangles(i, k); 15 collectRectangles.Add(myRectangle); 16 } 17 } 18 // -- add the input rectangle to the list to block growth in a corridor :) 19 if(!rect.Equals(null)) collectRectangles.Add(rect); 20 21 // -- grow rectangles 22 List<Rectangle3d> growCadidates = new List<Rectangle3d>(collectRectangles); // copy our list 23 List<Rectangle3d> toRemoveRects = new List<Rectangle3d>(); 24 List<Rectangle3d> grownRectangles = new List<Rectangle3d>(); 25 if(!rect.Equals(null)) growCadidates.RemoveAt(growCadidates.Count - 1); 26 27 int counter = 0; // security counter to avoid endless looing! 28 int maxIterations = 20; …

Results Results and conclusions Show the results of your program. Include how it is included into Grasshopper context – if it is connected to other components. Make screenshots or even better animated gifs of the results of your program. Show variants that result from different parameter values and describe them. Add you conclusion at the end! For example describe advantages and disadvantages for achieving the aim you defined in the beginning compared to manual drawing. There is a great and very easy to use tool for capturing your screen and turning it into small animated gifs/viedos. Its open source and excellently done! http://www.screentogif.com/ I‘m an animated gif. Run the PowerPoint presentation to see me in action!

results Tutorial how to copy your code into this document with the correct format To be able to bring your code in the nice format that we have in our Grasshopper C# editor you need to follow theses steps: Install Notepad++ on your computer: https://notepad-plus-plus.org/download/v6.9.1.html Start with a new file (File / New) and set the language to C# (Language / C / C#). Next copy the code from your Grasshopper C# component into this file. It should look like this: Since for code description it’s comfortable to add line numbers. Therefore you need to install a Plugin for Notepad++. Go to Plugins / Plugin Manager, select TextFX and press Install. This adds a new menu entry at the top. To add line numbers proceed as follows: Edit / Select All. TextFX / TextFX Edit / Indent text sticky left margin. Edit / Column Editor (Alt + C). This opens a dialog window, where you select Number to Insert and add Initial number: 1 and Increase by: 1. Format is Dec. Press OK.

Conclusions Tutorial how to copy your code into this document with the correct format Now, you have added a column and filled it with numbers: This copies the formatted code to your clipboard. Change to PowerPoint and insert it into an empty Text Box like this one in the following way: Right mouse click / Paste Options / Keep Source Formating (K): Nearly done. Just mark all and select font size 9 and font type Consolas. Finished! You need to copy this nice formatting via: Plugins / NppExport / CoyRTF to clipboard: 1 private void RunScript(int nr, Rectangle3d rect, ref object A) 2 { 3 int iterations = nr; 4 List<Extrusion> collectBreps = new List<Extrusion>(); 5 List<Rectangle3d> collectRectangles = new List<Rectangle3d>(); 6 7 // -- first loop used for x coordinates 8 for(int i = 0; i < iterations; i++) 9 { …