Dave,
You might look in some the C++ code in the HeeksCNC project for inspiration.
Dan Heeks did a pretty good job with spline to arc conversion with OpenCascade.
Dan Falck
Sent from my HTC smartphone on the Now Network from Sprint!
----- Reply message -----
From: "Dave Cowden" <dave.cow...@gmail.com>
To: "pythonOCC users mailing list." <pythonocc-users@gna.org>
Subject: [Pythonocc-users] Decompose BSpline to arcs and lines?
Date: Thu, Mar 15, 2012 3:17 pm
Thanks for the pointer, Thomas!
On Thu, Mar 15, 2012 at 10:00 AM, Thomas Paviot <tpav...@gmail.com> wrote:
2012/3/14 Dave Cowden <dave.cow...@gmail.com>
Hi, all ( especially Jelle ):
I'm trying to solve a problem i just know someone else has solved: converting a
bspline into arcs and lines. ( Actually in my case i have a list of points,
through which I am interpolating a bspline-- so i could skip that step
actually. )
Anyway, I came across this OCC thread, which yielded several ideas but its not
clear there was a solution:
http://www.opencascade.org/org/forum/thread_20706/
I tried to fetch the URL Jelle Posted for hb-robotics-code on google, but the
link is dead.
Does anyone know if there s any pythonOCC code I can grab that will make
solving this problem easier? If not, I certainly think its worth adding to
pythonOCC.
Since my problem doesnt care about the intermediate bspline ( I have a list of
points ), then I may instead use something along the lines of one of these
algorithms:
http://miarn.sourceforge.net/pdf/a1738b.pdf
http://www.bmva.org/bmvc/1988/avc-88-040.pdf
which seems very fast. It is for arc detection, but of course what's left is
just lines.
Has anyone else had experience with this problem?thanks a lot!Dave
Hi Dave,
I'm not aware of any work related to BSpline to arc/lines decomposition using
pythonOCC. Maybe this reference
http://www.sciencedirect.com/science/article/pii/S0010448599000196 could also
help.
Regards,
Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users