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 reference pages for full general information on Import and Export.
  • ImportString and ExportString support the BYU format.

Import Elements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties and settings
    "Summary"summary of properties
  • 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.


open allclose all

Basic Examples  (3)

Import a 3D model from BYU as a MeshRegion object:

"Summary" properties of the solid model:

Export a 3D model to an ASCII BYU file:

Print the raw textual contents of the file:

Scope  (11)

Import  (6)

Import works on a BYU file:

Any accessible URL:


Import automatically detects BYU files:

Import provides access to elements in the BYU file:

Import works on large files:

Export  (5)

Export works on 3D graphics:

Special regions:

Formula regions:

Mesh regions:

Export to an ASCII BYU file:

Import Elements  (9)

"BoundaryMeshRegion"  (1)

"Graphics3D"  (1)

Give the Graphics3D object:

"GraphicsComplex"  (1)

Give the GraphicsComplex object:

"MeshRegion"  (1)

Give the MeshRegion:

"PolygonData"  (1)

Give the polygon elements in indexed form:

"PolygonObjects"  (1)

Give the list of Triangle primitives given in absolute coordinates:

"Region"  (1)

Give a Region:

"Summary"  (1)

Give the "Summary" of properties:

File size:

"VertexData"  (1)

Give the vertex coordinates: