Exporting surfaces for 3d printing

Bertini_real allows user to export and solidify (both raw & smooth surfaces) OBJ files for 3D printing, both for complete Surfaces, as well as Pieces of surfaces.

Exporting complete surfaces

After decomposing a surface, you can run the following python codes to export and solidify OBJ in the Python Shell. We are using a surface “Whitney” in this example ☂️ .

import bertini_real

bertini_real.data.gather()

surface = bertini_real.data.read_most_recent()

To export the raw version of OBJ, you can type:

bertini_real.surface.export_obj_raw(surface)

And you will see an output like this:

bertini_real.surface.export_obj_raw(surface)

Generating raw OBJ surface...

Export obj_raw_whitney.obj successfully

You can display OBJ using any 3D OBJ viewer:

../_images/obj_raw_whitney.PNG

To instead export the smooth version of OBJ, which requires that the surface has been sampled to your liking, you can type:

bertini_real.surface.obj_smooth(surface)

And you will see an output like this:

bertini_real.surface.obj_smooth(surface)

Generating smooth OBJ surface...
Export obj_smooth_whitney.obj successfully

You can display OBJ using any 3D OBJ viewer:

../_images/obj_smooth_whitney.PNG

To solidify the raw version of OBJ, you can type:

bertini_real.surface.solidify_raw(surface)

And you will see an output like this:

bertini_real.surface.solidify_raw(surface)

Solidiying raw OBJ surface...
Export solidify_raw_whitney.obj successfully

You can display OBJ using any 3D OBJ viewer:

../_images/solidify_raw_whitney.PNG

To solidify the smooth version of OBJ, you can type:

bertini_real.surface.solidify_smooth(surface)

And you will see an output like this:

bertini_real.surface.solidify_smooth(surface)

Solidiying smooth OBJ surface...
Export solidify_smooth_whitney.obj successfully

You can display OBJ using any 3D OBJ viewer:

../_images/solidify_smooth_whitney.PNG
Author

Foong Min Wong, Silviana Amethyst

Version

1.2 2022/03/05