Click or drag to resize

SimpleMeshGeneratorGenerateCylinder Method (Int32, Double, Double, Int32, Boolean, Boolean, Boolean, Vector3, Vector3, Vector4, Vector2, Int32, SimpleMeshGeneratorFace)

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public static void GenerateCylinder(
	int axis,
	double radius,
	double height,
	int segments,
	bool needTop,
	bool needSide,
	bool needBottom,
	out Vector3[] positions,
	out Vector3[] normals,
	out Vector4[] tangents,
	out Vector2[] texCoords,
	out int[] indices,
	out SimpleMeshGeneratorFace[] faces
)

Parameters

axis
Type: SystemInt32
radius
Type: SystemDouble
height
Type: SystemDouble
segments
Type: SystemInt32
needTop
Type: SystemBoolean
needSide
Type: SystemBoolean
needBottom
Type: SystemBoolean
positions
Type: NeoAxisVector3
normals
Type: NeoAxisVector3
tangents
Type: NeoAxisVector4
texCoords
Type: NeoAxisVector2
indices
Type: SystemInt32
faces
Type: NeoAxisSimpleMeshGeneratorFace
See Also