Algorithmic modeling and prototyping of a structural joint for freeform surfaces