WOLFRAM

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 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 all

Basic Examples  (3)Summary of the most common use cases

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

Out[1]=1

"Summary" properties of the solid model:

Out[1]=1

Export a 3D model to an ASCII BYU file:

Out[1]=1

Print the raw textual contents of the file:

Scope  (11)Survey of the scope of standard use cases

Import  (6)

Import works on a BYU file:

Out[1]=1

Any accessible URL:

Out[1]=1

Stream:

Out[1]=1
Out[2]=2
Out[3]=3

Import automatically detects BYU files:

Out[1]=1

Import provides access to elements in the BYU file:

Out[1]=1

Import works on large files:

Out[1]=1

Export  (5)

Export works on 3D graphics:

Out[1]=1

Special regions:

Out[1]=1

Formula regions:

Out[1]=1

Mesh regions:

Out[1]=1

Export to an ASCII BYU file:

Out[1]=1

Import Elements  (9)

"BoundaryMeshRegion"  (1)

Give a BoundaryMeshRegion:

Out[1]=1

"Graphics3D"  (1)

Give the Graphics3D object:

Out[1]=1

"GraphicsComplex"  (1)

Give the GraphicsComplex object:

Out[1]=1

"MeshRegion"  (1)

Give the MeshRegion:

Out[2]=2

"PolygonData"  (1)

Give the polygon elements in indexed form:

Out[1]=1

"PolygonObjects"  (1)

Give the list of Triangle primitives given in absolute coordinates:

"Region"  (1)

Give a Region:

Out[1]=1

"Summary"  (1)

Give the "Summary" of properties:

Out[1]=1

File size:

Out[2]=2

"VertexData"  (1)

Give the vertex coordinates:

Out[1]=1