Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Getting parameters of a selected curve?

S1monS1mon Member Posts: 2,983 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

Comments

  • lanalana Onshape Employees Posts: 706
    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.
  • S1monS1mon Member Posts: 2,983 PRO
    @lana
    Any updates on getting control points from a selected curve?
  • lanalana Onshape Employees Posts: 706
    @S1mon
    Sorry - not yet.
Sign In or Register to comment.