refasweet.blogg.se

Mesh unfolder sample
Mesh unfolder sample













mesh unfolder sample

if you really just want to alternate between a bunch of definable matrices this is probably the most efficient way of doing so.įor when you need to control each shape individually:

  • Upload a bunch of transform matrices as uniforms, and index into it via additional shape index.
  • Ligne3, = ax.plot(,, "o-", markevery = 10000)Īnim3D = animation.FuncAnimation(fig, Animate3D, frames = n, interval = 30, blit = False)įrom the top of my head I see three routes you can go, all of them will require you to have at least one additional "index" attribute on your vertices to know what polygon they belong to(you can probably encode that as part of the position).įor when you need to control each animation individually:

    #Mesh unfolder sample how to

    # HERE IS MY PROBLEM : HOW TO MAKE Animate3D FUNCTION WORK FOR N BODY ? # #Création tableau contenant les positions de tous les corps It would be great to get some tips/thoughts on the above to see what else I could try to improve this script to suit my requirements.M = np.random.uniform(low=1e30, high=3e30, size=N) I am also finding that sometimes my mesh creates unfolded/cutting lines which are definitely incorrect (Screenshot 2) I'm not sure what is causing these irregularities in my mesh - maybe the script doesn't like acute angles? My original 3D polyhedra brep is a closed polysurface. I tried assigning different weights to the meshgraph and applied the various algorithms from the Ivy Plugin, not all of them work for me however - it would be great to get this working to see how much it can optimise the cutting pattern.

    mesh unfolder sample

    increase the amount of folds in the net, and decrease the amount of cuts) I used the plug-in Ivy to build the grasshopper script, but I think my script can still be improved (i.e. This will make a massive difference in the cost and time of making, because I will have 200+ of these polyhedra to make, so any small improvement makes a big difference. Rhino's *UnrollSrf* unfolds one surface at a time, resulting in two folded edges either side of each face (the green lines in Screenshot 1) but I want the unroll pattern to branch instead, so that each surface has three or four folded edges around it, therefore reducing the amount of cuts the laser cutter will need to do.

    mesh unfolder sample

    Green lines are fold lines and Blue lines are the cut lines for the laser cutter. I'm trying to optimise my unfold script (attached) for some card nets, which will be folded and glued into 3D polyhedrons which will stack together.Īs you can see from Screenshot 1, I am trying to improve upon Rhino's *UnrollSrf* command to condense the unfolded polyhedra's net.















    Mesh unfolder sample