Ticket #3987 - Draft Label feature doesn't carry out a straight arrow in 3D mode

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
GlouGlou
Posts: 1742
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Ticket #3987 - Draft Label feature doesn't carry out a straight arrow in 3D mode

Postby GlouGlou » Wed Mar 06, 2019 8:43 pm

Label from Draft workbench.
-Arrow isn't straight on the line.
-Circle still stuck at 1mm and extra circles are made.
:shock:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15860 (Git)
Build type: Release
Branch: master
Hash: 3b708c7f84b0425076b520e1d95627b20fd75fe0
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
Capture.PNG
Capture.PNG (43.9 KiB) Viewed 438 times
Last edited by Kunda1 on Mon Jun 17, 2019 6:32 am, edited 1 time in total.
Reason: Updated thread title to reflect created ticket number and name
kisolre
Posts: 1361
Joined: Wed Nov 21, 2018 1:13 pm

Re: What wrong with label

Postby kisolre » Wed Mar 06, 2019 8:54 pm

Could you post a file that exibits this behavior? Or steps to reproduce?
User avatar
GlouGlou
Posts: 1742
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Postby GlouGlou » Wed May 22, 2019 5:34 pm

Just make a label...

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16653 (Git)
Build type: Release
Branch: master
Hash: aaae82970461c10b76281f4e4454ab086b5f7f21
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
Capture1.JPG
Capture1.JPG (18.75 KiB) Viewed 364 times
User avatar
yorik
Site Admin
Posts: 11585
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: What wrong with label

Postby yorik » Thu May 23, 2019 4:20 pm

Everything seems normal for me... What steps did you follow exactly?
Screenshot from 2019-05-23 13-18-46.png
Screenshot from 2019-05-23 13-18-46.png (27.73 KiB) Viewed 319 times
User avatar
GlouGlou
Posts: 1742
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Postby GlouGlou » Thu May 23, 2019 5:34 pm

Have a look with my file. Please check label text, arrows and line width.
Attachments
label.FCStd
(5.83 KiB) Downloaded 9 times
chrisb
Posts: 19735
Joined: Tue Mar 17, 2015 9:14 am

Re: What wrong with label

Postby chrisb » Thu May 23, 2019 5:36 pm

I can see the issue opening your file, but if I create a new label it is ok here.

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16790 (Git)
Build type: Release
Branch: master
Hash: 15f440525e59c3caf89f847a490981abf5a45f8f
Python version: 3.7.3
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
kisolre
Posts: 1361
Joined: Wed Nov 21, 2018 1:13 pm

Re: What wrong with label

Postby kisolre » Thu May 23, 2019 5:47 pm

Code: Select all

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16687 (Git)
Build type: Release
Branch: master
Hash: ff1fb11af15a7c5f7f0ba3ef79588e128f397c2c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
Attachments
Labels.JPG
Labels.JPG (13.21 KiB) Viewed 279 times
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: What wrong with label

Postby quick61 » Thu May 23, 2019 6:56 pm

I am getting the error when the line is taken into 3D space. Keeping the label in 2 D space, everything looks correct, change the working plane to some angle and do something like -

Code: Select all

l = Draft.makeLabel(targetpoint=FreeCAD.Vector (0.0, 6.140144073823542, 10.0),direction='Vertical',distance=8.623526292565531,labeltype='Label',placement=FreeCAD.Placement(FreeCAD.Vector (-9.967470493654348, 13.36130042488455, -4.0628612702266),FreeCAD.Rotation(0.4358218936365907, -0.39338361463588356, -0.22007762128379885, 0.7790214691348933)))
- things start to get wonky, (I believe that's the technical tearm for it...)

Edit: Attached the file.
Arrow_on_working_plane.FCStd
(9.14 KiB) Downloaded 7 times
Mark

**build date 2019/05/22 22:17:47**

OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
This post made with 0.0% Micro$oft products - GOT LINUX?
chrisb
Posts: 19735
Joined: Tue Mar 17, 2015 9:14 am

Re: What wrong with label

Postby chrisb » Thu May 23, 2019 8:59 pm

Good find! I can confirm the wonky behaviour here on a skewed working plane.
User avatar
GlouGlou
Posts: 1742
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: What wrong with label

Postby GlouGlou » Fri May 24, 2019 4:13 pm

it should deserve a ticket, isn't it?