Pomax / BezierInfo-2

The development repo for the Primer on Bézier curves, https://pomax.github.io/bezierinfo
https://pomax.github.io/bezierinfo
Other
2.31k stars 289 forks source link

How to generate new nurbs curve when move the control point of the start and end control point #248

Open friends110110 opened 4 years ago

friends110110 commented 4 years ago

In CAD software , I interpolate a nurbs curve , now I want to move the control point of the start and end point , it means move the control point of the start and end control point ? Then how to generate a new nurbs curfve after move the start and end point of the nurbs curve, could return interpolate points of the new nurbs curve.

Pomax commented 4 years ago

Not sure I understand, if you're using CAD software, it should either have NURBS built in or provided via a plugin, including the UI necessary to transform (groups of) coordinate(s). Which program are you using?

friends110110 commented 4 years ago

@Pomax , could your provide api or code to return the new curbs curve after move the control point of the start and end points ?

Pomax commented 4 years ago

better to use a dedicated NURBS library for the language you're working in, but I still don't understand: if you're using CAD software, this shouldn't be necessary: which software are you using?

friends110110 commented 4 years ago

@Pomax It has nothing to do with CAD, I just wanna deal with the nurbs curve ,move its control point of the start and end point , I wanna use the code(java、python、c++) to generate a new nurbs curve after move the control points. Could you provide example for me?

Pomax commented 4 years ago

That leaves the question of what you're doing, because if you don't care about the programming language, it sounds more like an academic exercise? What are you actually doing? Do you already have code? In which programming language? Because in "whatever programming language" really just means "so just pick one that has a library that does it for you". Why reinvent the wheel when others already made a better wheel.