Mesh
R2026bDescription
Add-On Required: This feature requires the 3D Asset Processing Library for MATLAB add-on.
The Mesh object represents a triangular mesh composed of vertices
and faces with optional colors, textures, and Physically Based Rendering (PBR)
materials.
Use this object to store 3D geometry along with optional per-vertex or per-face colors, UV
texture coordinates, and PBR materials. You can visualize the mesh in an interactive 3D
viewer, convert it to a triangulation or
patch object, and
apply spatial transformations such as translate, rotate, scale, and resize.
Creation
Description
creates a triangular mesh object meshObj = asset3d.Mesh(vertices,faces,Name=Value)meshObj using one or more
name-value arguments. For example,
Material=material specifies the PBR material as
material.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
show | Display mesh or scene object in interactive 3D viewer |
patch | Convert mesh or scene object to patch for visualization in axes |
snapshot | Capture snapshot of mesh or scene as image |
triangulation | Convert mesh to triangulation object |
transform | Apply homogeneous transformation to mesh or scene object |
rotate | Rotate mesh or scene object |
translate | Translate mesh or scene object using translation vector |
scale | Scale mesh or scene object |
resize | Resize mesh or scene object to absolute dimensions in world units |
setUpAxis | Change up axis convention for mesh or scene object |
copy | Create copy of mesh or scene object |
Examples
Version History
Introduced in R2026b
See Also
Scene | Material | Texture | trellis | asset3d.read | asset3d.write
