8.2 Transformace, množinové operace



Similar documents
BLENDER INTRO BLENDER TIPS

aneb Perfektní minulost.

Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green

GRADO AJ51. Posuvný systém Sliding system

Forest Stewardship Council

Prezentaci ukončíte stiskem klávesy ESC. GNU Emacs. Pavel Janík, CZLUG

Using HDR Panoramas. Dr Ryan Southall - School of Architecture & Design, University of Brighton.

Using Image J to Measure the Brightness of Stars (Written by Do H. Kim)

aneb Perfekt perfektně.

>

Safetex. Safety with style. Selling your products. Safetex Ltd. It s designed for /It comes with /It offers

PANTONE ColorVANTAGE Process Simulations of PANTONE solid colors Page: 1 of 14


ICC Profiles Guide. English Version 1.0

Pantone Matching System Color Chart PMS Colors Used For Printing

My Materials. In this tutorial, we ll examine the material settings for some simple common materials used in modeling.

B A S I C S C I E N C E S

How To Color Print

Upozorňujeme,že můžete formáty pro čtečky převádět ON-LINE na internetu do formátu PDF apod.

Autodesk Fusion 360 Badge Guide: Design an F1 in Schools Trophy

Interpolation of RGB components in Bayer CFA images

MODENA PARMA. Sprchová madla a úchyty Knobs and showers handles. Zámky ke sprchovým koutům Latches for showers

Rychlý průvodce instalací Rýchly sprievodca inštaláciou

Name Class Date. spectrum. White is not a color, but is a combination of all colors. Black is not a color; it is the absence of all light.

Andreas Filler Institut für Mathematik Humboldt-Universität zu Berlin Berlin Germany

Getting Started: Creating the Backdrop

Høringseksemplar. renovering

Relational Algebra. Module 3, Lecture 1. Database Management Systems, R. Ramakrishnan 1

Materials in NX Render

TETRIX Add-On Extensions. Encoder Programming Guide (ROBOTC )

Filters for Black & White Photography

Sborník vědeckých prací Vysoké školy báňské - Technické univerzity Ostrava číslo 2, rok 2007, ročník LIII, řada strojní článek č.

Lithichrome Stone Paint- LT Blue Gallon Lithichrome Stone Paint- Blue 2 oz Lithichrome Stone Paint- Blue 6 oz

The Future of Mathematics Education Pod Tezniami, Ciechocinek, Poland June 26 th July 1 st, 2004

Subjects: will be creating Twisters!

PANTONE Chart Builder File: MPC2000_2500_3000 Page: 1 of 14

Implementing ISO12646 standards for soft proofing in a standardized printing workflow

SketchUp Instructions

Creating Repeating Patterns with Color Symmetry

Maya 2014 Still Life Part 1 Texturing & Lighting

Quick Tutorial. Overview. The NVIDIA Software Improvement Program. Creating an Effect

: Architectural Lighting : Interiérové svietidlá

LED...A Q Series Sealed High-Intensity

Best Practices. 3D Printing for. Contributors: Olimpio DeMarco and Dan Topjian, Z Corporation, Burlington, MA

Tutorial for Basic Editing in Adobe Premiere Pro CS5

BIRD Internet Routing Daemon

1. Three-Color Light. Introduction to Three-Color Light. Chapter 1. Adding Color Pigments. Difference Between Pigments and Light. Adding Color Light

Exploring Geometric Transformations in a Dynamic Environment Cheryll E. Crowe, Ph.D. Eastern Kentucky University

*Pricing may differ from the catalog price listed. Please phone today for YOUR custom printed pricing! (317) Our Own Bag Program

3D Scanner using Line Laser. 1. Introduction. 2. Theory

Set operations and Venn Diagrams. COPYRIGHT 2006 by LAVON B. PAGE

3D Printing Design Guidelines Sierra College CACT

Color quality guide. Quality menu. Color quality guide. Page 1 of 6

Solutions to Practice Problems

Essay 5 Tutorial for a Three-Dimensional Heat Conduction Problem Using ANSYS Workbench

CATIA: Navigating the CATIA V5 environment. D. CHABLAT / S. CARO Damien.Chablat@irccyn.ec-nantes.fr

Compositing a 3D character over video footage in Maya Jean-Marc Gauthier, Spring 2008

Section 9.5: Equations of Lines and Planes

Image Optimization GUIDE

Calibrating your monitor

A Graphic Science Education as a Training of Communication

Perception of Light and Color

Introduction to Light, Color, and Shadows

Matematika tekutin v pohybu

WEB log. Device connection plans

Job costing with TimePilot time and attendance systems

Epson Color-Managed Workflow: Getting the Color You Expect in Your Prints

Sending images from a camera to an iphone. PowerShot G1X MarkII, PowerShot SX600 HS, PowerShot N100, PowerShot SX700 HS, PowerShot ELPH 340 HS

SOLIDWORKS: SKETCH RELATIONS

Geometry Software for Three-Dimensional Visualization and Modeling


PANTONE Solid to Process

CLOUD API DOCUMENTATION v2.0. Get list of cloud servers in account

Activities/ Resources for Unit V: Proportions, Ratios, Probability, Mean and Median

Basic 3D reconstruction in Imaris 7.6.1

General Instructions and Tips for New HR/Payroll Forms

A magician showed a magic trick where he picked one card from a standard deck. Determine what the probability is that the card will be a queen card?

Munsell Soil Color. Munsell Gradient No. Code

LED-Strips S.1. Dimension L/B/H, mm x10x IP33 0,17 Piece 33, x10x IP33 0,19 Piece 53,77

PROXIMITY CARD READERS C-10, C-20, C60, C70

Procedural Animation. An introduction

Light Waves and Matter

DATA VALIDATION and CONDITIONAL FORMATTING

Tabla de conversión Pantone a NCS (Natural Color System)

Self-Positioning Handheld 3D Scanner

RGB Workflow Key Communication Points. Journals today are published in two primary forms: the traditional printed journal and the

EC-Council Logo Usage

INTRODUCTION TO RENDERING TECHNIQUES

Introduction to ANSYS ICEM CFD

Thera Band Academy Speaker Database. Users Manual 2/2008

Which month has larger and smaller day time?

Nordic quality steel with the widest color range

Edita Pelantová. Katedra matematiky FJFI. Edita Pelantová (Katedra matematiky FJFI) Redundantní číselné soustavy září / 12

Mocap class 8 - Creating an interactive 3D garden JMG Spring 2011

3D PRINTING BOOKLET FOR BEGINNERS

THE BASICS OF COLOUR THEORY

Automotive Applications of 3D Laser Scanning Introduction

Remote Director. Apple imac G5. Monitor Proofing System using the I. MANUFACTURER INTRODUCTION. SWOP Application Data Sheet

KN-CLAIM. Kansas Nutrition - CLaims And Information Management. Quick Reference for Fresh Fruit & Vegetable Program (FFVP) Reimbursement Claims

Transcription:

8.2. TRANSFORMACE, MNOŽINOVÉ OPERACE 8.2 Transformace, množinové operace 8.2.1 Transformace Posunutí, otočení a změna rozměrů umožňují efektivní práci s objekty. Je jednodušší umístit objekt v požadovaných rozměrech do počátku soustavy souřadné a až poté jej pomocí transformací umístit do požadované polohy. Změna rozměrů se obvykle používá pro celé skupiny objektů nebo i textury. Na jeden objekt můžeme použít kombinaci několika transformací (i stejného druhu), záleží ale na jejich pořadí! Posunutím a následným otočením umístíme objekt jinam než otočením a posunutím. Rotate Otočení objektu kolem jednotlivých souřadných os ve stupních. teleso{souradnice rotate< x, y, z > Scale Změna rozměrů objektu ve směru jednotlivých souřadných os. teleso{souradnice scale< x, y, z > Translate Posunutí objektu ve směru vektoru < x, y, z >. teleso{souradnice translate< x, y, z > Př. Kvádr - rozdíl v pořadí transformací. #include colors.inc #include osy.inc // nacteni souradnych os z prvniho cviceni camera{ location < 5, 6, 15 > look at < 5, 6, 0 > light source{ < 0, 20, 0 > color rgb.7 light source{ < 0, 0, 50 > color rgb 1 shadowless background{ color White box{< 0, 0, 1 >, < 3, 3, 6 > translate< 10, 0, 0 > rotate< 0, 0, 45 > pigment{color Red box{< 0, 0, 1 >, < 3, 3, 6 > rotate< 0, 0, 45 > translate< 10, 0, 0 > pigment{color Green Dlouhá, Červenka 2013 61 VŠB-TU Ostrava

KAPITOLA 8. 3D GEOMETRIE V POVRAY 8.2.2 Množinové operace CSG Odpovídají množinovým operacím definovaným v matematice sjednocení, průnik, rozdíl. Umožňují ze základních jednoduchých těles vytvářet složité objekty, které je možné dále modifikovat jako jeden celek (barva, povrch, textury, optické vlastnosti, posunutí, otočení, změna měřítka). Poznámka 8.2.1 nastavení prostředí pro následující příklady: camera{location < 0, 1, 4 > look at <.3, 1.3, 0 > light source{< 0, 3, 5 > color rgb 1 shadowless background{color rgb 1 Union Definice 8.2.1 Prvek patří do sjednocení dvou nebo více množin právě tehdy, když patří do alespoň jedné ze sjednocovaných množin. Poznámka 8.2.2 (PovRAY) Z jednotlivých těles vytvoříme jeden celek, se kterým dále pracujeme. union{teleso1 teleso2 teleso3 [OBJECT MODIF IERS...] Př. sjednocení kvádru s vrcholy V 1 (0, 0, 0), V 2 (1, 2, 1) a koule o středu S(1, 2, 1) a poloměru r = 1, výsledek je pootočen, rozměrově deformován a posunut union{ box{< 0, 0, 0 >, < 1, 2, 1 > sphere{< 1, 2, 1 >, 1 pigment{color rgb< 1, 0, 0 > rotate< 0, 60, 0 > scale< 1.5,.9, 1 > translate< 1.5, 0, 0 > Intersection Definice 8.2.2 Prvek patří do průniku dvou nebo více množin právě tehdy, když patří do každé z množin průniku. Poznámka 8.2.3 (PovRAY) Zobrazí společnou (překrývající se) část všech daných těles. intersection{teleso1 teleso2 teleso3 [OBJECT MODIF IERS...] Dlouhá, Červenka 2013 62 VŠB-TU Ostrava

8.2. TRANSFORMACE, MNOŽINOVÉ OPERACE Př. průnik kvádru s vrcholy V 1 (0, 0, 0), V 2 (1, 2, 1) a koule o středu S(1, 2, 1) a poloměru r = 1, výsledek je pootočen, rozměrově deformován a posunut intersection{ box{< 0, 0, 0 >, < 1, 2, 1 > sphere{< 1, 2, 1 >, 1 pigment{color rgb< 1, 0, 0 > rotate< 0, 60, 0 > scale< 1.5,.9, 1 > translate< 1.5, 0, 0 > Difference Definice 8.2.3 Prvek patří do rozdílu dvou nebo více množin právě tehdy, když patří jenom do první množiny ale ne do dalších množin rozdílu. Poznámka 8.2.4 (PovRAY) Od prvního tělesa odečítá (odebírá) všechny další ze seznamu. teleso1 teleso2 teleso3 [OBJECT MODIF IERS...] Př. rozdíl kvádru s vrcholy V 1 (0, 0, 0), V 2 (1, 2, 1) a koule o středu S(1, 2, 1) a poloměru r = 1, výsledek je pootočen, rozměrově deformován a posunut box{< 0, 0, 0 >, < 1, 2, 1 > sphere{< 1, 2, 1 >, 1 pigment{color rgb< 1, 0, 0 > rotate< 0, 60, 0 > scale< 1.5,.9, 1 > translate< 1.5, 0, 0 > Dlouhá, Červenka 2013 63 VŠB-TU Ostrava

KAPITOLA 8. 3D GEOMETRIE V POVRAY 8.2.3 Řešené příklady Domeček #include colors.inc //barvy #include glass.inc // sklo #include woods.inc // drevo #include skies.inc // obloha sky sphere{s Cloud2 // obloha jako vnitrni povrch kulove plochy camera{location < 13, 5, 12 > look at < 0, 5, 0 > light source{< 10, 10, 10 > color rgb 0.7 //hlavni svetelny zdroj light source{< 10, 5, 10 > color rgb 0.2 //pomocny svetelny zdroj background{color rgb< 0, 0, 1 > plane{< 0, 1, 0 >, 0 pigment{ color rgb< 0, 1, 0 > /* strecha */ //rozdil tri kvadru box{< 5.5, 0, 5.5 >, < 5.5, 6, 5.5 > //prvni kvadr - lezi na rovine xz pigment{brick White Red scale<.1,.1,.1 > box{< 6, 0, 6 >, < 6, 6, 6 > //druhy kvadr - kvuli odectu zvetseny rozmery, otocen kolem osy z a posunut rotate< 0, 0, 45 > translate< 2.7, 2.7, 0 > box{< 6, 0, 6 >, < 6, 6, 6 > //treti kvadr - kvuli odectu zvetseny rozmery, otocen kolem osy z a posunut rotate< 0, 0, 45 > translate< 2.7, 2.7, 0 > pigment{ color rgb< 1, 0, 0 > translate < 0, 5, 0 > //cela strecha posunuta do pozadovane vysky Dlouhá, Červenka 2013 64 VŠB-TU Ostrava

8.2. TRANSFORMACE, MNOŽINOVÉ OPERACE /* zdi */ box{ < 5, 0, 5 >, < 5, 5, 5 > box{ < 4.5, 0.1, 4.5 >, < 4.5, 5, 4.5 > box{ < 2, 0.1, 6 >, < 4, 4, 4 > box{ < 4, 2, 6 >, < 0, 4, 6 > box{ < 6, 2, 3 >, < 6, 4, 3 > pigment{ brick rgb< 1, 1, 1 > rgb< 1, 0, 0 > scale<.1,.1,.15 > /* okna */ box{ < 4.9, 0, 4.9 >, < 4.9, 5, 4.9 > box{ < 4.6, 0.1, 4.6 >, < 4.6, 5, 4.6 > pigment{col Glass Old /* dvere */ box{< 2, 0.1, 4.95 >, < 4, 4, 4.55 > cylinder{< 2.5, 3.5, 5 >, < 2.5, 3.5, 4.5 >.2 cylinder{< 3, 3, 5 >, < 3, 3, 4.5 >.2 cylinder{< 3.5, 2.5, 5 >, < 3.5, 2.5, 4.5 >.2 texture{t Wood8 /* komin */ box{ < 4, 5, 2 >, < 3, 10, 1 > pigment{ brick rgb< 1, 1, 1 > rgb< 1, 0, 0 > scale<.1,.1,.1 > Dlouhá, Červenka 2013 65 VŠB-TU Ostrava

KAPITOLA 8. 3D GEOMETRIE V POVRAY Hrnky #include colors.inc #include skies.inc camera{location< 7, 5, 11 > look at < 2, 3, 4 > light source{ < 6, 10, 10 > color rgb 1 shadowless plane{ < 0, 1, 0 >, 0 pigment{checker Black White sky sphere{s Cloud2 /* hrnek */ #declare hrnek = union{ //telo cylinder{< 0, 0.1, 0 >,< 0, 5, 0 >,2 cylinder{< 0, 0.3, 0 >,< 0, 6, 0 >,1.8 torus{1.9, 0.1 translate< 0, 0.1, 0 > torus{1.9, 0.1 translate< 0, 5, 0 > //ucho torus{2,.2 rotate< 90, 0, 0 > translate< 3, 2.5, 0 > cylinder{< 0, 0.1, 0 >,< 0, 5, 0 >,2 scale<.5, 0.8, 0 > translate< 1, 0.5, 0 > Dlouhá, Červenka 2013 66 VŠB-TU Ostrava

8.2. TRANSFORMACE, MNOŽINOVÉ OPERACE /* podsalek */ #declare podsalek = union{ cone{< 0, 0.1, 0 >,2.3,< 0, 1, 0 >,4 cone{< 0, 0.3, 0 >,2.1,< 0, 1.1, 0 >,4.1 torus{3.9, 0.1 scale< 0, 0.5, 0 > translate< 0, 1, 0 > cone{< 0, 0.3, 0 >,2.1,< 0, 1.1, 0 >,4.1 torus{2.2, 0.1 scale< 0, 0.5, 0 > translate< 0, 0.1, 0 > /* kava */ #declare kava = cylinder{< 0, 0, 0 >,< 0, 1, 0 >,1.8 pigment{color Black /* 1. hrnek */ object{hrnek pigment{color Yellow translate< 1, 0.3, 1 > object{podsalek pigment{color Yellow translate< 1, 0, 1 > /* 2. hrnek */ object{hrnek pigment{color YellowGreen rotate< 0, 220, 0 > scale<.5,.5,.5 > translate < 6, 0, 0 > object{podsalek pigment{color YellowGreen scale<.5,.5,.5 > translate < 6, 0, 0 > object{kava scale<.5,.5,.5 > translate < 6, 1.8, 0 > /* 3. hrnek */ object{hrnek pigment{color Black rotate< 0, 220, 0 > scale<.7,.7,.7 > translate < 2, 0, 15 > finish {reflection.2 ambient 0.2 diffuse 0.9 object{podsalek pigment{color Black scale<.7,.7,.7 > translate < 2, 0, 15 > finish {reflection.2 ambient 0.2 diffuse 0.9 object{kava scale<.7,.7,.7 > translate < 2, 2.5, 15 > Dlouhá, Červenka 2013 67 VŠB-TU Ostrava

KAPITOLA 8. 3D GEOMETRIE V POVRAY 8.2.4 Úlohy k procvičení 1. Koule 2. Dáma tři proděravěné vzájemně zanořené koule základní postavení figur 3. Zásobník 4. Klíč zásobník ve tvaru zploštělého disku s přívodními potrubími ve směru souřadných os klíč pro šestihranné šrouby s odvrtanou rukojetí 5. Tessar objektiv typu Tessar v řezu Dlouhá, Červenka 2013 68 VŠB-TU Ostrava