Alexander has some interesting biarc code too:
http://code.google.com/p/openshapefactory/source/browse/SFMQTDLL/src/src/shapefactory.cpp

See this thread:
http://www.opencascade.org/org/forum/thread_20706/

-jelle


On Fri, Mar 16, 2012 at 4:48 AM, Dan Falck <dfa...@frontier.com> wrote:

> **
> I had a look on my desktop machine:
>
> look in the HeeksCAD project at HSpline::ToBiarcs in HSpline.cpp
>
> http://code.google.com/p/heekscad/source/browse/trunk/src/HSpline.cpp
>
> look around line 571
>
> Let us know what you come up with. I am interested in this one too, for
> CNC code generation.
>
> Dan
>
>
> On 03/15/2012 06:40 PM, Dave Cowden wrote:
>
> Thanks for the tip, I will look!
> On Mar 15, 2012 6:40 PM, "Dan Falck" <dfa...@frontier.com> wrote:
>
>> 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/S0010448599000196could 
>>> 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
>>
>>
> _______________________________________________
> Pythonocc-users mailing 
> listPythonocc-users@gna.orghttps://mail.gna.org/listinfo/pythonocc-users
>
>
>
> _______________________________________________
> 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

Reply via email to