Add function to create boolean mask of structures that are substructures of a parent structure.