Sketch mapping enhancement [merged to assemblyMergeMaster]

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Sketch mapping enhancement [merged to assemblyMergeMaster]

Post by DeepSOIC »

Hi.
I think I might begin working on new ways to map sketches to something.
The planned new mapping modes are:
* mapped but disabled (to enable pocketing with arbitrarily oriented sketches)
* mapped to a planar face (the way it is now)
* mapped to a tangent plane at a vertex (for curved faces)
* mapped to endpoint of edge (the edge is to serve as a normal to sketch plane)
* mapped to midpoint of edge ... or even arbitrarily specified portion of length of the edge

Please let me know what you think! Especially ideas on the user interface of this.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Plans for sketch mapping enhancement

Post by saso »

What are you smoking in Russia, your mind seems to be working in the N-th dimension?! :shock:

Don't take it bad, I am just joking, it sounds very interesting but I do wonder if this concepts are not too complex for a lot of users... Still, not a reason not to add it :)
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Plans for sketch mapping enhancement

Post by ian.rees »

DeepSOIC wrote: * mapped but disabled (to enable pocketing with arbitrarily oriented sketches)
Isn't it possible to do this now using boolean operations? I do think it would be nice to have Sketcher's "choose orientation" box support manually entering centre, +x, and +y vectors, rather than the current workflow which requires position and rotation around a vector to get the sketch oriented correctly.
DeepSOIC wrote: * mapped to a tangent plane at a vertex (for curved faces)
...
* mapped to midpoint of edge ... or even arbitrarily specified portion of length of the edge
For these two, how about this for UI:
* When a part is clicked, add a temporary datum at the last point that was clicked on a part - this could be on an arbitrary face, edge, vertex, etc. Maybe it could graphically look like a regular selected vertex.
* To create sketch mapped to that vertex/edge/face, user then clicks the "Create a new sketch" button as usual.
* If an edge or vertex was clicked, put the origin of the sketch on the temporary datum and make the sketch plane normal to the part's surface at the datum. Orient +x of sketch along an edge if it's there, or along axis of an extruded (not sure what the right word is...) surface. If it's not an extruded surface, +x goes towards +/-X of object space.

-Ian-
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Plans for sketch mapping enhancement

Post by NormandC »

Before going too far on this, you need to review jrheinlander's code in the jriegel/dev-assembly2 branch. That branch brings a lot of profound changes to the Sketcher and the Part Design workbench. jriegel has mentioned that for the Assembly workbench to come to fruition, big changes to the data model need to be made.

You can get an idea of what type of workflow to expect here: PartDesign Bearingholder Tutorial I

But that work is almost 2 year old now...
ickby
Veteran
Posts: 3116
Joined: Wed Oct 05, 2011 7:36 am

Re: Plans for sketch mapping enhancement

Post by ickby »

Before going too far on this, you need to review jrheinlander's code in the jriegel/dev-assembly2 branch. That branch brings a lot of profound changes to the Sketcher and the Part Design workbench.
I was about to write exactly the same, but honestly, the work on that branch is that slow that I'm about to change my mind. This upcoming changes (upcoming for multiple years already) severly limit part design evolution, and as there is no indication that it will not take multiple years again until it gets integrated we should go on developing one of the most used workbenches in freecad.
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Plans for sketch mapping enhancement

Post by cox »

Nice, can't wait to start testing... :D

I would love to read more about your plans and thoughts during development.
Need help? Feel free to ask, but please read the guidelines first
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Plans for sketch mapping enhancement

Post by r-frank »

DeepSOIC wrote: * mapped to a tangent plane at a vertex (for curved faces)
Hello DeepSOIC.

@Work I am using Solidworks 2014.
Speaking of the mathematical side, there are two possible Solutions for the plan.
If I would define such a plane (sketch) in Solidworks, Solidworks would show me one
of the possible Solutions (in most cases the undesired one :mrgreen: ) and then I would
have the possibility to tick a box to switch to the other possible solution (see screenshot).
[The tick-box labeled "Umkehren" does Switch the solution]

Maybe you could use the Planes created with the Work-Feature-Makro?

Roland
Attachments
SWX-Plane-Tangent.jpg
SWX-Plane-Tangent.jpg (355.47 KiB) Viewed 2478 times
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Plans for sketch mapping enhancement

Post by DeepSOIC »

Thanks for input - there's quite a lot :)
r-frank wrote:mapped to a tangent plane at a vertex (for curved faces)... .Speaking of the mathematical side, there are two possible Solutions for the plan.
I didn't get what the solutions are from your pic, but I can now imagine a situation where it can happen. I'm not sure now, how to deal with such a case.
NormandC wrote:Before going too far on this, you need to review jrheinlander's code in the jriegel/dev-assembly2 branch. That branch brings a lot of profound changes to the Sketcher and the Part Design workbench.
Got it, I have to take a look there.
ian.rees wrote:mapped but disabled (to enable pocketing with arbitrarily oriented sketches)Isn't it possible to do this now using boolean operations?
Yes, but you don't get links to external geometry in a completely detached sketch. But actually, I think it's better to simply enable links to everything, as I did for myself. In this case, pocketing is still a convenient way to apply a Boolean op, getting the job done in less clicks, and looking nicer in feature tree.
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Plans for sketch mapping enhancement

Post by r-frank »

DeepSOIC wrote:Thanks for input - there's quite a lot :)
r-frank wrote:mapped to a tangent plane at a vertex (for curved faces)... .Speaking of the mathematical side, there are two possible Solutions for the plan.
I didn't get what the solutions are from your pic, but I can now imagine a situation where it can happen. I'm not sure now, how to deal with such a case.
Have a look at the attachment.
I said:
> Define new plane perpendicular to existing pink plane and tangential to cylindrical face
> there are two Solutions (normal vector of new plane pointing either in positive or negative z-direction)
Attachments
SWX-Plane_Tangent-Dual_Solution.jpg
SWX-Plane_Tangent-Dual_Solution.jpg (105 KiB) Viewed 2437 times
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
jeno
Veteran
Posts: 1854
Joined: Sun Jun 29, 2014 10:41 am

Re: Plans for sketch mapping enhancement

Post by jeno »

Hello,

I would vote for mapping a sketch to the center line of a rotation-symmetric objekt. Would be helpful for the groove tool.
Thanks in advance
Post Reply