Circle

Constructors

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:

  • radius : radius in mm.
  • faces : number of faces to generate the circle

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.

Example of use

#include <components/Cube.h>
#include <core/IndentWriter.h>
 
Component2D myCircle = Circle::create(10,100);
 
//or
 
Component2D myCircle(Circle::create(10,100));

OpenSCAD generated code

circle(r=10,$fn=100);

Source Files

Recent changes RSS feed Creative Commons License Donate Minima Template by Wikidesign Driven by DokuWiki