Ir para conteúdo
3DFinder
Entrar

Você está no 3DFinder

Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.

Buscar mais como este
Modelo 3D OpenSCAD surface Gimp Export Plugin por ffaat no Thingiverse

Descrição

I've written a gimp python plugin to export the openscad surface format. The pic shows the greyscale height-field and the resultant openscad surface. This was done to design terrain in gimp and send the tiles to a 3d printer.

Instruções

Extract the python file an put it in your gimp plugin directory.
Open a greyscale image in gimp then save it with a ".dat" extension (i.e. "testsurface.dat"

Then use this in openscad comme ca:

surface(file = "testsurface.dat", center=true, convexity = 5);

and scale as needed...

Note that really large surface files will cause openSCAD to die horribly, so it is best to prescale the image before exporting.

I've adjusted the scaling so the 0->255 will map to exactly -0.5 -> 0.5.
Note that the surface routine seems to add a 1 unit high base to the imported surface, so the actual surface rendered will be from -1.5 -> 0.5, so you need to intersect it with a 1 unit high centered box to trim off this base.

Also not that the surface import function does NOT create steps - it generates the triangles vertices based on the pixel values.

This means for a 4x4 image that is a B&W 2x2 checkboard you end up with:
0.5 0.5 -0.5 -0.5
0.5 0.5 -0.5 -0.5
-0.5 -0.5 0.5 0.5
-0.5 -0.5 0.5 0.5

which renders 3x3 units x by y. consisting of two tableaus at -0.5 and two tableaus at 0.5 with sloped surfaces between (which might not be what you were expecting). One of the example images shows this.

Thingiverse

OpenSCAD surface Gimp Export Plugin

95
Curtidas
0
Downloads
112
Coleções
Tags
export gimp heightmap hight map surface
Licença Creative Commons - Attribution - Share Alike
Ver no Thingiverse (abre em nova aba)

Gostou deste modelo? Crie uma conta grátis para salvar seus favoritos e voltar a eles depois.

Criar conta