Getting parameters of a selected curve?

S1mon
S1mon Member Posts: 4,644 PRO
Am I missing something obvious? Is it possible to select an edge or curve and treat it as a BSplineCurve? I see the "CanBeBSplineCurve" typecheck, but I'm not sure how to get the control points from an entity if that's true. If I just created a curve with a custom feature, will I be able to extract the same control points that I used to create it in the first place?

I'm trying to do this because I want to create an approximate offset which is the same degree as the base bezier curve, using something similar to Tiller and Hanson's offsets.
https://math.stackexchange.com/questions/465782/control-points-of-offset-bezier-curve/467038

Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

Comments

  • lana
    lana Onshape Employees Posts: 782 image
    Hi @S1mon
    That part of bspline curve FS interface has not been completed. evCurveDefinition should be returning BSplineCurve when appropriate. And we need some sort of conversion evaluator. It is on TODO list.
  • S1mon
    S1mon Member Posts: 4,644 PRO
    @lana
    Any updates on getting control points from a selected curve?

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • lana
    lana Onshape Employees Posts: 782 image
    @S1mon
    Sorry - not yet.