Method and system for 3-dimensional automatic scan based primitive