Skip to content

'curvePath.closePath()' always uses LineCurve to close the curve #26849

Closed
@GuoBinyong

Description

Description

For curvePath, a Vector3 curve, when the 'curvePath.closePath()' method is called, the points returned by 'curvePath.getPoints()' contain points of type Vector2

Reproduction steps

  1. Create a Vector3 CurvePath
  2. Call the closePath method
  3. Get points curvePath.getPoints()
  4. Look at the last two points

Code

const curvePath  = new CurvePath<Vector3>();
curvePath.add(curve);
curvePath.closePath();
curvePath.getPoints();

Live example

Screenshots

No response

Version

r156

Device

No response

Browser

No response

OS

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions