Create Face/Solid from wire

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Create Face/Solid from wire

Postby apeltauer » Sat Jan 05, 2019 7:48 pm

Hi all,

i am testing some projection stuff (see thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=33211)
During playing around i now have the problem that i cannot create a face and then a solid from a wire in space which is created during a projection on the surface.
Capture.PNG
Capture.PNG (42.42 KiB) Viewed 442 times
I know that is hard for the occ kernal to calculate a face that matches the human understanding, but does someone has a hint for me where to search or what could be done to make a valid face out of the wire?
Or maybe some hint for an existing function in a workbenches?

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)
Attachments
Make_Face.FCStd
(135.93 KiB) Downloaded 8 times
mrdic
Posts: 66
Joined: Wed May 10, 2017 4:25 am

Re: Create Face/Solid from wire

Postby mrdic » Sun Jan 06, 2019 2:35 am

If the wire of the letter is planar, you should be able to extrude it as a solid without a problem. You can extrude the receiving face as a solid, then intersect it with the extruded letter.
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Create Face/Solid from wire

Postby apeltauer » Sun Jan 06, 2019 4:57 pm

I tryed your suggestion. It works with the current letter, but if it comes to a set of letters, some letters are not sliced... :(

I also tried to create a face from the wire and the surface using the occ methods. But the resulting shape tells me that no curve is on the surface.

Does anyone know what that means and how it can be handled?

Br Manuel
User avatar
easyw-fc
Posts: 2626
Joined: Thu Jul 09, 2015 9:34 am

Re: Create Face/Solid from wire

Postby easyw-fc » Sun Jan 06, 2019 6:21 pm

I think you should have a look at Curves WB... it should help for Bspline and not planar surfaces

EDIT:
I managed to do something ahead, but still the Cut is not as desired.
Make_Face_CurvesWB.FCStd
(384.4 KiB) Downloaded 10 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Create Face/Solid from wire

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

Good hint, I will try that and come back...
User avatar
GlouGlou
Posts: 1581
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Create Face/Solid from wire

Postby GlouGlou » Sun Jan 06, 2019 8:56 pm

This is a fusion of 3 surfaces made with PipeShell of curvesWB. but not a solid here.
Im glad to see that PipeShell be able to extrude a 3D curve !
Attachments
Capture.PNG
Capture.PNG (27.18 KiB) Viewed 346 times
N.FCStd
(713.07 KiB) Downloaded 6 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Create Face/Solid from wire

Postby apeltauer » Mon Jan 07, 2019 9:57 am

Some update:

After converting all edges to bspline curves and then creating one closed bsline curve, i am able to create a face and then an extrude.
Capture.PNG
Capture.PNG (43.7 KiB) Viewed 313 times
New problem is now the boolean cut. See the pic.
Capture2.PNG
Capture2.PNG (29.52 KiB) Viewed 313 times
Nothing happens....
Does anyone has experience why the boolean operation does this?
Br Manuel
Attachments
Bended_Surface_4.FCStd
(304.95 KiB) Downloaded 6 times
jaisejames
Posts: 280
Joined: Sat Sep 24, 2016 6:51 am

Re: Create Face/Solid from wire

Postby jaisejames » Mon Jan 07, 2019 10:48 am

You can use 3d offset to generate both solids & cut accordingly. file size larger to attach
Attachments
cut.png
cut.png (33.79 KiB) Viewed 302 times
User avatar
easyw-fc
Posts: 2626
Joined: Thu Jul 09, 2015 9:34 am

Re: Create Face/Solid from wire

Postby easyw-fc » Mon Jan 07, 2019 11:10 am

jaisejames wrote:
Mon Jan 07, 2019 10:48 am
You can use 3d offset to generate both solids & cut accordingly. file size larger to attach
that is the way! Thx :)
Offset-Face.png
Offset-Face.png (128.5 KiB) Viewed 297 times
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Create Face/Solid from wire

Postby apeltauer » Tue Jan 08, 2019 5:14 pm

Hi all,
Many many thanks for all your help.
Right now I found a way to get a face from a wire and a underlying surface. This works if the the wire gets fixed and closed. Also all edges need the p-curves in parameteric space from the surface.
With this face I can create a extrude.

Still a problem is the Boolean cut. Sometimes it works with a extrude, sometimes not. Same with a 3D offset...

I will try to bring the function to a button in the GUI, so it is much easier to try a set of logos, text, etc...
Br Manuel