Simple Opengl/GLUT project

Cancelled Posted 6 years ago Paid on delivery
Cancelled Paid on delivery

Hello i have a small task for a presentation. it isnt much of a hurry:

You will construct a small peculiar design program that fills the inside of the objects with various interior / exterior design rules. The program will create closed polygonal lines (auto- and non-autochthonous) which will then become 3D objects. When the program starts, a 600-column window and 500 pixel lines will open, which will not be able to change the dimensions

. (i) Build the program that opens the main window and a menu that initially will have an ACTION sub-menu with Exit (end key). When you press this option, the program terminates. The background of the window in the work area is white.

 (ii) In the same ACTION submenu, add the closed polygonal line option ("Polygon" key) which when clicked by the left mouse button clicks the tops of the polygonal line it wants to make. At the same time the peaks are joined in the order created by the user (ie the first with the second, the second with the third coke). When the user wants to complete a closed polygonal line, press the right mouse button and then the last top will automatically merge with the first.

(iii) Under the ACTION option there are two LINE_COLOR FILL_COLOR sub-menus with 16 options. From these options, the user can choose one of 16 colors for (i) the border (LINE_COLOR) and (ii) the fill (FILL_COLOR) before making a polygonal line. This menu also contains the colors White, Black and 14 other colors. Fill and line color for a polygon can not be changed. The default color (if color is not selected) for one line is black and the interior is white.

(iv) In the ACTION submenu, add the top move button ("Move" button). When this button is pressed the user by pressing the left mouse button on a top and holding it down can move a vertex.

Add another sub-menu from which the user can choose one of the 5 rules for defining the interior of an object: rule 0: join all simple polygons created, rule 1: a point is (2): a point is internal when the winding number w ≠ 0, rule 3: a point is internal when ⌈ w is the internal one when the number of edges of the contour with a vertex with the beginning is unnecessary (equivalent to unnecessary winding number) / 2 ⌉ is redundant. The names in the submenu options are Rule 0, Rule 1, Rule 2, and Rule 3. When a rule is selected, the internal areas are filled with the color selected immediately before the corresponding polygonal line is created. The winding number w is calculated by assigning once to the contour of the object (for a simple object inversely in the clockwise direction). Initially w is 0, then we get a vertex from the point and when we see the contour from right to left we add 1 else we remove 1 (this is equivalent to getting for an inner point p a radius from p to perimeter and count how many times it rotates around p when moving on the perimeter, for each rotation according to the clock indicators remove one and for each rotation opposite the indices of Graphics and Interaction Systems Academic Year 2 017-2018 clock is added 1). The winding number is shown in the figure below for 3 closed polygonal lines. Note: Find all internal polygons and winding without scanning.

The user can choose from the ACTION sub menu the EXTRUDE function which calls for an extrusion length and then extrudes each polygon to 3D along the z (when for example a square is extruded to 3D will result a rectangular parallelepiped that is open from above and below). The portions of the polygon edges located within an inner region or within an outer region are not extruded to 3D and disappear. The user will be able to see the resulting solids by moving the camera around the objects. The outside of the objects must be the LINE_COLOR that each polygon has initially.

I will be happy to work with you :)

OpenGL Software Architecture

Project ID: #15576792

About the project

2 proposals Remote project Active 6 years ago

2 freelancers are bidding on average $25 for this job

sujanttt

Hello sir, I am interested in the OpenGL/GLUT project that you have provided. I have done similar project lately. I have been on c/c++ and opengl for 3 years on this site and I can help you with this project. I can del More

$25 USD in 1 day
(19 Reviews)
3.9