Hostname: page-component-89b8bd64d-dvtzq Total loading time: 0 Render date: 2026-05-07T10:39:25.601Z Has data issue: false hasContentIssue false

What shape grammars do that CAD should: the 14 cases of shape embedding

Published online by Cambridge University Press:  09 February 2022

Tzu-Chieh Kurt Hong
Affiliation:
School of Architecture, College of Design, Georgia Institute of Technology, Atlanta, GA, USA
Athanassios Economou*
Affiliation:
School of Architecture, College of Design, Georgia Institute of Technology, Atlanta, GA, USA
*
Author for correspondence: Athanassios Economou, E-mail: economou@gatech.edu
Rights & Permissions [Opens in a new window]

Abstract

Shape queries based on shape embedding under a given Euclidean, affine, or linear transformation are absent from current CAD systems. The only systems that have attempted to implement shape embedding are the shape grammar interpreters albeit with promising but inconclusive results. The work here identifies all possible 14 cases of shape embedding with respect to the number of available registration points, four for determinate cases and ten for indeterminate ones, and an approach is sketched to take on the complexities underlying the indeterminate cases. All visual calculations are done with shapes consisting of straight lines in the Euclidean plane within the algebra Uij for i = 1 the dimension of lines and j = 2 the dimension of space in which the lines are defined, transformed and combined. Aspects of interface design and integration to current work design workflows are deliberately left aside.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
Copyright © The Author(s), 2022. Published by Cambridge University Press
Figure 0

Fig. 1. Types of linear transformations. (a) Identity; (b) reflection; (c) direct transformations (from left to right): translation; rotation; scale; shear; stretch; one-point perspective; two-point perspective; (d) indirect or handed versions of the transformations in (c).

Figure 1

Fig. 2. Congruence of shapes and registration points. (a–-(f) Six types of registration points; (g) a shape exhibiting all six types of registration points; (h) four construction lines (hyperplanes) of shape u; (i) seven endpoints of shape u; and (j) six registration points of shape u.

Figure 2

Fig. 3. An example of determinate congruent embedding with one registration point that cannot be implemented by the derivation of the isometry matrix. (a) Shape u; (b) registration points Ru; (c) shape W; (d) registration points RW; and (e) eight results of determinate embedding under isometric transformations.

Figure 3

Fig. 4. An example of determinate similar embedding with two registration points that is successfully implemented by the automated derivation of the similarity matrix. (a) Shape u; (b) registration points Ru; (c) shape W; (d) registration points RW; and (e) eight results of unrestricted embedding under similarity transformations.

Figure 4

Fig. 5. An example of determinate affine embedding using three registration points that is partially implemented by the automated derivation of the affine matrix. (a) Shape u; (b) registration points Ru; (c) shape W; (d) registration points RW; and (e) eight results of determinate embedding under affinity transformations.

Figure 5

Fig. 6. An example of a determinate projective embedding using four registration points that is partially implemented by the automated derivation of the homography matrix. (a) Shape u; (b) registration points Ru; (c) shape W; (d) registration points RW; and (e) 32 results of determinate embedding under linearity transformations.

Figure 6

Fig. 7. An example of indeterminate congruent embedding using no registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) two embedding schemas, one per set of lines of equal lengths; (f) three instances of one of the two embedding schemas with assignments t: 0, 0.25, and 0.5, one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 7

Fig. 8. An example of indeterminate similar embedding using one registration point. An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) the single embedding schema; (d) three instances of the single embedding schema with assignments s: 1, 0.5, and 0.25, one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 8

Fig. 9. An example of indeterminate similar embedding using no registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) two embedding schemas, one per set of lines of equal lengths; (f) three instances of one of the two embedding schemas with assignments s, t: (2, 0), (1, 0.5), and (0.5, 1), one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 9

Fig. 10. An example of indeterminate affine embedding using no registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) two embedding schemas, one per two pairs of parallel lines; (f) three instances of one of the two embedding schemas with assignments α′: 0.25, 0.75, and 1.0, one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 10

Fig. 11. An example of indeterminate affine embedding using one registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) four embedding schemas, one per two pairs of converging lines; (f) three instances of one of the four embedding schemas with assignments αx, αy: 1, 1, (1, 2), and (0.5, 3), one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 11

Fig. 12. An example of indeterminate affine embedding using no registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) two embedding schemas, one per two pairs of parallel lines; (f) three instances with assignments φ′, α′, t′: (0.75, 0.3, 0), (1, 0.75, 0), and 0, 0.5, 1, one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 12

Fig. 13. An example of indeterminate projective embedding using three registration points. An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) one embedding schema; (f) three instances of the single embedding schema with assignments of $p_x^{\prime} , \;p_y^{\prime}$: 0.5li, 0.5li, (li, 0.75li), and li, 0.25li one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 13

Fig. 14. An example of indeterminate projective embedding using two registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) seven embedding schemas, one per a U-shape configuration of lines; (f) three instances of one of the seven embedding schemas with assignments $p_1^{\prime} , \;p_2^{\prime}$: $( {0.125, \;0.875} )$, (0.25, 0.75), and 0.75, 0.75, one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 14

Fig. 15. An example of indeterminate projective embedding using one registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) six embedding schemas one per pair of converging lines; (f) three instances of one of the six embedding schemas with assignments $p_1^{\prime} , \;p_2^{\prime} , \;p_{3x}^{\prime} , \;p_{3y}^{\prime}$: (0.75, 0.75, 0.75, 0.75), (0.25, 0.75, 0.5, 0.75), and (0.75, 0.25, 0.5, 1.0), one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 15

Fig. 16. An example of indeterminate projective embedding using no registration points. (a) An instance of a parameterized shape g(U); (b) registration points Rg(U); (c) shape W; (d) registration points RW; (e) seven embedding schemas one per pair of parallel or converging lines; (f) three instances of one of the seven embedding schemas with assignments $p_1^{\prime} , \;p_2^{\prime} , \;p_3^{\prime} , \;p_4^{\prime} , \;{t}^{\prime}$: 0.25, 0.75, 0.25, 0.75, 1 (0.375, 0.625, 0.25, 0.75, 1), and (0.625, 0.875, 0, 0.75, 1), one per row, and their equivalent embeddings by the actions of the symmetry group of the shape W.

Figure 16

Fig. 17. Automated point sampling for the derivation of an isometric matrix. (a) failed and (b–-(d) correct.

Figure 17

Fig. 18. An example of determinate embedding under affine transformation that cannot be completely determined by the affine matrix. (a) Shape u and the registration points Ru; (b) shape W and the registration points RW; (c) five failed intersection samplings from the shape u; and (e) four results of determinate embedding under affinity transformation.

Figure 18

Fig. 19. An example of determinate similar embedding using no registration points. (a) Shape u and the registration points Ru; (b) shape W and the registration points RW; and (c) eight results of determinate embedding under similarity transformations.

Figure 19

Table 1. 14 cases of shape embedding