Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • N ndcurves
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • loco-3d
  • ndcurves
  • Issues
  • #31

Require non const accessor to curves inside piecewise

I have several use cases where I have a piecewise curve and I need to replace one of the curve inside the piecewise with another curve (defined on the same time interval). This is not possible with the current API without creating another piecewise curve.

I see two way to do that : make the accessors curve_at_time and curve_at_index return non const reference or add new method to do that.

The first method is dangerous as the user could completely screw the time intervals of the curves (but this is the behaviour of my current code based on hpp_spline).

Which implementation do you prefer ?

Assignee
Assign to
Time tracking