Search found 47 matches

Go to advanced search

by marktaff
Wed Oct 08, 2014 5:51 am
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

After a lot of blood, sweat, and tears, here is my implementation of the DrawSketchHandlerEllipse class (src/Mod/Sketcher/Gui/CommandCreateGeo.cpp), with supporting bits from Abdullah's code. This implementation has several things going for it: --drawing an ellipse should look like you are drawing a...
by marktaff
Fri Oct 03, 2014 4:21 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

Thank you for your two very responsive replies abdullah--they will be quite helpful, I think. I'll dig into it after some coffee when my brain finally wakes up. :-) Cheers. ETA: Thanks Abdullah, this got me past the crash! I was missing several bits. One bug and some cleanups, and my handler impleme...
by marktaff
Thu Oct 02, 2014 11:28 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

The first vector is a vector defining the direction of the major axis and having as modulus the major axis length. The second vector is a vector defining the direction of the minor axis and having as modulus the minor axis length. You will get an exception if they are not perpendicular each other. ...
by marktaff
Wed Oct 01, 2014 10:36 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

3) the ellipses are VERY polygonal when you close sketch edit mode se the screen shot the major axis of the measured ellipse is 113mm to give you some idea of the scale. I have a fix for that. Just working on saving my stuff in Gui::Command::doCommand(Gui::Command::Doc, "App.ActiveDocument.%s.addGe...
by marktaff
Wed Oct 01, 2014 5:31 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

Hi everyone You make it hard to follow when you "quote" without the user name. if you have opened a posting windows, then just highlight the text you want to quote and click on the "quote" button associated with the post you are quoting...then you will get a quote with the user name automatically i...
by marktaff
Tue Sep 30, 2014 7:40 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

The current sketcher code did not anticipate more complicated elements than lines, circle and circle arcs. With three points per element those elements can be coded, but the ellipse or at least the elliptic arc needs tricks to be integrated into this framework. The minimum requirement for an ellipt...
by marktaff
Tue Sep 23, 2014 5:34 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

I have written an error function in perifocal coordinates for point-on-object constraint. The error function is very simple - it is just an ellipse equation with all terms thrown into the right side (i.e. equality is substituted by subthaction). It is fine for ellipse and parabola, but it is an epi...
by marktaff
Mon Sep 22, 2014 11:25 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

Thank you so much Mark! I am now on the correct branch.
by marktaff
Mon Sep 22, 2014 10:52 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

Have a look here: http://forum.freecadweb.org/viewtopic.php?f=10&t=7520&start=40#p61810 git clone URL your_directory should do the job. Ulrich That did not have the expected results; I must be doing something wrong or misunderstanding something. I currently have the main master in /home/mark/freeca...
by marktaff
Mon Sep 22, 2014 8:36 pm
Forum: Developers corner
Topic: Sketcher: Ellipse support
Replies: 713
Views: 93079

Re: Sketcher: Ellipse support

I have my dev env set up, and all the basics work (editing code, building, running, pulling from master, diffing local, dox built, etc). So, now I'd like to delve into the current ellipse code to familiarize myself with the work-to-date. I'm a subversion guy, and am a newb at git, so please bear wit...

Go to advanced search