Re: [Pythonocc-users] Decompose BSpline to arcs and lines?

2012-03-16 Thread jelle feringa
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 wrote: > ** > I had a look on my deskt

Re: [Pythonocc-users] Decompose BSpline to arcs and lines?

2012-03-16 Thread Dave Cowden
Hey yeah thanks I had found my way there too. The code flow was a bit strange, where it tries to fit a curve once, then if it can't adds a line and tried again. I didn't really understand it completely, but its definitely the best starting point I've found so far On Mar 15, 2012 11:48 PM, "Dan

Re: [Pythonocc-users] Decompose BSpline to arcs and lines?

2012-03-16 Thread jelle feringa
> > Hey yeah thanks I had found my way there too. The code flow was a bit > strange, where it tries to fit a curve once, then if it can't adds a line > and tried again. > Not such a bad idea to build it recursively; Gauss Seidel states that every curve can be described by a finite number of arcs, s

[Pythonocc-users] PythonOCC for interference checking?

2012-03-16 Thread Stephen Waterbury
Has anyone used PythonOCC to do interference checking? That is, to see if solids in an assembly "overlap", or have some area(s) where one shape "collides" or takes up part of another shape's space? Can PythonOCC be used for this? Thanks! Steve ___ Pyt

Re: [Pythonocc-users] PythonOCC for interference checking?

2012-03-16 Thread jelle feringa
hi Stephen! Sure, first loop through the bounding boxes, see if these intersect [ course solid-solid intersection ] than use something like GeomAPI_IntSS [ intersect surface surface ] or BRepClass3d_Intersector3d [ intersect with a ray ] to further narrow things down. Take care, -jelle On Fri,

Re: [Pythonocc-users] Decompose BSpline to arcs and lines?

2012-03-16 Thread Cowdens
thanks a lot, Jelle! I saw the thread on the forum, where you promised to post the code you did. i actually found a link in google for your code for hb-robot, back from when it was in svn, then i followed it to your git repo but it was not there ;) all that work you'd think itd be easier to write t

Re: [Pythonocc-users] PythonOCC for interference checking?

2012-03-16 Thread Stephen Waterbury
Hi Jelle, Thanks for the quick response! The question was asked by a person who saw your PythonOCC presentation from PDE 2011 -- interesting that it is still being read ... ;) I have forwarded your response to that person, and encouraged them to join the pythonocc list. Cheers, Steve On 03/16