In the previous post, I’ve demonstrated how to create a low-code interface with ShapeDiver, Grasshopper and RoomSurveyor. This post demonstrates a simple JavaScript interface to streamline the workflow for the user, overcoming the ShapeDiver’s current interaction limitations, namely allowing the user to draw on the canvas and interactive value collection and validation. It is worth mentioning that ShapeDiver developers have promised support for canvas drawing soon, yet interactive validation limitations might persist.
In the interface bellow you can draw any polygon that represents the space or morphology you might want to survey. The application validates the polygon (if it is not self-intersecting and is CCW oriented) and request lengths of all sides sequentially, validating the user input. This ensures the right information is feed to the RoomSurvey inputs. In the end you can download a JSON file that might be used on an online configurator (like this) to finish the triangulation process with the RoomSurveyor plugin. This download step may be removed altogether by sending the JSON file directly to the configurator using the ShapeDiver API.
This is an example application. The source code for the app is available on GitHub.
RS Draw and Measure
The source code for the app is available on GitHub.