Intersection of two Surfaces

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect 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

Re: Intersection of two Surfaces

Post by DeepSOIC »

microelly2 wrote:there is a enter key and a return key,
you pressed the return key ( e.key()== QtCore.Qt.Key_Return
do you have a enter key (e.key()== QtCore.Qt.Key_Enter
return... enter.. never knew there might be a difference. My keyboard has a key that says "Enter", which is the one I pressed. No return key. Was it supposed to be the enter key on the numpad section of keyboard? (if yes, I don't have numpad, my laptop is rather small...)
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Intersection of two Surfaces

Post by DeepSOIC »

What I expected it to do is to draw with pen naturally. That is equivalent to how one can draw in paint: press LMB, drag mouse, produce ugly curve... except with the pen, the curve is much nicer.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Intersection of two Surfaces

Post by microelly2 »

Yes, I implement an other interface.
I work with the mouse in the left hand and my right fingers are on the numpad , so I'm focused on make this way fast for me.
but it's not a problem to use mouse clicks or left sided keys.
I will look what I can do this afternoon.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Intersection of two Surfaces

Post by microelly2 »

Now the left mouse button pressed paints.
in this case there are many points recorded, so it's hard to post edit the curve by hand.
https://youtu.be/bPLX3pwUoss
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Intersection of two Surfaces

Post by DeepSOIC »

Thanks, I'll give it a try later today if I don't forget.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Intersection of two Surfaces

Post by microelly2 »

I see a lot of opportunities
bp_431.png
bp_431.png (141.29 KiB) Viewed 1410 times
I draw the curves on both sides of the shoe and loft them

sometime the loft solid is corrupt, but some time it works already.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Intersection of two Surfaces

Post by DeepSOIC »

Yes, now it works, thanks! I can even imprint the curves into the surface with Part Slice.
How do I close the curve? And what does the dial do?
Also it's incompatible with gesture navigation, but there's probably nothing you can do about it.
And the b-spline does indeed have ridiculous knot count, it takes a while to extrude.
Also, I wasn't able to split a face in two. I get small gaps between drawn curve and face edge. Maybe you could extend the surface somehow during draw process?
Attachments
drawing-on-cylinder-microelly.png
drawing-on-cylinder-microelly.png (388.78 KiB) Viewed 1402 times
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Intersection of two Surfaces

Post by microelly2 »

When we draw with the mouse button then a lot of points are recorded.
A simplifiying step is needed.
I did some work for this problem
http://freecadbuch.de/doku.php?id=blog:points_to_spline
and will adapt it to the facedrawer next days.

next days more elements are added to the dialog,
the dialer ist still a placeholder.

the current version closes the curve by default but a method to draw from one edge to the other will come too.
a new tool and a lot of new questions.

thank you for testing it.
Post Reply