Lecture 2 3D Modeling

Total Page:16

File Type:pdf, Size:1020Kb

Lecture 2 3D Modeling Lecture 2 3D Modeling Dr. Shuang LIANG School of Software Engineering Tongji University Fall 2012 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Lecturer Dr. Shuang LIANG • Assisstant professor, SSE, Tongji – Education » B.Sc in Computer Science, Zhejiang University, 1999-2003 » PhD in Computer Science, Nanjing Univerisity, 2003-2008 » Visit in Utrecht University, 2007, 2008 – Research Fellowship » The Chinese University of Hong Kong, 2009 » The Hong Kong Polytechnic University, 2010-2011 » The City University of Hong Kong, 2012 • Contact – Office: Room 442, JiShi Building, JiaDing Campus, TongJi (Temporary) – Email: [email protected] 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 What is a 3D model? 3D object using a collection of points in 3D space, connected by various geometric entities such as triangles, lines, curved surfaces, etc. It is a collection of data (points and other information) 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 What is a 3D modeling? The process of developing a mathematical representation of any three-dimensional surface of object via specialized software. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The medical industry uses detailed models of organs 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The movie industry uses them as characters and objects for animated and real-life motion pictures 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The science sector uses them as highly detailed models of chemical compounds 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The architecture industry uses them to demonstrate proposed buildings and landscapes through Software Architectural Models 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The architecture industry uses them to demonstrate proposed buildings and landscapes through Software Architectural Models Microspot Interiors Professional is the award-winning 3D modeling software and interior design program for Mac. Design and envision interior home designs with the power and ease of Interiors. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Usage of a 3D model The engineering community uses them as designs of new devices, vehicles and structures as well as a host of other uses 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Classic models in CG The Utah Teapot The "hello world" in CG A mathematical model of an ordinary teapot, which appears solid, cylindrical and partially convex. Created in 1975 by Martin Newell, a member of the pioneering graphics program at the University of Utah 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Classic models in CG The original, physical teapot was purchased from ZCMI (a department store in Salt Lake City, Utah) in 1974. It was donated to the Boston Computer Museum in 1984 where it was on display until 1990. It now resides in the ephemera collection at the Computer History Museum in Mountain View, California where it is catalogued as "Teapot used for Computer Graphics rendering" (http://en.wikipedia.org/wiki/Utah_teapot) 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Classic models in CG The Stanford Bunny The Stanford Bunny is a computer graphics test model developed by Greg Turk and Marc Levoy in 1994 at Stanford University. The Bunny consists of data describing 69,451 triangles determined by 3D scanning a ceramic figurine of a rabbit. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Classic models in CG The Stanford Happy Buddha The Stanford buddha is a computer graphics test model created with a Cyberware 3030 MS at Stanford University. The Buddha consists of data describing 1,087,716 triangles determined by 3D scanning a real figurine. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Classic models in CG The Stanford Dragon The Stanford Dragon is a computer graphics test model created with a Cyberware 3030 MS at Stanford University. The Dragon consists of data describing 871,414 triangles determined by 3D scanning a real figurine. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Requirements for a 3D representation scheme Unambiguity : When you see a representation of a solid, you will know what is being represented without any doubt. Uniqueness : That is, there is only one way to represent a particular solid. If a representation is unique, then it is easy to determine if two solids are identical since one can just compare their representations. Accuracy : A representation is said accurate if no approximation is required. Validness : This means a representation should not create any invalid or impossible solids. More precisely, a representation will not represent an object that does not correspond to a solid. Closure : Solids will be transformed and used with other operations such as union and intersection. "Closure" means that transforming a valid solid always yields a valid solid. Compactness and Efficiency : A good representation should be compact enough for saving space and allow for efficient algorithms to determine desired physical characteristics. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Point cloud • Range image • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Point cloud Unstructured samples Advantage: simplicity Disadvantage: no information on adjacency / connectivity 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Range image Image: stores a color along each of a set of regularly-spaced rays in space Range image: stores a depth along each of a set of regularly-spaced rays in space Obtained using devices known as range scanners Vivid910, Laser scanner PMD, CamCube 3.0, TOF camera 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Range image Image: stores a color along each of a set of regularly-spaced rays in space Range image: stores a depth along each of a set of regularly-spaced rays in space Obtained using devices known as range scanners 2.5D range image 2D ear Range image with rendering 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Wireframe model • Constructive solid geometry • Voxels • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Wireframe model Wireframe model The oldest way of representing solids It represents shape of a solid object by its characteristics lines and points A wireframe model does not have face information A wireframe model consists of two tables, the vertex table and the edge table. Each entry of the vertex table records a vertex and its coordinate values, while each entry of the edge table has two components giving the two incident vertices of that edge 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Wireframe model For example, to represent a cube Edge Table defined by eight vertices and 12 Edge # Start Vertex End Vertex edges, one needs the following tables 1 1 2 2 2 3 Vertex Table 3 3 4 Vertex # x y z 4 4 1 1 1 1 1 5 5 6 2 1 -1 1 6 6 7 3 -1 -1 1 7 7 8 4 -1 1 1 8 8 5 5 1 1 -1 9 1 5 6 1 -1 -1 10 2 6 7 -1 -1 -1 11 3 7 8 -1 1 -1 12 4 8 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Wireframe model It is ambiguous which one? 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Outline • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Wireframe model • Constructive solid geometry • Voxels • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Constructive solid geometry CSG A CSG solid is constructed from a few primitives with Boolean operators Primitives: Cuboids(立方体), cylinders(圆柱体), prisms(棱柱), pyramids(角锥 体), spheres(球体), cones(圆锥), torus(圆环) Boolean operators: union, intersection, difference Example: A+B A^B A-B B-A 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Fall 2012 Constructive solid geometry A CSG Example: we want to design a bracket-like shape with a hole shown on the right-most figure below 1. start with two blocks and one cylinder 2. two blocks are
Recommended publications
  • Neural Scene Graph Rendering
    Neural Scene Graph Rendering JONATHAN GRANSKOG, NVIDIA TILL N. SCHNABEL, NVIDIA FABRICE ROUSSELLE, NVIDIA JAN NOVÁK, NVIDIA We present a neural scene graph—a modular and controllable representa- · translation Tg,1 (root node) tion of scenes with elements that are learned from data. We focus on the forward rendering problem, where the scene graph is provided by the user and references learned elements. The elements correspond to geometry and material definitions of scene objects and constitute the leaves of thegraph; we store them as high-dimensional vectors. The position and appearance of encoded scene objects can be adjusted in an artist-friendly manner via familiar trans- transformations 3 × 3 formations, e.g. translation, bending, or color hue shift, which are stored in 1 dgg x dgg 2 Tg,21: matrixmatrix Tg,2 4 the inner nodes of the graph. In order to apply a (non-linear) transforma- Tm,1 translation diuse hue tion to a learned vector, we adopt the concept of linearizing a problem by color lifting it into higher dimensions: we first encode the transformation into a shift T1 3g × 3g T1 3m × 3m T2 T3 T3 T4 high-dimensional matrix and then apply it by standard matrix-vector mul- g,3 : matrix m,2 : matrix g,3 g,2 m,1 g,2 tiplication. The transformations are encoded using neural networks. We deformation rotation scaling render the scene graph using a streaming neural renderer, which can handle graphs with a varying number of objects, and thereby facilitates scalability. Our results demonstrate a precise control over the learned object repre- g1 : m1: g2 m2 m3 g4 m4 sentations in a number of animated 2D and 3D scenes.
    [Show full text]
  • Matching 3D Models with Shape Distributions
    Matching 3D Models with Shape Distributions Robert Osada, Thomas Funkhouser, Bernard Chazelle, and David Dobkin Princeton University Abstract Cad models is a simple example), the vast majority of 3D objects available via the World Wide Web will not have them, and there Measuring the similarity between 3D shapes is a fundamental prob- are few standards regarding their use. In general, 3D models will lem, with applications in computer vision, molecular biology, com- be acquired with scanning devices, or output from geometric ma- puter graphics, and a variety of other fields. A challenging aspect nipulation tools (file format conversion programs), and thus they of this problem is to find a suitable shape signature that can be con- will have only geometric and appearance information, usually com- structed and compared quickly, while still discriminating between pletely void of structure or semantic information. Automatic shape- similar and dissimilar shapes. based matching algorithms will be useful for recognition, retrieval, In this paper, we propose and analyze a method for computing clustering, and classification of 3D models in such databases. shape signatures for arbitrary (possibly degenerate) 3D polygonal Databases of 3D models have several new and interesting charac- models. The key idea is to represent the signature of an object as a teristics that significantly affect shape-based matching algorithms. shape distribution sampled from a shape function measuring global Unlike images and range scans, 3D models do not depend on the geometric properties of an object. The primary motivation for this configuration of cameras, light sources, or surrounding objects approach is to reduce the shape matching problem to the compar- (e.g., mirrors).
    [Show full text]
  • Standard Elevation Models for Evaluating Terrain Representation
    Standard elevation models for evaluating terrain representation a, b c d e Patrick Kennelly *, Tom Patterson , Alexander Tait , Bernhard Jenny , Daniel Huffman , Sarah Bell f, Brooke Marston g a Long Island University, [email protected] b US National Parks Service (Ret.), [email protected] c National Geographic Society, [email protected] d Monash University, [email protected] e somethingaboutmaps, [email protected] f Esri, [email protected] g Brooke Marston, [email protected] * Corresponding author Keywords: Terrain representation, digital elevation model, relief shading, standard data models Standard Elevation Models We propose the use of standard elevation models to evaluate and compare the quality of various relief shading and other terrain rendering techniques. These datasets will cover various landforms, be available at no cost to the user, and be free of common data imperfections such as missing data values, resampling artifacts, and seams. Datasets will be available at multiple map scales over the same geographic area for multi-scale analysis. Utilizing a standard data model for testing and comparing methods is a common practice among many disciplines. Furthermore, the use of digital models to test rendering techniques based on qualitative visual production has been well established for decades. Following the generation of the first digital image in 1957, image processing and analysis required standard test images upon which methods could be tested and compared. During the 1960s and 1970s, many well-known standard test images emerged from this need for a comparative technique model. Today, institutions like the University of Southern California’s Signal and Image Processing Institute maintain digital image databases for the primary purpose of supporting image processing and analysis research, including geographic imaging processes.
    [Show full text]
  • Gaboury 10/01/13
    Jacob Gaboury 10/01/13 Object Standards, Standard Objects In December 1949 Martin Heidegger gave a series of four lectures in the city of Bremen, then an isolated part of the American occupation zone following the Second World War. The event marked Heidegger’s first speaking engagement following his removal from his Freiburg professorship by the denazification authorities in 1946, and his first public lecture since his foray into university administration and politics in the early 1930s. Titled Insight Into That Which Is [Einblick in das, was ist],1 the lectures mark the debut of a new direction in Heidegger’s thought and introduce a number of major themes that would be explored in his later work.2 Heidegger opened the Bremen lectures with a work simply titled “The Thing” which begins with a meditation on the collapsing of distance, enabled by modern technology. “Physical distance is dissolved by aircraft. The radio makes information instantly available that once went unknown. The formerly slow and mysterious growth of plants is laid bare through stop-action photography.”3 Yet Heidegger argues that despite all conquest of distances the nearness of things remains absent. What about nearness? How can we come to know its nature? Nearness, it seems, cannot be encountered directly. We succeed in reaching it rather by attending to what is near. Near to us are what we usually call things. But what is a thing?4 This question motivates the lecture, and indeed much of Heidegger’s later thought. In 1 Heidegger, Martin. trans. Andrew J. Mitchell. Bremen and Freiburg Lectures: Insight Into That Which Is and Basic Principals of Thinking.
    [Show full text]
  • 3D Computer Graphics Compiled By: H
    animation Charge-coupled device Charts on SO(3) chemistry chirality chromatic aberration chrominance Cinema 4D cinematography CinePaint Circle circumference ClanLib Class of the Titans clean room design Clifford algebra Clip Mapping Clipping (computer graphics) Clipping_(computer_graphics) Cocoa (API) CODE V collinear collision detection color color buffer comic book Comm. ACM Command & Conquer: Tiberian series Commutative operation Compact disc Comparison of Direct3D and OpenGL compiler Compiz complement (set theory) complex analysis complex number complex polygon Component Object Model composite pattern compositing Compression artifacts computationReverse computational Catmull-Clark fluid dynamics computational geometry subdivision Computational_geometry computed surface axial tomography Cel-shaded Computed tomography computer animation Computer Aided Design computerCg andprogramming video games Computer animation computer cluster computer display computer file computer game computer games computer generated image computer graphics Computer hardware Computer History Museum Computer keyboard Computer mouse computer program Computer programming computer science computer software computer storage Computer-aided design Computer-aided design#Capabilities computer-aided manufacturing computer-generated imagery concave cone (solid)language Cone tracing Conjugacy_class#Conjugacy_as_group_action Clipmap COLLADA consortium constraints Comparison Constructive solid geometry of continuous Direct3D function contrast ratioand conversion OpenGL between
    [Show full text]
  • Dossier [email protected] 0. Introduction (Standards) 1
    Dossier [email protected] 0. Introduction (Standards) 1. Recognition 2. Classification 3. Bias & Noise 4. Unknown Known (New Teapots) 0. Introduction (Standards) I’ve been thinking about the problems of standards and categories in computer image recognition, how their abstractions result in hegemonic form that averages and normalizes, and how drawing and modeling might be used to critique and resist these tendencies. The Utah Teapot rendered four ways by Martin Newell To first talk about standards, I’m going to return to some work I did earlier in the semester on the Utah Teapot. The Utah Teapot was created by Martin Newell, a computer graphics researcher in the Graphics Lab at the University of Utah Computer Science Department, in 1975. Newell needed an object for testing 3D scenes, and his wife suggested their Melitta teapot. It was useful to computer graphics researchers primarily because it met certain geometric criteria. “It was round, contained saddle points, had a genus greater than zero because of the hole in the handle, could project a shadow on itself, and could be displayed accurately without a surface texture” (per Wikipedia). But it also was useful because it met some contextual or cultural criteria: it was a familiar, everyday object. The Utah Teapot thus became a standard in the computer graphics world. Original drawing of the Utah Teapot by Martin Newell Outline of the Utah Teapot rotating about the y-axis, Alex Bodkin Outline of the Utah Teapot rotating about the y-axis, Alex Bodkin Outline of the Utah Teapot rotating about
    [Show full text]
  • Classic Models in Computer Graphics • 3D Model Representations • Raw Data • Solids • Surfaces
    Lecture 2 3D Modeling Dr. Shuang LIANG School of Software Engineering Tongji University Spring 2013 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 Today’s Topics • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 Today’s Topics • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 What is a 3D model? 3D object using a collection of points in 3D space, connected by various geometric entities such as triangles, lines, curved surfaces, etc. It is a collection of data (points and other information) 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 What is a 3D modeling? The process of developing a mathematical representation of any three-dimensional surface of object via specialized software. 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 Today’s Topics • What is a 3D model? • Usage of 3D models • Classic models in computer graphics • 3D model representations • Raw data • Solids • Surfaces 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 Usage of a 3D model The medical industry uses detailed models of organs 3D Modeling, Advanced Computer Graphics Shuang LIANG, SSE, Spring 2013 Usage of a 3D model The movie industry uses them as characters
    [Show full text]
  • This Is an Open Access Document Downloaded from ORCA, Cardiff University's Institutional Repository
    This is an Open Access document downloaded from ORCA, Cardiff University's institutional repository: http://orca.cf.ac.uk/123147/ This is the author’s version of a work that was submitted to / accepted for publication. Citation for final published version: Song, Ran, Liu, Yonghuai and Rosin, Paul L. 2019. Distinction of 3D objects and scenes via classification network and Markov random field. IEEE Transactions on Visualization and Computer Graphics 10.1109/TVCG.2018.2885750 file Publishers page: http://dx.doi.org/10.1109/TVCG.2018.2885750 <http://dx.doi.org/10.1109/TVCG.2018.2885750> Please note: Changes made as a result of publishing processes such as copy-editing, formatting and page numbers may not be reflected in this version. For the definitive version of this publication, please refer to the published source. You are advised to consult the publisher’s version if you wish to cite this paper. This version is being made available in accordance with publisher policies. See http://orca.cf.ac.uk/policies.html for usage policies. Copyright and moral rights for publications made available in ORCA are retained by the copyright holders. MANUSCRIPT SUBMITTED TO TVCG 1 Distinction of 3D Objects and Scenes via Classification Network and Markov Random Field Ran Song, Yonghuai Liu, Senior Member, IEEE and Paul L. Rosin Abstract—An importance measure of 3D objects inspired by human perception has a range of applications since people want computers to behave like humans in many tasks. This paper revisits a well-defined measure, distinction of 3D surface mesh, which indicates how important a region of a mesh is with respect to classification.
    [Show full text]
  • Caradoc of the North Wind Free
    FREE CARADOC OF THE NORTH WIND PDF Allan Frewin Jones | 368 pages | 05 Apr 2012 | Hachette Children's Group | 9780340999417 | English | London, United Kingdom CARADOC OF THE NORTH WIND PDF As the war. Disaster strikes, and a valued friend suffers Caradoc of the North Wind devastating injury. Branwen sets off on a heroic journey towards destiny in an epic adventure of lovewar and revenge. Join Charlotte and Mia in this brilliant adventure full of princess sparkle and Christmas excitement! Chi ama i libri sceglie Kobo e inMondadori. The description is beautiful, but at times a bit too much, and sometimes at its worst the writing is hard to comprehend completely clearly. I find myself hoping vehemently for another book. It definitely allows the I read this in Caradoc of the North Wind sitting and could not put it down. Fair Wind to Widdershins. This author has published under several versions of his name, including Allan Jones, Frewin Jones, and A. Write a product review. Now he has stolen the feathers Caradoc of the North Wind Doodle, the weather-vane cockerel in charge of the weather. Jun 29, Katie rated it really liked it. Is the other warrior child, Arthur?? More than I thought I would, even. I really cafadoc want to know more, and off author is one that can really take you places. Join us by creating an account and start getting the best experience from our website! Jules Ember was raised hearing legends of wjnd ancient magic of the wicked Alchemist and the good Sorceress. Delivery and Returns see our delivery rates and policies thinking of returning an item? Mar 24, Valentina rated it really liked it.
    [Show full text]
  • Estimating Reflectance Properties and Reilluminating Scenes Using
    Estimating Reflectance Properties and Reilluminating Scenes Using Physically Based Rendering and Deep Neural Networks Farhan Rahman Wasee A Thesis in The Department of Computer Science and Software Engineering Presented in Partial Fulfillment of the Requirements for the Degree of Master of Computer Science (Computer Science) at Concordia University Montréal, Québec, Canada October 2020 © Farhan Rahman Wasee, 2020 CONCORDIA UNIVERSITY School of Graduate Studies This is to certify that the thesis prepared By: Farhan Rahman Wasee Entitled: Estimating Reflectance Properties and Reilluminating Scenes Using Physically Based Rendering and Deep Neural Networks and submitted in partial fulfillment of the requirements for the degree of Master of Computer Science (Computer Science) complies with the regulations of this University and meets the accepted standards with respect to originality and quality. Signed by the Final Examining Committee: Chair Dr. Jinqiu Yang Examiner Dr. Ching Suen Examiner Dr. Jinqiu Yang Supervisor Dr. Charalambos Poullis Approved by Dr. Lata Narayanan, Chair Department of Computer Science and Software Engineering October 2020 Dr. Mourad Debbabi, Interim Dean Faculty of Engineering and Computer Science Abstract Estimating Reflectance Properties and Reilluminating Scenes Using Physically Based Rendering and Deep Neural Networks Farhan Rahman Wasee Estimating material properties and modeling the appearance of an object under varying illumi- nation conditions is a complex process. In this thesis, we address the problem by proposing a novel framework to re-illuminate scenes by recovering the reflectance properties. Uniquely, following a divide-and-conquer approach, we recast the problem into its two constituent sub-problems. In the first sub-problem, we have developed a synthetic dataset of spheres with realistic mate- rials.
    [Show full text]
  • Hello, World! Free
    FREE HELLO, WORLD! PDF Disney Book Group | 14 pages | 16 Aug 2011 | Disney Press | 9781423141402 | English | New York, NY, United States "Hello, World!" program - Wikipedia Learn Data Science by completing interactive coding challenges and watching videos by expert instructors. Start Now! Python Hello a very simple language, and has a very straightforward syntax. It encourages programmers to program without boilerplate prepared code. The simplest directive in Python is the "print" directive - it simply prints out a line and also includes a newline, unlike in C. There Hello two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically correct and supports newer features. For example, World! difference between Python 2 and 3 is the print statement. In Hello 2, World! "print" statement is not a function, and therefore it is invoked without parentheses. However, in Python World!, it World! a function, and must be invoked with parentheses. Python uses indentation for World!, instead of curly braces. Both tabs and spaces are supported, but the standard indentation requires standard Python code to use four spaces. For example:. This site is generously supported by DataCamp. Join over a million other learners and get started learning Python for data science today! Hello, World! To print a string in Python 3, just write: print "This line will be printed. Hello Tutorial. Read our Terms of Use and Privacy Policy. Hello, World! - Learn Python - Free Interactive Python Tutorial A "Hello, World! Such a Hello is very simple in most programming World!and World! often used to illustrate the basic syntax of a programming language.
    [Show full text]
  • Brake-Based Shape Displays and Automatic Content Authoring
    TOWARDS LOW-COST SPATIAL HAPTICS: BRAKE-BASED SHAPE DISPLAYS AND AUTOMATIC CONTENT AUTHORING A DISSERTATION SUBMITTED TO THE DEPARTMENT OF ELECTRICAL ENGINEERING AND THE COMMITTEE ON GRADUATE STUDIES OF STANFORD UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY Kai Zhang August 2020 © 2020 by Kai Zhang. All Rights Reserved. Re-distributed by Stanford University under license with the author. This work is licensed under a Creative Commons Attribution- Noncommercial 3.0 United States License. http://creativecommons.org/licenses/by-nc/3.0/us/ This dissertation is online at: http://purl.stanford.edu/kh451yb0256 ii I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Sean Follmer, Primary Adviser I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Juan Rivas-Davila I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Gordon Wetzstein Approved for the Stanford University Committee on Graduate Studies. Stacey F. Bent, Vice Provost for Graduate Education This signature page was generated electronically upon submission of this dissertation in electronic format. An original signed hard copy of the signature page is on file in University Archives. iii Abstract Haptic technology can significantly enhance the richness and realism of user interaction by providing the experience of physical touch.
    [Show full text]