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
public Vector3[] Tessellate( int maxStages = 5, float toleranceDegrees = 4f )
[Missing <param name="maxStages"/> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]
[Missing <param name="toleranceDegrees"/> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]
[Missing <returns> documentation for "M:Godot.Curve3D.Tessellate(System.Int32,System.Single)"]