|  | 
| MeshFactoryCreateTubeMesh(Vector3, Vector3, Single, Single, Single, Int32, String) Method | 
            Create a 3D tube mesh with same inner and outer radius at both ends, and direction given by the specified
            height direction vector.
            When height is zero, the resulting mesh is a flat 2D shape. When inner radius is zero, the mesh becomes
            a cylinder (generated as a lathe mesh).
            
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic static StandardMesh CreateTubeMesh(
	Vector3 bottomCenterPosition,
	Vector3 heightDirection,
	float outerRadius,
	float innerRadius,
	float height,
	int segments,
	string? name = null
)
Parameters
- bottomCenterPosition  Vector3
- Bottom center position of the tube.
- heightDirection  Vector3
- Height direction vector.
- outerRadius  Single
- Outer radius of the tube.
- innerRadius  Single
- Inner radius of the tube.
- height  Single
- Height of the tube.
- segments  Int32
- Number of segments comprising the tube's side surface.
- name  String  (Optional)
- Mesh name (for debug purposes).
Return Value
StandardMeshStandardMesh with filled vertices array and index array.
 See Also
See Also