Sample OFF Files — Download Object File Format Meshes for Testing

OFF — Object File Format · .off · MIME type application/octet-stream

2 files3 KB – 28 KBDirect linksNo ads, no sign-upFree for any useSHA-256 verified

Download a sample OFF file to test a geometry-processing tool, a mesh library or a teaching exercise. OFF is about the simplest polygon format there is — a header line, counts, a list of vertices and a list of faces — which is why it is used by CGAL, Geomview, MeshLab and the ModelNet machine-learning dataset.

There are two files: the low-poly torus knot as 1,024 triangles, and a truncated icosahedron (a football) stored as 12 pentagons and 20 hexagons, untriangulated, with an RGB colour on every face — the optional per-face colour syntax that many OFF readers silently drop.

Rendered preview of the sample OFF model
Static render of a sample on this page, flat-shaded by our generator. Open the downloads in any OFF viewer to inspect them in 3D.

Download sample OFF files

FileDetailsSizeDownload
sample-polygons-face-colors.off
32 polygons (12 pentagons, 20 hexagons) • per-face RGB colours • not triangulated • 3 KB
32 polygons · 60 vertices · metres, Y up3 KB
2,663 bytes
Download OFF
sample-model.off
1,024 triangles • triangles • 28 KB
1,024 polygons · 512 vertices · metres, Y up28 KB
28,072 bytes
Download OFF
2 files · direct links · no sign-up · CORS enabled

Use these files from the command line or CI

Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.

# Download one file
curl -O https://pnb-freetoolsforweb.s3.us-east-2.amazonaws.com/samples/3d/off/sample-polygons-face-colors.off

# Verify it (SHA-256 is listed for every file above)
shasum -a 256 sample-polygons-face-colors.off

# Machine-readable index of every sample file
curl https://pnb-freetoolsforweb.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="off")'

OFF format at a glance

Full nameOFF — Object File Format
Extensions.off
MIME typeapplication/octet-stream
EncodingPlain text: OFF, then vertex / face / edge counts
FacesPolygons of any size, 0-based indices
ColourOptional RGB per face after the indices
UnitsNone in the file — these samples are metres, Y up
Used byCGAL, Geomview, MeshLab, ModelNet

What people test with sample OFF files

  • Geometry-processing and mesh library input
  • Polygon (n-gon) triangulation
  • Per-face colour parsing
  • Machine-learning dataset loaders (ModelNet-style)
  • Teaching mesh data structures
  • Minimal-format parser tests
Testing notes. The format allows # comment lines, but these files deliberately contain none: native Assimp 6.0 hung indefinitely on our first build, which had a two-line comment after the OFF keyword. If you write OFF files for other tools to read, leave comments out. trimesh 4.x with NumPy 2.5 fails to load the mixed pentagon/hexagon file because of a library bug, while Assimp reads it correctly — a real example of how n-gons expose parser assumptions.

Frequently asked questions

How do I open an OFF file?

MeshLab, Geomview and Blender (via add-ons) open it, and libraries such as CGAL, Open3D, trimesh and Assimp read it in code. Because it is plain text, you can also inspect it in any editor.

What units and up axis do these files use?

glTF, GLB, OBJ, PLY, OFF, DAE and USDZ are Y-up in metres (the torus knot is about 1.4 m across). STL and 3MF are Z-up in millimetres and rest on z = 0, as slicers expect. FBX is Y-up in centimetres. The units and up axis of each file are listed in its details, so you can check that your importer scales and rotates correctly.

Where do these models come from?

We generate them. A script builds the geometry from formulas (a torus knot, UV spheres, cubes, and a bracket made with a boolean modelling library), then writes each file format byte by byte from its specification. Nothing is downloaded, scanned or converted from someone else's model, which is why they are free for any use, including commercial, with no attribution.

Are these OFF files safe to download?

Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.

Can I use the sample OFF files commercially?

Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.

Can I hotlink these files or use them in CI?

Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).

Related sample files

Free tools that work with OFF

  • Hash Generator — Hash text or files with MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32, verify a checksum, or compute an HMAC. Files never leave your device.

Found a problem, or something that could be better? We read every message and we fix things quickly.

Testing a file pipeline? We build them.

Uploads, conversions, previews, document processing and media workflows are the kind of production systems FreeToolsForWeb designs and runs for clients — which is why we needed these files in the first place.

Explore free tools