Click or drag to resize

Curve3DTessellate Method

Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts.

This approximation makes straight segments between each point, then subdivides those segments until the resulting shape is similar enough.

max_stages controls how many subdivisions a curve segment may face before it is considered approximate enough. Each subdivision splits the segment in half, so the default 5 stages may mean up to 32 subdivisions per curve segment. Increase with care!

tolerance_degrees controls how many degrees the midpoint of a segment may deviate from the real curve, before the segment has to be subdivided.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3[] Tessellate(
	int maxStages = 5,
	float toleranceDegrees = 4f
)

Parameters

maxStages (Optional)
Type: SystemInt32

[Missing <param name="maxStages"/> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]

toleranceDegrees (Optional)
Type: SystemSingle

[Missing <param name="toleranceDegrees"/> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]

See Also