9
$\begingroup$

Scratchpad was a constraint-based graphics system.

What does it mean by a Constraint-based Graphics System?

$\endgroup$

2 Answers 2

11
$\begingroup$

If you have a geometric drawing with measurements you can solve what the shape has to be. This is valuable for example in engineering as it allows you specify the requirements and the computer can then solve the constrained drawing via a solver.

enter image description here

Image 1: Constraint solver in action, red constraints are fixed while blue ones are free to change.

There are several ways how the solver might work, it could be a numeric nonlinear based on gradient descent. Or it can be fully algebraic. Usually its a gradient descent solver as this is easier to implement, and possibly faster.

$\endgroup$
5
$\begingroup$

Sketchpad was a system that allowed you to draw simple shapes using lines and curves in 2D. It maintained constraints between the shapes. For example, an endpoint of one line could be constrained to lie on another line. Also, as mentioned in the Wikipedia article, the user could set a fixed length for a line, or an angle between two connected lines. These constraints would be automatically applied by the system while editing the diagrams—e.g., when moving one line, other lines would be adjusted to maintain the constraints.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.