Showing content from http://reference.wolfram.com/language/ref/format/OFF.html below:
OFF—Wolfram Language Documentation
WOLFRAM Consulting & Solutions
We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
- Data & Computational Intelligence
- Model-Based Design
- Algorithm Development
- Wolfram|Alpha for Business
- Blockchain Technology
- Education Technology
- Quantum Computation
WolframConsulting.com
IMPORT/EXPORT FORMAT
OFF (.off, .coff)
- Import and Export support ASCII and binary versions of the OFF file format.
Background & Context
-
- OFF 3D geometry format.
- Used for storing and exchanging 3D models.
- OFF is an acronym for Object File Format.
- Occasionally called COFF if color information is present.
- Related to NOFF and CNOFF.
- ASCII or binary format.
- Represents a single 2D or 3D object.
- Stores a collection of planar polygons with possibly shared vertices.
- Supports polygon and vertex colors and opacity specifications.
Import & Export
- Import["file.off"] imports an OFF file as a MeshRegion object representing the surface.
- Import["file.off",elem] imports the specified element from an OFF file.
- The import format can be specified with Import["file","OFF"] or Import["file",{"OFF",elem,…}].
- Export["file.off",expr] exports a 3D mesh-based geometric region to a binary OFF file. The expr can be any region that is ConstantRegionQ or a Graphics or Graphics3D object.
- Export["file.off",expr,{opt1->val1,…}] exports expr with the specified options for the file format.
- The export format can be specified with Export["file",expr,"OFF"] or Export["file",expr,{"OFF",opt1->val1,…}].
- See the following reference pages for full general information:
Import Elements
- General Import elements:
- "Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements
- Data format representation elements:
- "BinaryFormat" whether the file is a binary or ASCII OFF "VertexData" list of vertex coordinates "PolygonData" the polygon elements in indexed form "VertexColors" colors associated with each vertex "PolygonColors" face color information for each polygon
- Geometry representation elements:
- "BoundaryMeshRegion" boundary mesh representation of the solid "MeshRegion" mesh representation of the surface
- Graphics representation elements:
- "Graphics" 2D OFF file represented as a Graphics object "Graphics3D" 3D geometry represented as a Graphics3D object "GraphicsComplex" OFF file as a GraphicsComplex object "PolygonObjects" list of Polygon primitives given in absolute coordinates
Options
- Export options:
- "BinaryFormat" True whether to write a binary or ASCII file
Examplesopen allclose all Basic Examples (2)
Import a 3D model from OFF as a MeshRegion object:
Summary properties of the model:
Export a 3D model to an OFF file:
Print the raw textual contents of the file:
Scope (13) Import (7)
Import works on an ASCII OFF file:
Binary OFF file:
Any accessible URL:
Stream:
Import automatically detects OFF files:
Import provides access to elements in the OFF file:
Import works on large files:
Export (6)
Export works on 3D graphics:
Special regions:
Formula regions:
Mesh regions:
Export to a binary OFF file:
ASCII OFF file:
Import Elements (11) "BinaryFormat" (1)
Test whether this file is a binary or ASCII OFF:
"BoundaryMeshRegion" (1)
Give a boundary mesh region:
"CoordinateTransform" (1)
The coordinate system used by the OFF format is identical to the Wolfram Language:
"PolygonData" (1)
Give the polygon elements in indexed form:
"PolygonObjects" (1)
Give the list of Polygon primitives given in absolute coordinates:
"Summary" (1)
Give the summary of properties:
File size:
"VertexData" (1)
Give the vertex coordinates:
Export Options (2)
By default, a binary file is generated when exporting:
Print the raw textual contents of the file:
Use "BinaryFormat" False to generate an ASCII file:
Print the raw textual contents of the file:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4