Skip to content

Instantly share code, notes, and snippets.

@francisbitontistudio
Last active December 4, 2018 23:54
Show Gist options
  • Save francisbitontistudio/5c519bbe2063912aabb6b3d7ae728472 to your computer and use it in GitHub Desktop.
Save francisbitontistudio/5c519bbe2063912aabb6b3d7ae728472 to your computer and use it in GitHub Desktop.
import genysis
token = "YOUR TOKEN"
MPfilename = "mechP.obj"
mechP = genysis.volumeLattice()
mechP.setVolume("Part.obj")
mechP.setPoreSize(1.5) #units are mm
mechP.setOutput(MPfilename)
mechP.stochasticLatticeStatic(token)
final=genysis.marchingCube(MPfilename,700,0.25,"mechOutput",token)
print(final)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment