Untitled

1 min read Original article ↗

Drag the sphere with your mouse to rotate it.

Syntax

You can create geometric constructions by writing valid sentences of the following syntax.

Valid sentences:

  • name is construction
  • name is hidden construction
  • draw construction

A construction is one of the followings:

  • point at NUMBER NUMBER NUMBER
  • midpoint of name and name
  • antipode of name
  • intersection of name and name
  • segment between name and name
  • great circle of name
  • polygon of name name name (more than 3 points are also supported)

Each sentence may have an optinal suffix: with color COLOR size NUMBER

A name is a name of an object. It consists of alphanumerals and digits.

For example, the following sentences are valid:

draw point at 0.2 0.3 0.4
p is point at 3 4 -2 with color red
q is hidden point at 3 2 1
draw segment between p and q
      

Source

The project source code can be found on GitHub. Feel free to open an Issue with ideas for improvements or bug reports.