mesh3d library
Reads 3D models in pure Dart — .3mf, .glb, .obj and .stl — and
returns their parts, each with a name, a mesh and a colour.
It draws nothing. That is deliberate: the same code runs inside a Flutter app, on a server with no screen, and in a command-line test.
Classes
- GlbReader
-
Reads a
.glb— glTF 2.0 packed into a single file. - Model3d
- A whole model, the way it came out of the file.
- ModelPart
- One part of a model.
- ModelReader
- Something that turns a file into a Model3d.
- ObjReader
-
Reads a
.obj, with the colours from its.mtlwhen that comes along. - StlReader
-
Reads an
.stl, binary or ASCII. - ThreeMfReader
-
Reads a
.3mfand returns its parts, meshes and colours.
Enums
- ModelFormat
- The formats this package reads.
- ModelWarning
- Something a file asked for that this package does not do.
Exceptions / Errors
- Model3dException
- The file is not a model this package can read.