G-code generation in a NURBS workflow for precise additive manufacturing