meshdata: improved cube and plane generation.