port SlopeToolNode from Java