BYU (.byu)
Background & Context

-
- 3D geometry format.
- Used for visualization of 3D polygonal meshes in CAD systems and other applications.
- BYU is an acronym for Brigham Young University.
- ASCII format.
- Represents 3D objects as collections of polygon primitives.
- Can store multiple 3D objects.
Import & Export

- Import["file.byu"] imports a BYU file as a MeshRegion object representing the surface.
- Import["file.byu",elem] imports the specified element from a BYU file.
- The import format can be specified with Import["file","BYU"] or Import["file",{"BYU",elem,…}].
- Export["file.byu",expr] exports a 3D mesh-based geometric region to a binary BYU file. The expr can be any region that is ConstantRegionQ or a Graphics or Graphics3D object.
- The export format can be specified with Export["file",expr,"BYU"] or Export["file",expr,{"BYU",opt1val1,…}].
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
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:
-
"VertexData" list of vertex coordinates "PolygonData" the polygon data in indexed form - Geometry representation elements:
-
"BoundaryMeshRegion" boundary mesh representation of a solid "MeshRegion" mesh representation of a surface "Region" region representation of a surface - Graphics elements:
-
"Graphics3D" BYU file represented as a Graphics3D object "GraphicsComplex" list of GraphicsComplex objects "PolygonObjects" list of polygon primitives in absolute coordinates - Import and Export use the "MeshRegion" element by default for BYU files.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Import a 3D model from BYU as a MeshRegion object:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-nj1
Out[1]=1

"Summary" properties of the solid model:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-enstil
Out[1]=1

Export a 3D model to an ASCII BYU file:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-u3lkph
Out[1]=1

Print the raw textual contents of the file:
In[2]:=2

✖
https://wolfram.com/xid/0ck8vtrx-6kuv56
Scope (11)Survey of the scope of standard use cases
Import (6)
Import works on a BYU file:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-qzdt5a
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-gleixe
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-tgzw4
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0ck8vtrx-care6j
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0ck8vtrx-ll8we5
Out[3]=3

Import automatically detects BYU files:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-pbu2ww
Out[1]=1

Import provides access to elements in the BYU file:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-obu11p
Out[1]=1

Import works on large files:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-geokw1
Out[1]=1

Export (5)
Export works on 3D graphics:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-5qjue
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-jkpjvf
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-26h70
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-d1c9he
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-dnnsik
Out[1]=1

Import Elements (9)
"BoundaryMeshRegion" (1)
"Graphics3D" (1)
"GraphicsComplex" (1)
"MeshRegion" (1)
"PolygonData" (1)
"PolygonObjects" (1)
Give the list of Triangle primitives given in absolute coordinates:
In[1]:=1

✖
https://wolfram.com/xid/0ck8vtrx-6nbuok
