The templated mesh has two transformation functions ( being a translation and being a combination of reflection and translation) where the three vertices , , and are shared by an instance interface. When using the data structure without SVB (Listing 4.1), only the mesh template is stored as described in Section 2.4. transformation_indices would be and region_ids would be equal to . The two transformation functions, and , are stored in the transformations array. When using the data structure with SVB (Listing 4.2), the mesh template as well as the transformations functions are stored the same way. The global_vertices array would include , , and . Therefore, the local_to_global_vertex_mapping array of the instance indicated by is equal to , because the local vertex is associated with the global vertex which is the first entry in the global_vertices array, with , and with . For similar reasons, the local_to_global_vertex_mapping array of the instance indicated by is also . |