[SOLVED] ComputerGraphics Assignment 9-Primitives

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon A09-Primitives-4mp3oe.zip (40.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

 

The goal of the application contained in index.html, is to create three simple models: the outline of letter F, a filled S-shaped pattern, and a filled pentagon. Models are created in file models.js. In particular, it uses the procedure addMesh(), that receives as parameters an array of three elements vectors with the coordinates of the vertices, a letter (between quotes) that denotes the type of the mesh, and an RGB color (a three-elements array, with the value of the red, green and blue components of the color, each one in the 0-1 range). The letters denoting the mesh type are:

β€œT” for triangles lists β€œS” for triangles strips β€œF” for triangles fans β€œL” for lines lists

β€œP” for lines strips β€œO” for line loops

In the application, the mouse turns the view, and the slider at the bottom of the page can be used to change the objects being displayed.

  • A09-Primitives-4mp3oe.zip