I’ve added entity functions to enable scripting for the user.
For example, if a user wants to draw a point in the scene, he/she can write:
and a point entity will be created at (200,300) position in the scene.
Similarly other entities can be drawn using following commands:
cad.line(112,60,630,478); // line with start_point(112,60) and end_point(630,478)
cad.circle(505,444,60); // circle with center at point(505,444) with radius = 60
cad.ellipse(432,88,65,90); // ellipse with center at point(432,88) with minor_radius = 65 and major_radius = 90
Arc and text entities are yet to be implemented which will be done next.