Click or drag to resize

SimpleMeshGeneratorGenerateTorus Method (Int32, Double, Int32, Degree, Double, Int32, Degree, Boolean, Vector3, Vector3, Vector4, Vector2, Int32, SimpleMeshGeneratorFace)

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void GenerateTorus(
	int axis,
	double radius,
	int segments,
	Degree circumference,
	double tubeRadius,
	int tubeSegments,
	Degree tubeCircumference,
	bool insideOut,
	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
segments
Type: SystemInt32
circumference
Type: NeoAxisDegree
tubeRadius
Type: SystemDouble
tubeSegments
Type: SystemInt32
tubeCircumference
Type: NeoAxisDegree
insideOut
Type: SystemBoolean
positions
Type: NeoAxisVector3
normals
Type: NeoAxisVector3
tangents
Type: NeoAxisVector4
texCoords
Type: NeoAxisVector2
indices
Type: SystemInt32
faces
Type: NeoAxisSimpleMeshGeneratorFace
See Also