Search found 1501 matches

Go to advanced search

by abdullah
Mon Mar 27, 2017 9:03 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

point selection is not cleared I took the decision not to clear the selection when executing the commands (so that you can continue changing multiplicity of the same knot). For increasing after increasing, it seems to be a good idea, but when it involves decreasing I have realised it does not work ...
by abdullah
Mon Mar 27, 2017 8:37 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

It would be good for real errors to raise an exception and let the calling instance (here the command) handle it. At the moment when returning false it sometimes means that the function fails due to wrong input parameters and sometimes to due a real problem. So, the calling instance cannot distingu...
by abdullah
Sat Mar 25, 2017 11:55 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

3. Review return types in functions (I have some boolean returning functions that should probably better off by returning nothing and raising an exception if something happens) I would appreciate a word of advice from somebody that understands how python commands, UI commands and DocumentObject met...
by abdullah
Sat Mar 25, 2017 10:38 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

No problem! Thank you for your understanding. After a lot of trials (all failures so far) to try to reproduce this issue outside FreeCAD, I have realised that it only happens (so far) in bsplines with 5 poles and 1 knot, and not in all of them. As it is not crashing FC (the exception is ultimately ...
by abdullah
Wed Mar 22, 2017 1:28 pm
Forum: Help on using FreeCAD
Topic: [bug#2682] -constraints with external geometry disapear after closing/opening the sketch
Replies: 29
Views: 1156

Re: [bug?] -constraints with external geometry disapear after closing/opening the sketch

jnxd wrote:
Summoning some people to shed some light on what to do
abdullah wrote:...

If necessary, we could move the talks to the development thread.


Sorry, I have been away. Glad you figured it out. :)
by abdullah
Sat Mar 18, 2017 9:49 pm
Forum: Users Showcase
Topic: KiCad and FreeCAD collaboration!
Replies: 12
Views: 1746

Re: KiCad and FreeCAD collaboration!

Hi Maurice! I am really happy that these communities are today a little bit closer than 1 year ago. I also think there is a lot of potential in connecting the two. BTW, the components look absolutely amazing. You should also check out my repo at https://github.com/realthunder/fcad_pcb. The original ...
by abdullah
Sat Mar 18, 2017 9:34 pm
Forum: Install / Compile
Topic: Ubuntu Daily Builds PPA now using OCC 7.1.0
Replies: 8
Views: 458

Re: Ubuntu Daily Builds PPA now using OCC 7.1.0

It is indeed great! Thanks a lot to all for investing your time in it.
by abdullah
Sat Mar 18, 2017 4:01 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

I wonder why you assume it happens in the Copy() method. When I run your example it already raises an exception in the spline constructor Geom_BSplineCurve. The relation between poles, degree and knots for a non-periodic spline is: #knots = #poles + degree + 1 In your example we have for knots=4+2+...
by abdullah
Fri Mar 17, 2017 8:09 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

I don't know what happens to the spline inside RemoveKnot. Maybe it gets corrupted somehow so that Copy raises an exception. the mybsp->Copy() crashes with terminate called after throwing an instance of 'Standard_ConstructionError' This actually is not a crash but a proper C++ exception. Since in t...
by abdullah
Fri Mar 17, 2017 6:43 pm
Forum: Developers corner
Topic: Sketcher: Bezier curves
Replies: 373
Views: 11316

Re: Sketcher: Bezier curves

Hi guys, I think I may have hit another OCC Bug, this time linking it against our brand new OCCT 7.0 library. #include <TColgp_Array1OfPnt.hxx> #include <TColStd_Array1OfReal.hxx> #include <TColStd_Array1OfInteger.hxx> #include <GeomLProp_CLProps.hxx> #include <Geom_BSplineCurve.hxx> #include <Preci...

Go to advanced search