Maniphest T66608

T66595: MeasureIt: Measuring areas do not respect the unit of the scene
Closed, Archived

Assigned To
Brendon Murphy (meta-androcto)
Authored By
Léon Driessen (Leonux)
Jul 9 2019, 3:11 PM
Tags
  • Add-ons (Community)
Subscribers
Ana (Nuski)
Brendon Murphy (meta-androcto)
Germano Cavalcante (mano-wii)
Luke (winhelp)
Léon Driessen (Leonux)
Sybren A. Stüvel (sybren)
Tomas (potatoorgylt)

Description

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: Quadro K5000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.33

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-09 12:03, hash: rBdb45aaafab8c
Worked: (optional)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

I did what was recomended:
"Please re-test with the latest daily build. If the problem still occurs, use the 'Report Bug' in the 'Help' menu to report the problem; that will automatically include the exact version of Blender you're using and some system information, which are essential for us to properly deal with your report."
Yes, it works fine for distances, but not for areas (see screenshot)

Event Timeline

Léon Driessen (Leonux) created this task.Jul 9 2019, 3:11 PM
Germano Cavalcante (mano-wii) added subscribers: Sybren A. Stüvel (sybren), Germano Cavalcante (mano-wii).Jul 9 2019, 4:09 PM

Investigated by @Sybren A. Stüvel (sybren) on T66595.

Jeroen Bakker (jbakker) renamed this task from T66595: MeasureIt-bug? => still there. to T66595: MeasureIt: Measuring areas do not respect the unit of the scene.Jul 9 2019, 4:41 PM
Jeroen Bakker (jbakker) added a project: Add-ons (Community).
Brecht Van Lommel (brecht) removed a project: BF Blender.Jul 9 2019, 6:50 PM
Brendon Murphy (meta-androcto) added subscribers: Ana (Nuski), Luke (winhelp).
Brendon Murphy (meta-androcto) changed the task status from Unknown Status to Archived.Jul 22 2019, 5:51 PM
Brendon Murphy (meta-androcto) claimed this task.
Brendon Murphy (meta-androcto) added a subscriber: Brendon Murphy (meta-androcto).

hi, measureit has it's own units system. You need to set it to automatic to use the blender built in units and then it works fine afaict. Closing as invalid.

Léon Driessen (Leonux) added a comment.Jul 22 2019, 9:23 PM

Hello Brendon,

I'm sorry but I don't agree with you that it work fine.
Here are two screenshots that show that when I set my blender units to 1.0000 (meters in my case), everything is displayed correct. But when I set the Blender units to 0.001 (millimeters), the distance is displayed ok, but the area is wrong (1000x bigger).

Best regards,
Léon Driessen

Brendon Murphy (meta-androcto) added a comment.Jul 23 2019, 5:11 AM

hi, doing the math on this and 4000.00mm = 4.00m?

Léon Driessen (Leonux) added a comment.Jul 23 2019, 7:48 AM

Sorry Brendon, but my math is fine. A square of 2 by 2 millimeters makes a surface of 4 mm2 and not 4000 mm2, does it? ;)

Tomas (potatoorgylt) added a subscriber: Tomas (potatoorgylt).Feb 20 2020, 9:48 PM

Hey Brendon! Still encountering this in Blender 2.81. Any time to expect a fix for this?

Tomas (potatoorgylt) added a comment.Feb 20 2020, 10:15 PM

I had this issue measuring Arcs, so for anyone encountering this, a quick and ugly fix would be to to go to: "....\Blender Foundation\Blender 2.81\2.81\scripts\addons\measureit"
Open the "measureit_geometry.py" and change lines "233" and "456"

Line 233 should look like this: arc_length *= scene.measureit_scale_factor/100
Line 455-456 should be this: tx_dist = ms.glarc_txradio + format_distance(fmt, units, dist * scene.measureit_scale_factor/100)

In my case I need centimeters over meters so I divided the line "233" and "456" by 100. Change to precision value you need.