X3D libraries
The libraries to work with X3D dataset

opengl_geometry_2D_level1.c++ File Reference

Implementation of the OpenGLShape::Prepare<geometry>() functions. More...


Namespaces

namespace  x3dgl


Detailed Description

Implementation of the OpenGLShape::Prepare<geometry>() functions.

This file implements all the 2D level 1 geometry objects.

It includes the Arc2D, ArcClose2D, Circle2D, Disk2D, Polyline2D, Polypoint2D, Rectangle2D, TriangleSet2D.

Bug:
The X3D specification mentions that a 2D shape viewed edge on disappears. This would mean having to computing the place and see if it is parallel to the view vector. If it is, then we should hide the shape. Left as is, it may still be seen somewhat.