Details
ResourceFunction["GeometricSceneConstructor"] creates an interactive interface that allows users to create primitives and relations among them and then produces the corresponding
GeometricScene or
RandomInstance expression without the user having to build the code from the ground up.
The interface is broken up into two components, "Figures" and "Relations":
Figures | area for adding primitives such as Line,Circle,Triangle, etc. |
Relations | area for adding relationships among the defined primitives such as "Parallel", "Inside", etc. |
Figures are determined by symbols entered under the "Specifications" column, which accepts symbols and numbers in some cases (radius and angle for example). Additional properties of a given figure can be chosen from the fields under the "Properties" column while the "Styles" column allows users to customize the appearance of particular figures in the output.
To add a relation, the user must first enter one or more figures and then select them from the dialog accessed via the "select figures" button. Once the desired figures are selected, clicking "select relations" opens another dialog which allows for the particular kinds of relations available for the selected figures to be chosen.
Clicking
Print GeometricScene will print out the symbolic
GeometricScene[…] object corresponding to the description provided while clicking
Visualize GeometricScene will print a cell with
RandomInstance[GeometricScene[…]] and evaluate it to show a visualization of the scene.