X3D libraries
The libraries to work with X3D dataset

opengl_geometry_2D_level2.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 2 geometry objects.

It includes the Arc2D, ArcClose2D, Circle2D and Disk2D.

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.