diff options
author | Yaohua Xiong <xiongyaohua@gmail.com> | 2022-11-27 10:23:27 +0800 |
---|---|---|
committer | Yaohua Xiong <xiongyaohua@gmail.com> | 2022-12-03 17:01:03 +0800 |
commit | 69f84563a33af5f0930cc97c1a4978fa6211b5aa (patch) | |
tree | 48b681341e19e19d3109f4dcbc528a59924d107d /doc/classes | |
parent | 30800d20f452015c054dc7d1d7cfd38362fe28ff (diff) |
Fix Curve3D::get_closest_point() broken
The problem is caused by calling adaptive tessellation baking function by mistake, which produce too few points for straight lines. Calling the even length tessellation fix the problem.
The code for `get_closest_point()` and `get_closest_offset()` are also updated. They used to assume bake interval to be exact, which is no longer true.
The out dated document for `get_closest_point()` is also updated.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Curve3D.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Curve3D.xml b/doc/classes/Curve3D.xml index 67e4e45e52..851996131f 100644 --- a/doc/classes/Curve3D.xml +++ b/doc/classes/Curve3D.xml @@ -64,7 +64,7 @@ <return type="Vector3" /> <param index="0" name="to_point" type="Vector3" /> <description> - Returns the closest baked point (in curve's local space) to [param to_point]. + Returns the closest point on baked segments (in curve's local space) to [param to_point]. [param to_point] must be in this curve's local space. </description> </method> |