extendedObjectMesh
Description
The extendedObjectMesh
represents the 3-D
geometry of an object. The 3-D geometry is represented by faces and vertices. Use these object
meshes to specify the geometry of an robotPlatform
for
simulating lidar sensor data using robotLidarPointCloudGenerator
.
Creation
Syntax
Description
returns an mesh
= extendedObjectMesh('cuboid'
)extendedObjectMesh
object, that defines a cuboid with unit
dimensions. The origin of the cuboid is located at its geometric center.
returns a hollow cylinder mesh with unit dimensions. The cylinder mesh has 20 equally
spaced vertices around its circumference. The origin of the cylinder is located at its
geometric center. The height is aligned with the z-axis.mesh
= extendedObjectMesh('cylinder'
)
returns a cylinder mesh with mesh
= extendedObjectMesh('cylinder'
,n
)n
equally spaced vertices around its
circumference.
returns a sphere mesh with unit dimensions. The sphere mesh has 119 vertices and 180
faces. The origin of the sphere is located at its center.mesh
= extendedObjectMesh('sphere'
)
additionally allows you to specify the resolution, mesh
= extendedObjectMesh('sphere'
,n
)n
, of the
spherical mesh. The sphere mesh has (n
+
1)2 - 2 vertices and
2n
(n
- 1) faces.
returns a mesh from faces and vertices. mesh
= extendedObjectMesh(vertices
,faces
)vertices
and
faces
set the Vertices
and
Faces
properties respectively.
Properties
Object Functions
Use the object functions to develop new meshes.
applyTransform | Apply forward transformation to mesh vertices |
join | Join two object meshes |
rotate | Rotate mesh about coordinate axes |
scale | Scale mesh in each dimension |
scaleToFit | Auto-scale object mesh to match specified cuboid dimensions |
show | Display the mesh as a patch on the current axes |
translate | Translate mesh along coordinate axes |
Examples
Version History
Introduced in R2022a