Message Boards Message Boards

Set size/dimension of STL export?

GROUPS:

Hi all,

I have bee using Mathematica(11.0.1) to 3d print shapes, something like

Export["test.stl", someGeoObj, {"STL", "BinaryFormat" -> False}]

Now I am wondering if I can specify size/dimension of objects Mathematica export (in mm or inch), without going through other apps like MeshLab.
I use Formlabs Preform and Ultimaker Cura to print STL files.

Best,

POSTED BY: SY Yoon
Answer
2 months ago

Hi SY Yoon,

I think that the easiest way is to resize the stl object in Cura - see for example here. Increasing the size of objects within Mathematica can be done in various ways. Here I use RegionResize to do that:

Show[RegionResize[DiscretizeGraphics[ExampleData[{"Geometry3D", "StanfordBunny"}]], 1], 
TransformedRegion[DiscretizeGraphics[ExampleData[{"Geometry3D", "StanfordBunny"}]], TranslationTransform[{1, 0, 0}]]]

enter image description here

I included a shifted version of the object to see the difference.

You can export the resized region as always.

You could use of course also Printout3D which can export a file. There is an option for the Units

Printout3D[\[ScriptCapitalR], "Sculpteo", TargetUnits -> "Centimeters"];

Don't use the "Sculpteo" and it'll print out to a file. Another useful option is RegionSize

Printout3D[\[ScriptCapitalR], RegionSize -> 3]

Cheers,

Marco

POSTED BY: Marco Thiel
Answer
2 months ago

Thanks for the reply Marco.

So what does [RegionResize ... 1 ] mean in case of irregular shape like Stanford Bunny? Its height (the longest part), bounding box?

POSTED BY: SY Yoon
Answer
2 months ago

Group Abstract Group Abstract