0% found this document useful (0 votes)
79 views1 page

Implementation of Computational Geometry Algorithm

This document provides information about an assignment to complete code in a computer graphics program that implements computational geometry algorithms. Students are asked to finish code in two files - glpanel.cpp and compgeom.cpp - to add functionality for intersecting line segments and checking if a point is within a polygon. The completed program must use Qt and OpenGL libraries and include image icons in the graphical interface. A solution to the assignment is provided online.

Uploaded by

Vijay Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views1 page

Implementation of Computational Geometry Algorithm

This document provides information about an assignment to complete code in a computer graphics program that implements computational geometry algorithms. Students are asked to finish code in two files - glpanel.cpp and compgeom.cpp - to add functionality for intersecting line segments and checking if a point is within a polygon. The completed program must use Qt and OpenGL libraries and include image icons in the graphical interface. A solution to the assignment is provided online.

Uploaded by

Vijay Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction to Computer Graphics for Engineering

Short Course - 16th -18th June 2014


Implementation of Computational Geometry Algorithm

Complete the graphics program available in the course homepage:


http://www.tecgraf.puc-rio.br/~lfm/HW4-RegionCreation.zip.
This program uses Qt interface system and OpenGL graphics system.
Understanding the given code is part of the assignment.
An executable program, which is the solution of the assignment, is provided:
http://www.tecgraf.puc-rio.br/~lfm/HW4-RegionCreation-solution.zip.

Assignment
1. Complete the lines of code in file glpanel.cpp that are indicated by comments
/*** COMPLETE HERE - GLPANEL: XX ***/.
2. Complete the lines of code in file compgeom.cpp that are indicated by comments
/*** COMPLETE HERE - COMPGEOM: XX ***/
The following static methods of class CompGeom need to be implemented:
CompGeom::computeSegmentSegmentIntersection: interserction of two straight line segments
CompGeom:: isPointInPolygon: check for point inclusion in polygon.
Image icons should be used in the graphics interface.

You might also like