Shape filling implementation (with error)