DrawNode::drawPolygon refactor