We have been developing a small simple "CAD" solution that allow us to parameterize the width and length of some specific, simple shapes.
For instance consider the following set of vertices forming a triangle. Where any 2 points form a line. So changing distances between point is changing width of the line.
We have discussing rigorously about how to approach this problem.
Things that we have discussed are:
- Maintain a list of equations of all the relationship between all the vertices. Say we have point
A
,B
,C
. LetW
be some user-defined parameter. The constraint equation for this shape would beBx = Ax + W
,By = Ay
, andCx = Bx
and so on.
The complexity is enormous but it works.
- Maybe model each vertex as a node in a graph...?
What is the proper approached widely used in this field?