geometry validation