Interoperability with other packges
General
MeshProcessing.loadmesh
— Functionmesh::TriMesh, mobj = loadmesh(filename[, typ=Float64])
Load triangle mesh
from file, e.g., in OFF format using FileIO
and GeometryBasics
mobj
is the mesh as defined by GeometryBasics
and can be used for rendering. coordinates(mobj)
and faces(mobj)
provide Vector
s of vertex positions and triangle indices, respectively.
See also readoff
MeshProcessing.meshobj
— Functionmobj = meshobj(mesh)
mobj = meshobj(mesh; uv=..., normals=...)
mobj = meshobj(x, t; ...)
Convert mesh
or equivalently triangulation x, t
to mesh as defined by GeometryBasics
, which can be used for rendering, e.g., with Makie
(see Makie.mesh
). Texture coordinates uv
are passed as matrix columns or as a function that maps vertex positions. Normals are passed as a matrix. They are estimated if either :auto
or an empty matrix is passed.
MeshProcessing.trimesh
— Functionmesh = trimesh(mobj::GeometryBasics.Mesh, typ=Float64)
Convert GeometryBasics.Mesh
to TriMesh{T}
.
Plots recipes
MeshProcessing.plotboundary
— MethodPlots.plot(plotboundary(mesh), ...)
Wrap mesh
for boundary plotting "recipe".