dwire vs 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!
Post Reply
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

dwire vs wire

Post by cadgiru »

Is this a bug?

A dwire created on a plane other then XY, will still have its Normal in global Z direction.

Dropping the dwire to a wire, the resulting wire will have its Normal relative to the plane the dwire was created on.

Resulting in:

Extruding a dwire will always result in an extrusion in global Z direction.

Extruding a wire will extrude in a z-direction normal to plane formed by wire

Consistant repeatable behaviour in fc 0.17 / 0.18

Any ideas anyone?

regards
ikua
Posts: 159
Joined: Fri Apr 07, 2017 1:32 pm

Re: dwire vs wire

Post by ikua »

seems like a bug. if you make a rectangle it works. strange.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: dwire vs wire

Post by TheMarkster »

If you make a compound from the Part menu in the Part workbench using the dwire object, and then extrude the compound it will produce the expected results. Other operations that you can also try: Part -> refine and Part -> make simple copy.

You can also use a custom direction. One way to determine the custom direction if you are using a recent 0.18 developmental build is to use the Placement task dialog to create a normal axis, make note of it, and enter that same direction in the extrude dialog.

The way to do this is to select the dwire object, then open the placement dialog. Now, in the 3d view, select 3 points on that dwire object (presumes the dwire object is coplanar, if it isn't, then you need to ensure the 3 points you select will define a plane that is normal to the desired direction), then click the Selected points button. This creates a new axis of rotation that is normal to the plane defined by the 3 selected points. By applying a 0 degree rotation we don't actually move the dwire, but we get these direction values printed out in the python console, which we can then refer to from the extrude task dialog in order to use it as a custom direction.

phpBB [video]
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

Re: dwire vs wire

Post by cadgiru »

Can someone please explain the difference between a wire and a Dwire?
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: dwire vs wire

Post by Willem »

A wire is a single straight line and a dwire is a chain of lines, For :evil: Autocad users you can compare a dwire with a polyline
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: dwire vs wire

Post by UR_ »

2018-10-14 14_00_09-FreeCAD 0.18.png
2018-10-14 14_00_09-FreeCAD 0.18.png (5.2 KiB) Viewed 1621 times

The red one is a Dwire and the blue one is a wire. Looks pretty the same :)

This is the properties tab of the Dwire

2018-10-14 13_59_02-FreeCAD 0.18.png
2018-10-14 13_59_02-FreeCAD 0.18.png (18.45 KiB) Viewed 1621 times
:)


And that's the one of the wire

2018-10-14 13_58_47-FreeCAD 0.18.png
2018-10-14 13_58_47-FreeCAD 0.18.png (4.7 KiB) Viewed 1621 times
:(
cadgiru
Posts: 91
Joined: Thu Oct 27, 2016 9:53 am
Location: Norway
Contact:

Re: dwire vs wire

Post by cadgiru »

The differences I have found are:
Wire is not easily editable
Wire extrudes in a predictable way

dwire is easily editable
dwire does not extrude easily in a predictable way (if created on a plane other than XY)

Q) Why do we have the two entity types wire and dwire. Are they not basically the same?
Post Reply