Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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?
S1mon
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
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
1
Comments
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.
Any updates on getting control points from a selected curve?
Sorry - not yet.