Sample6D code generation