Shape representation and justification