Hi everyone!
I have Rhino 7 and in my Grasshopper I do not have a command called ReduceMesh. Do you guys know why is it missing? In my Rhino 7 I can find the command but not in Grasshopper.
Hi,
Not each and every Rhino command also exists in Grasshopper. It could also be the component or workflow is simply named slightly differently.
In case of ReduceMesh
, you can however use TriRemesh or Quad Remesh to achieve a similar outcome.
Alternatively, there’s also the Mesh Reduce component from the LunchBox Grasshopper add-on.
I have a C# that does that. Notify if you want such a thing.
Could you share it with us if you have.
We also have same issue, right now.
Hello
you have access to it using Rhinocommon
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.mesh/reduce
The beast from Alec Jacobson repository in Github
reduce mesh Rhinocommon.gh (1.3 MB)
Also in Pufferfish plugin
Thank you for your quick response.
your code requires C# plugin, but I can’t find this plugin also at food4rhino.
Therefore, could you share the C# script as code based?
Thank you in advance.
I think you are still on R7, like me indeed but as main people now post R8
reduce mesh Rhinocommon R7.gh (1.2 MB)
One line !!! It is more difficult to put the variables than coding !!!
private void RunScript(Mesh mesh, int desiredPolygonCount, bool allowDistorsion, int accuracy, bool normalizeSize, ref object B, ref object A)
{
mesh.Reduce(desiredPolygonCount, allowDistorsion, accuracy, normalizeSize);
A = mesh;
}
Thank you so much!!