need ReduceMesh in RhinoCommon(https://developer.rhino3d.com/) for grasshopper
that have option similar RHINO!
The following command about reduceMesh is not understandable like the Rhino items
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_ReduceMeshParameters.htm