As New Orleans Hornets General Manager Dell Demps pushed to work out the specifics of a contract offer last week, Coach Monty Williams talked extensively with Orlando Magic restricted free-agent power forward Ryan Anderson to convince him to join New Orleans. Impressed with Williams’ plans, Anderson initially accepted the Hornets’ four-year, $36 million offer sheet before the Magic stepped in to facilitate a sign-and-trade agreement with New Orleans on Sunday.

John Raoux / The Associated PressThe New Orleans Hornets will acquire the NBA's top 3-point shooter when their trade with the Orlando Magic is completed this week.

As part of the deal, the Hornets agreed to trade forward Gustavo Ayon to Orlando. The trade will be finalized Wednesday, when the league’s trade moratorium on player transactions ends.

“What he likes about New Orleans, I say first and foremost is Monty,” Anderson’s agent, Chris Emens, said Monday. “He thinks Monty is a great basketball mind, really a great communicator, and I think they have a common bond. They talked extensively during this process.

“I think one of the things that certainly helps make Monty a standout among NBA coaches is that he’s very invested in his players, not just professionally but personally. I think players feel that.”

Demps and Williams have declined comment about the trade until it becomes official. But Anderson, 24, is a much-needed perimeter threat who could be shifted to small forward or center because No. 1 pick Anthony Davis is the likely starter at power forward.

Starting 61 games last season, Anderson won the league’s Most Improved Player award after averaging 16.1 points, 7.7 rebounds and shooting 39.3 percent from 3-point range. He led the NBA with 166 made 3-pointers last season.

While finishing 21-45 last season, the Hornets ranked 23rd in the league in 3-point shooting (33.3 percent) and 29th in scoring (89.6).

Williams said they couldn’t fill all of their holes in the draft and hoped to address a need for scoring in free agency or through a trade. The Hornets still are trying to make a push to land a center, sources say.

Anderson tweeted after the Hornets and Magic agreed to the trade Sunday: “This whole process was a bit of a surprise to me but I’m incredibly blessed to be a part of a such a promising team now.”

Emens said Anderson will be in New Orleans on Wednesday to take his physical and sign his contract before he is formally introduced by the Hornets. Anderson, 6 feet 10, 240 pounds, has been in the league for three seasons, playing the past two with Orlando.

“Obviously, when you look at the young pieces and young nucleus that they have going forward and the cap flexibility they have going into next year, you look at this team as being primed to be a contender in the Western Conference in two or three years,” Emens said.

SUMMER TEAM SET: The Hornets announced their summer league team roster, and it includes Davis, who was cut from Team USA but was selected as an alternate.

Joining Davis, who is recovering from a sprained left ankle, will be first-round draft pick Austin Rivers and second-round selection Darius Miller. Also guard Jerome Dyson, guard-forward Xavier Henry, forward Lance Thomas and center Darryl Watkins, who played for the Hornets last season, will participate.

The Hornets open summer league play in Las Vegas on Sunday night against the Portland Trail Blazers.

Williams will hold a minicamp from Wednesday to Friday at the Alario Center.