 |
TubeModelNode(Vector3, Single, Single, Single, Int32, Material, String) Constructor |
Create an upright 3D tube with same inner and outer radius at both ends.
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.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntaxpublic TubeModelNode(
Vector3 bottomCenterPosition,
float outerRadius,
float innerRadius,
float height,
int segments,
Material material,
string? name = null
)
Parameters
- bottomCenterPosition Vector3
- Bottom center position of the tube.
- 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.
- material Material
- Mesh material.
- name String (Optional)
- Optional node name.
See Also