QuadRemesh - Rhinocommon vs RhinoUI

I’ve not been able to identify how to get the same quad remesh results using Rhinocommon in comparison with rhino command.

I’ve attached a gh script to demonstrate, you can see areas with missing faces in rhinocommon result.

201122 quad remesh.gh (664.2 KB)

Thanks in advance for any suggestions on this.

Jon