Import and Export
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.
The Antiprism obj2off program will convert Wavefront OBJ format to OFF.
will convert from OBJ to OFF.
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
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
The Antiprism programs natively write OFF format.
The Antiprism off2crds program will convert from OFF to a list of coordinates (three numbers per line).
The Antiprism off2obj program will convert from OFF to Wavefront OBJ format.
will convert from OFF to OBJ, but the OBJ file will be triangulated.
The Antiprism off2dae program will convert from OFF to DAE (COLLADA) format. The output is suitable for import into Sketchup and Blender.
The Antiprism off2vrml program will convert from OFF to VRML.
will convert from OFF to VRML.
The Antiprism off2pov program will convert from OFF to POV-Ray POV format.
Assimp will convert from OFF to the following additional formats: STL, PLY
will convert from OFF to the following additional formats: STL, PLY, 3DS, DXF, GTS, U3D, IDTF, X3D.
Named Colours in Antiprism
Programs and Documentation