Vent pipe termination distance over roof?

This is what I found on a search
So 6" above the point where it exits the roof is OK?
I also want to box this in to "hide" it somewhat as it will be viewable from the front

Here is the code, CPC sect. 906.1, Each ventpipe or stack shall extend through its flashing and shall terminate vertically not less than six (6) inches above the roof nor less than one (1) foot from any vertical surface.

And CPC sect. 906.2, Each vent shall terminate not less than ten (10) feet from, or at least three (3) feet above, any openable window, door, opening, air intake, or vent shaft, nor less than three (3) feet in every direction from any lot line, alley and street excepted.

This is from the Illinois plumbing code. I hope some of the items in it are helpful.

Section 890.1430 Vent Terminals

a) Roof Extensions. Extensions of vent pipes through a roof shall be terminated at least 12 inches above such roof unless a roof is to be used for any purpose other than weather protection. If a roof is to be used for any purpose other than weather protection, the vent shall be extended at least seven (7) feet above the roof. (See Appendix K: Illustration D.)

b) Flashings. Each vent terminal shall be made water-tight with the roof by proper flashing.

c) Location of Vent Terminal. No vent terminal from a drainage system shall be directly beneath a door, window, overhang or other ventilating intake opening of the building, nor shall any such vent terminals be within 12 feet horizontally of such an opening unless it is at least two (2) feet above the top of such opening. (See Appendix K: Illustration E.)

d) Extensions Outside Building. No soil, waste or vent pipe extension (except for vent terminals as provided in (a) and (c) above) shall be located on the outside of a wall of any building, but shall be installed inside the building. Vents located within an exterior wall or in a wall adjacent to an unheated space shall be protected from freezing.

e) Flag poles. Vent terminals shall not be used for the purpose of supporting flag poles, television aerials, or similar purposes. ​

Note you need to take into account the pitch of the roof, as shown in one of the diagrams, to determine the height above. This would normally mean it must be more than indicated at the point of penetration unless it was a flat roof.

You'd have to talk to the inspector about boxing it in as that would create other problems, and might mean it would still have to exit even higher. You want it above the anticipated maximum snow depth on the roof, too, so that may help dictate the height.