ObjectPtr Parametric::Copy() { Parametric *New = new Parametric(); Destroy_Transform(New->Trans); *New = *this; New->Function[0] = Parser::Copy_Function(vm, Function[0]); New->Function[1] = Parser::Copy_Function(vm, Function[1]); New->Function[2] = Parser::Copy_Function(vm, Function[2]); New->Trans = Copy_Transform(Trans); New->PData = Copy_PrecompParVal(); return (New); }
void* Copy_Parametric(OBJECT* Object) { PARAMETRIC *New, *Old; Old = (PARAMETRIC *)Object; New = Create_Parametric(); *New = *((PARAMETRIC *)Object); New->Function[0] = Copy_Function(Old->Function[0]); New->Function[1] = Copy_Function(Old->Function[1]); New->Function[2] = Copy_Function(Old->Function[2]); New->Trans = Copy_Transform(Old->Trans); New->PData = Copy_PrecompParVal(Old->PData); return (New); }