The characteristic of Primitive Objects is that they are not created through the constructor but by a static function named create. The Circle has two parameters:
and it is created through the create static function of the class Circle:
Component2D Circle::create(double radius, unsigned int faces)
The circle is a 2D figure centered in the XYZ axes, as shown in the figure.
#include <components/Cube.h> #include <core/IndentWriter.h> Component2D myCircle = Circle::create(10,100); //or Component2D myCircle(Circle::create(10,100));