extension joomla, template joomla,banner extension joomla,jomla slider,slider joomla
How to make Vertex Table, Edge Table and Surface Table to store geometric information of an object??

Listing the geometric data in three tables provides a convenient reference to the individual components of each object. Also, the object can be displayed efficiently be using data from the edge table to draw the component lines. Here I discuss about how to create those tables with the help of C++ code.
Vertex table consists of the array of vertices with the coordinate value of each vertex. In C++, a vertex table can be created by creating a class that has . For example


Edge table consists of pointers back into vertex to identify the edges for each polygon.  For example,

Surface table consists of pointers of edges associated with the surface. Similarly it consists of Coefficients of Plane equations A, B, C, D and color intensity value of each surface. Surface table has great importance in Surface Rendering and Visible surface detection. The surface table can be created in C++ as

Rules for creating Geometric table:  

1.  Every vertex is listed as an end point for at least two edges.
2.  Every edge is part of at least one polygon
3.  Each polygon has at least one shared edge.
4.  Every surface is close.

Related Article

destination source:https://www.programming-techniques.com/?p=95