Antiprism Up Next
Home
Programs
Examples
Album
Download
Development
Forum
About

Import and Export

Import    |    Export

Import

OFF, Coordinates

The Antiprism programs natively read OFF format. They will also accept lists of coordinates, given as three numbers per line separated by spaces or commas, each line representing a point.

OBJ

The Antiprism obj2off program will convert Wavefront OBJ format to OFF. Meshlab will convert from OBJ to OFF.

Other formats

Meshlab will convert from the following formats to OFF: PLY, STL, 3DS, OBJ, DAE (COLLADA), PTX, V3D, PTS, APTS, XYZ, GTS, TRI, ASC, X3D, X3DV, VRML, ALN

Export

Preparing for export

The following commands are useful to prepare an OFF file for export, either to exclude data that you don't want to export or to accommodate the program you are exporting to. Geometry only: remove all face elements with less than three vertices, and all colours
off_util -g cube > geometry_only_cube.off


Coloured mesh: remove all face elements with less than three vertices, and all vertices that are not part of a face
off_util -x veV cube > coloured_mesh_cube.off


Meshlab ready: Meshlab will not read OFF files containing face elements with one or two faces, which are common in Antiprism as they are used for colouring vertices and edges. The minimal command to strip these elements (and no others) is
off_util -x ve cube > meshlab_ready_cube.off


Triangulated: split polygons into triangles
off_util -t tri cube > triangulated_cube.off


OFF

The Antiprism programs natively write OFF format.

Coordinates

The Antiprism off2crds program will convert from OFF to a list of coordinates (three numbers per line).

OBJ

The Antiprism off2obj program will convert from OFF to Wavefront OBJ format. Meshlab will convert from OFF to OBJ, but the OBJ file will be triangulated.

DAE (COLLADA)

The Antiprism off2dae program will convert from OFF to DAE (COLLADA) format. The output is suitable for import into Sketchup and Blender.

VRML

The Antiprism off2vrml program will convert from OFF to VRML. Meshlab will convert from OFF to VRML.

POV

The Antiprism off2pov program will convert from OFF to POV-Ray POV format.

Other formats

Assimp Assimp will convert from OFF to the following additional formats: STL, PLY

Meshlab will convert from OFF to the following additional formats: STL, PLY, 3DS, DXF, GTS, U3D, IDTF, X3D.


     Next: Named Colours in Antiprism
     Up: Programs and Documentation


Home   |   Programs   |   Examples   |   Album   |   Download   |   Development   |   Forum   |   About

Contact: adrian@antiprism.com      -      Modified 15.12.2022