Posable Mesh Export Bug?

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
quick61
Veteran
Posts: 3804
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Posable Mesh Export Bug?

Post by quick61 »

Noticed this when testing a new compile of POV-Ray today and further testing of default Mesh export (.stl).

It seems that Mesh export is no longer following the Shape view > Tessellation settings in Preferences. When I export a mesh, or render, regardless of tessellation settings, I get a mesh as seen here -
Default_Export_Mesh.png
Default_Export_Mesh.png (50.4 KiB) Viewed 2582 times
What is expected with my current tessellation settings, and what I have always gotten before is something along the lines of this -
Expected_Export_Mesh1.png
Expected_Export_Mesh1.png (83.89 KiB) Viewed 2582 times
From here, it looks like FreeCAD has developed a bug as of late.

Would like to know if anyone else is seeing this before I fill out a Mantas ticket.

Mark

OS: Kubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4644 (Git)
Branch: master
Hash: 4a5a4e9af2b9e4eb24a4b8a95058f32d5148a133
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Edit - Just built latest source and bug still there -

OS: Kubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4648 (Git)
Branch: master
Hash: 0063b8093768825ba954ec84cc9ebd19f766b50a
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Last edited by quick61 on Thu Mar 12, 2015 3:05 pm, edited 1 time in total.
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Posable Mesh Export Bug?

Post by shoogen »

DId you check if the actual Deviation set in the Objects ViewProvider properties matches the default value in the Application Properties?
ickby
Veteran
Posts: 3117
Joined: Wed Oct 05, 2011 7:36 am

Re: Posable Mesh Export Bug?

Post by ickby »

hm tha tlooks like the face deviation is worse and the curved edge deviation is much finer than before, strange! I just checked the update to the viewprovider I created lately, I don't see anything that could explain this behaviour
User avatar
quick61
Veteran
Posts: 3804
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Posable Mesh Export Bug?

Post by quick61 »

shoogen wrote:DId you check if the actual Deviation set in the Objects ViewProvider properties matches the default value in the Application Properties?
When you say Application Properties, you are asking about the setting is Preferences right? If so, then yes, both are the same. Aside from that, the max mesh deviation setting in Raytracing is set as low as it will go, 0.01, and I am still getting the rough mesh.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
quick61
Veteran
Posts: 3804
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Posable Mesh Export Bug?

Post by quick61 »

ickby wrote:hm tha tlooks like the face deviation is worse and the curved edge deviation is much finer than before, strange! I just checked the update to the viewprovider I created lately, I don't see anything that could explain this behaviour
Yes, I think that is it. I just bumped my tesselation to 0.5 and the faces look the same and the edges changed. So maybe the edges are OK and the faces are getting missed?

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Posable Mesh Export Bug?

Post by shoogen »

I can't reproduce the problem.
Deviation: 0,01
AngularDeflection: 23,5* (default in the master branch is 28.647° = 0.5 rad)
stl2.png
stl2.png (22.79 KiB) Viewed 2569 times
OS: Debian GNU/Linux 7.8 (wheezy)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4642 +341 (Git)
Branch: dev-ang-deflection,DeepSOIC/padfix
Hash: 76a21ef4236b192267f4e55cf812f5b0c5e45ef8
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 4.0.0a
OCC version: 6.8.1.dev-458c2c5

EDIT: As well with
OS: Debian GNU/Linux 7.8 (wheezy)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4649 +340 (Git)
Branch: dev-ang-deflection,dev-openscad,dev-proximity,DeepSOIC/padfix
Hash: ce303b74f69b5800b4008d7520183125858e177d
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 4.0.0a
OCC version: 6.8.1.dev-b12a3e5
User avatar
quick61
Veteran
Posts: 3804
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Posable Mesh Export Bug?

Post by quick61 »

Are you using the Mesh design Workbench or exporting. I get proper meshes with the Mesh design Workbench, but do not get them when directly exporting a solid in mesh format.

I can mesh and then export just fine, but direct export in mesh format is failing.

This is what i am doing to reproduce -

Create a Sphere in the Part Workbench.

Export Sphere as mesh with default tessellation setting - 0.5

Export Sphere as mesh with new tessellation setting - 0.01

Faces of exported mesh are the same.

Mark

Edit- issue #2002 I went ahead and filled out a ticket. If I have gotten something wrong, we can always dump it. :)
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: Posable Mesh Export Bug?

Post by shoogen »

After I edit the deviation, i trigger a (manual) recompute, since a ViewProvider setting does not seem to touch the object. I chose Mesh format ... in the export dialog.
Mark, please notice that I'm using a different version of OCCT. Especially It includes http://git.dev.opencascade.org/gitweb/? ... b7a1fac57f for spheres (which is not present in the 6.8.0 release from the 2014-11-10)
User avatar
quick61
Veteran
Posts: 3804
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Posable Mesh Export Bug?

Post by quick61 »

shoogen wrote:After I edit the deviation, i trigger a (manual) recompute, since a ViewProvider setting does not seem to touch the object. I chose Mesh format ... in the export dialog.
Mark, please notice that I'm using a different version of OCCT. Especially It includes http://git.dev.opencascade.org/gitweb/? ... b7a1fac57f for spheres (which is not present in the 6.8.0 release from the 2014-11-10)
Oh, I never thought to test that. :oops: This does look to be a problem with OCE. I just went back and exported with my 0.14.3705 build, and it works as expected. Damn, just when everything seemed to be going so well...

OS: Kubuntu 14.04.2 LTS
Word size: 64-bit
Version: 0.14.3705 (Git)
Branch: releases/FreeCAD-0-14
Hash: f25e6e4716fb63ef3ac618ce9e552761bbc1b4b1
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.1
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
DeepSOIC
Veteran
Posts: 7900
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Posable Mesh Export Bug?

Post by DeepSOIC »

Seems to work fine in:
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4628 (Git)
Branch: (detached from FC/master)
Hash: 21211aeff250dbcb12de2db80b4b83f2da1b8e9e
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1

Although, I have my global tessellation set to the default 0.5%, which is enough for almost flawless look of everything after recent change by ickby. I tested the export by typing 0.02 into Deviation property of cut result and, toggle visibility of the object for the changes to take effect, and exported the mesh. The mesh was all right (imported into Repetier Host).
Post Reply