extendedObjectMesh
扩展对象的网格表示
描述
这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 anuavplatform
用于模拟激光雷达传感器数据uavlidarpointcloudgenerator
。
创建
句法
描述
returns anmesh
= ExtendedObjectMesh('长方体'
)extendedObjectMesh
对象,定义具有单位尺寸的立方体。Cuboid的起源位于其几何中心。
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 thez-轴。mesh
= ExtendedObjectMesh('圆柱'
)
返回带有圆柱网的mesh
= ExtendedObjectMesh('圆柱'
,,,,n
)n
同样间隔的顶点周围。
返回带有单位尺寸的球体网格。球网具有119个顶点和180个面孔。球的起源位于其中心。mesh
= ExtendedObjectMesh('领域'
)
此外,您可以指定分辨率,mesh
= ExtendedObjectMesh('领域'
,,,,n
)n
,,,,of the spherical mesh. The sphere mesh has (n
+ 1)2- 2 vertices and 2n
((n
- 1) faces.
从脸和顶点返回网格。mesh
= ExtendedObjectMesh(顶点
,,,,面孔
)顶点
and面孔
设置顶点
and面孔
属性分别。
特性
对象功能
使用对象函数开发新的网格。
翻译 |
沿坐标轴翻译网格 |
旋转 |
旋转围绕坐标轴的网格 |
scale |
在每个维度中缩放网格 |
applyTransform |
将正向转换应用于网格顶点 |
加入 |
Join two object meshes |
scaletofit |
自动尺度对象网格匹配指定的长方体尺寸 |
节目 |
在当前轴上显示网格作为补丁 |