Analyzing a real-world object or environment to collect data on its shape and possibly its appearance (e.g. colour)