CADjs Transformations

Slides:



Advertisements
Similar presentations
Transforming graphs of functions
Advertisements

Flash Animation Using Linear Transformations By Kevin Hunter Kevin Hunter Marcus Yu Marcus Yu.
Functions Test!. Quick recap Each question will appear for 20s and you must try to answer as many as you can… A translation of 5 units in the x direction.
EXAMPLE 4 Write an absolute value function Holograms In holography, light from a laser beam is split into two beams, a reference beam and an object beam.
Types of transformations. Reflection across the x axis.
Warm-Up Exercises 1. translation (x, y) → (x – 6, y – 2) 2. reflection in the y -axis Find the image of (2, 3) under each transformation. ANSWER (–4, 1)
Transformations Teacher Version Level
SE 313 – Computer Graphics Lecture 6: Transformations Lecturer: Gazihan Alankuş Please look at the last three slides for assignments (marked with TODO)
SOLUTION EXAMPLE 1 Find the image of a glide reflection The vertices of ABC are A(3, 2), B(6, 3), and C(7, 1). Find the image of ABC after the glide reflection.
Identifying Combined Transformations 5-8 Warm Up Warm Up Lesson Presentation Lesson Presentation Problem of the Day Problem of the Day Lesson Quizzes Lesson.
CADjs Primitives and Booleans. 3D Solids There are 6 primitives that CADjs supports That is all you will need to create complex shapes.
Math 8 Day 11 Learning Target: Students can identify the image of a figure after a combined transformation is performed, and determine whether the final.
Types of transformations. Reflection across the x axis.
9.5 Warm Up Warm Up Lesson Quiz Lesson Quiz Lesson Presentation Lesson Presentation Apply Compositions of Transformations.
CADjs Cloning and for loops. wheel, hub and spoke assembly g1 = cube(5); g2=cylinder(1,20); g3=cylinder(1,20); g4=cylinder(20,2); g5=cylinder(10,2); g2.rotateX(90);
Transformations for GCSE Maths Enlargement Translation Reflection Rotation.
Unit 5 Transformations in the Coordinate Plane. Translations.
UNIT 7: TRANSFORMATIONS Final Exam Review. TOPICS TO INCLUDE  Types of Transformations  Translations  Reflections  Rotations  Dilations  Composition.
Transforming functions
Unit 3 Selecting the physics configuration in the simulation
Learning Objectives To draw transformations of reflections, rotations, translations and combinations of these using graph paper, transparencies, and.
Section 3.5 – Transformation of Functions
Unit 5 Transformations Review
Graphing Lines Using Intercepts
Glide Reflections and Compositions
Lecture 7 Geometric Transformations (Continued)
Transformations.
A Blender 3D Modeling Project
From CADjs to 3-D Printing
Transformations and Tesselations
Warm-up ~ Welcome!! 2) Write the rule for the following transformation
Unit 1 Transformations in the Coordinate Plane
Graphing & Describing “Reflections”
N5 CAD EXAM Revision Name: ____________ Class: ____________
“Measurement & Geometry” Math-7 SOL Review Packet
Transformations for GCSE Maths
Unit 1: Transformations
Warm up Rotate P(-4, -4) 180 Rotate Q(-1, -3) 90 CCW
Warm up Rotate P(-4, -4) 180 Rotate Q(-1, -3) 90 CCW
Math 8 Day 11 Learning Target: Students can identify the image of a figure after a combined transformation is performed, and determine whether the final.
Graphing and Describing “Rotations”
Chapter 6 transformations
Unit 6: Transformations
The Modelview Matrix Lecture 8 Mon, Sep 10, 2007.
Identify Which Combination of Transformations took place
Transformations for GCSE Maths
Transformations y - x x x x.
Bellwork “quick check” pg. 448 (1-11)
TRANSFORMATIONS Translations Reflections Rotations
Rotation: all points in the original figure rotate, or turn, an identical number of degrees around a fixed point.
Factoring Warm-Up  .
Composition of Transformations
Transformations.
Maintenance Sheet 25 Due Friday Comprehensive Test- Friday
Math 8 Day 11 Learning Target: Students can identify the image of a figure after a combined transformation is performed, and determine whether the final.
Transformations for GCSE Maths
Unit 1 Transformations in the Coordinate Plane
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Unit 6 Day 1.
Transformations.
11.4 Translations and Reflections
Transformations Review
Maps one figure onto another figure in a plane.
Transformations.
Transformations.
Unit 1 Transformations in the Coordinate Plane
Warm Up 6.3 Complete the chart for the given counterclockwise rotations about the origin. 90o 180o 270o R(3, -3) S(1, 4) Use.
Math 8 Day 11 Learning Target: Students can identify the image of a figure after a combined transformation is performed, and determine whether the final.
Page 37 Unit 1, Lesson 5: Coordinate Moves
TRANSLATE Horizontally -5
Presentation transcript:

CADjs Transformations In this lecture, we will learn different types of transformations (translations, rotations, mirror and scaling)

Axis The most important concept you need to understand here is that of the coordinate axis. Your translations and rotations will be with respect to one or the other axis.

Question In which two directions did the cube move? Consider this simple example. We can create a cube at the origin (top left) g = cube(1); g.display(); Suppose we want to move it to a different location (as in bottom left). How do we do that?

Translate Move a Cube in 3D space g = cube(1); g.translate(-1,0,1); g.display(); We use the translate command. We are moving -1 unit in x and +1 unit in z, and nothing in y. You can also have translateX(-1) if you only need a translate in X, and so on

Rotate Rotates Cube in 3D space g = cube(1); g.rotateZ(45); g.display(); Next, consider rotation. Here we take a cube and rotate about z axis by 45 degrees.

Rotation About X and Y Axis g = cube(1); g.rotateX(45); g.display(); Now trying rotating about X and Y axis. Are you seeing what you expect? Try playing around with these numbers g = cube(1); g.rotateY(45); g.display();

Combining Transformations g = cube(1); g.translateX(2); g.rotateZ(45); g.display(); You can now combine translations and rotations

Order of Transformations Matters g = cube(1); g.translateX(2); g.rotateZ(45); g.display(); First Translate Then Rotate You can now combine translations and rotations g = cube(1); g.rotateZ(45); g.translateX(2); g.display(); First Rotate Then Translate

Question Now let us see how we can make this dog bone. What primitives do we need? Answer: 1 cylinder and 2 spheres.

Answer g1=sphere(1); g2=sphere(1); g3=cylinder(.5,6); g1.translate(0,3,0); g2.translate(0,-3,0); g3=g3.union(g1); g3=g3.union(g2); g3.display(); Walk through each line of the code, explaining what it does

More Questions (1) (2) (3) (4) Try the following exercises. First find what primitives you need Next, move these to the right location Finally do the booleans Volunteers can go around the room helping the students (3) (4)

Answers 4) g1 = cylinder(1,3); g2=cylinder(.8,3); g2.translate(0,1,0); 1) g1 = cylinder(1,5); g2=cylinder(.9,5); g2.rotateZ(90); g=g1.union(g2); g.display(); 3) g1 = cylinder(1,3); g2=cylinder(.8,3); g2.translate(0,0,1); g=g1.difference(g2); 2) g1 = cylinder(1,5); g2=cylinder(.9,5); g2.rotateZ(90); g=g1.difference(g2); g.display(); 4) g1 = cylinder(1,3); g2=cylinder(.8,3); g2.translate(0,1,0); Solutions to the previous problems

Mini Project How many primitives do you need? Answer: 4

Code g= cube(60,20,38).translateZ(21); g2 = cylinder(30,20,100); g3 = cylinder(15,50,39); g = g.difference(g1).union(g2).difference(g3); g.display(); Walk through the code, explaining each step.