Projection of wires (faces) on bended faces

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Projection of wires (faces) on bended faces

Postby apeltauer » Fri Jan 04, 2019 4:11 pm

Hi all,

i am playing around with the BRepProj_Projection which is include in OpenCascade to project wires / faces to an uneven surface/surfaces to achieve something link in the pics.
Capture.PNG
Capture.PNG (80.32 KiB) Viewed 413 times
Capture2.PNG
Capture2.PNG (15.22 KiB) Viewed 413 times
But after playing around i bit, i found some problems which i think are not too easy to handle.
The resulting wire is correct and good. Even on multiple faces. I tested it with a zig zag surface and the wire looks quite good.
Capture3.PNG
Capture3.PNG (46.12 KiB) Viewed 413 times
Capture4.PNG
Capture4.PNG (32.43 KiB) Viewed 413 times
But when it comes to do something with the wire it gets complicated. For example making a face out of it, to extrude it and make a boolean cut with the surface.

So my question is, is there anyone out there who has already played with this and has some experience how this can be handled? Or does anyone has already created a macro or an implementation for this?
I think this would be a nice new feature for FreeCad if it could project logos, texts or etc on an uneven surface. Just thinking for milling or 3d printing.....

What do you guys think about this?? Hope for some comments.....

BR Manuel

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15513 +1165 (Git)
Build type: Release
Branch: wb_apeltauer_integrate_3d_milling
Hash: 3918225ec0c1ebbb2dde10cd8c9f7693990fd1d9
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/Germany (en_DE)
chrisb
Posts: 18038
Joined: Tue Mar 17, 2015 9:14 am

Re: Projection of wires (faces) on bended faces

Postby chrisb » Fri Jan 04, 2019 5:46 pm

The second image looks already as if you have a solid? If you can upload a file containing sich a wire, and you tell us what you want to do, there migh come up some ideas.
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Projection of wires (faces) on bended faces

Postby apeltauer » Fri Jan 04, 2019 6:51 pm

The first and seconde picture is an cut which i made with the logo as a solid. By creating the solid i cheated a little bit to show how it should looks.
The "F" solid was not that difficult, but with the gear i had to create the face with the outer wire and then created a circle to cut the hole. That is why the circle is not in the middle of the gear.
If i try to make the same thing on the zig zag surface this does not work, because i can not make any face out of the wires.
Maybe someone can also try this??

In the attached FC file i have added mainly 3 Parts:
Fc Logo Done --> is the solid with the cheated cut :)
FC-Logo --> is the sketch from the svg i have imported
FC-Logo Wire Bended --> is the wire of the logo on the bended surface
FC-Logo Zig Zag --> is the wire of the logo on the zigzag surface
Capture.PNG
Capture.PNG (62.13 KiB) Viewed 384 times
Attachments
Bended_Surface.FCStd
(365.03 KiB) Downloaded 7 times
chrisb
Posts: 18038
Joined: Tue Mar 17, 2015 9:14 am

Re: Projection of wires (faces) on bended faces

Postby chrisb » Fri Jan 04, 2019 11:37 pm

I only managed to create a Loft, but it was not possible to make it solid.
Attachments
Bildschirmfoto 2019-01-05 um 00.35.55.png
Bildschirmfoto 2019-01-05 um 00.35.55.png (12.22 KiB) Viewed 367 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Projection of wires (faces) on bended faces

Postby apeltauer » Sat Jan 05, 2019 4:28 pm

I think the first step would be to concentrate on a single face.
I tried it with another logo, see the pic
Capture3.PNG
Capture3.PNG (72 KiB) Viewed 331 times
I think the result is quit good. (The file is now over 3mb, so i cannot upload the file here, but if some wants the file i can upload it somewhere)

After playing around with some other geometries i came across with a failed boolen cut. I was able to create a solid and extrude this, but when it comes to a cut i get the following.... a black surface and two cuts which are not in the solid

Before the cut
Capture.PNG
Capture.PNG (55.58 KiB) Viewed 331 times
After the cut
Capture2.PNG
Capture2.PNG (53.87 KiB) Viewed 331 times
Does anyone know what this means and how this can be fixed??
Br Manuel
Attachments
Bended_Surface_3.FCStd
(546.68 KiB) Downloaded 7 times
User avatar
GlouGlou
Posts: 1581
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Projection of wires (faces) on bended faces

Postby GlouGlou » Sun Jan 06, 2019 7:49 pm

Have a look inside my file, if It could help you.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15515 (Git)
Build type: Release
Branch: master
Hash: be5796b2d0d06adb69c81eece63df54b64965bd6
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Attachments
LogoFreecad.FCStd
(269.39 KiB) Downloaded 8 times
Capture.PNG
Capture.PNG (26.88 KiB) Viewed 273 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Projection of wires (faces) on bended faces

Postby apeltauer » Sun Jan 06, 2019 8:47 pm

Thanks for the file.
I will have a look at it tomorrow morning....
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Projection of wires (faces) on bended faces

Postby apeltauer » Mon Jan 07, 2019 10:04 am

@GlouGlou thanks for file.
I checked your file but my goal is to get a cut with the same heights on the surface.
See the pick, if we just make a linear extrude we get different heights. If we would make a 3d print this wouldn't look nice....
Capture.PNG
Capture.PNG (70.94 KiB) Viewed 235 times
Thanks for all your help so fare....
User avatar
GlouGlou
Posts: 1581
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Projection of wires (faces) on bended faces

Postby GlouGlou » Mon Jan 07, 2019 5:06 pm

And like this?
Attachments
LogoFreecad.FCStd
(451.76 KiB) Downloaded 9 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Projection of wires (faces) on bended faces

Postby apeltauer » Mon Jan 07, 2019 6:13 pm

Will try this tomorrow morning...
Thanks for the file...