Search found 14809 matches

by wmayer
Thu Nov 14, 2019 10:25 pm
Forum: Install / Compile
Topic: Compilation failiure with FCMD_OBJ_CMD2
Replies: 3
Views: 84

Re: Compilation failiure with FCMD_OBJ_CMD2

But well, at least C++ is ISO-normed
But in this case a compiler extension is used and thus the code is not strict ISO C++ and that's why I used the -Wpedantic option to discover all this non-compliant code locations.
by wmayer
Thu Nov 14, 2019 6:51 pm
Forum: Install / Compile
Topic: Compilation failiure with FCMD_OBJ_CMD2
Replies: 3
Views: 84

Re: Compilation failiure with FCMD_OBJ_CMD2

Strange, on Linux I didn't get a build failure but the MSVC compiler struggles. So for now I have restored the old definition of the doCommand macro but left copyVisual unchanged. Actually the old definitions of these macros are not strict ISO C++11 and when building with the -Wpedantic option (whic...
by wmayer
Thu Nov 14, 2019 12:22 pm
Forum: Python scripting and macros
Topic: [Solved] Help firing AboutDialog::on_copyButton_clicked() wanted by n00b
Replies: 14
Views: 661

Re: [Solved] Help firing AboutDialog::on_copyButton_clicked() wanted by n00b

You may have to add the file QtOpenGL.py inside FreeCAD's Ext\PySide directory with the content:

Code: Select all

from PySide2.QtOpenGL import *
by wmayer
Wed Nov 13, 2019 6:14 pm
Forum: Python scripting and macros
Topic: Convert mesh to shape
Replies: 3
Views: 76

Re: Convert mesh to shape

The Shape class has the method removeSplitter() which does the refinement.
by wmayer
Wed Nov 13, 2019 2:24 pm
Forum: Forum in Deutsch
Topic: Verlust der Ursprungs-Positionen nach OBJ-Export
Replies: 6
Views: 153

Re: Verlust der Ursprungs-Positionen nach OBJ-Export

Beim Laden von STEP-Dateien können die Objekte ein gewisses Placement zugewiesen bekommen. Das ist eine Verschiebung und/oder Drehung, die auf das Shape-Objekt angewendet wird, sich aber in den darunter liegenden Geometrien nicht widerspiegelt. Im Gegensatz zu STEP oder IGES gibt es im OBJ-Format ke...
by wmayer
Wed Nov 13, 2019 9:54 am
Forum: UX/UI Design
Topic: FreeCAD 0.19 UI issue: Dropdown menu options without logo are misaligned (due to stylesheet issue)
Replies: 9
Views: 467

Re: FreeCAD 0.19 UI issue: Dropdown menu options without logo are misaligned (due to stylesheet issue)

Confirmed with: OS: Windows 7 SP 1 (6.1) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.18723 (Git) Build type: Release Branch: master Hash: d61bf15c42d1a88e0e09de2e3894e195c37c69cd Python version: 3.6.8 Qt version: 5.12.1 Coin version: 4.0.0a OCC version: 7.3.0 Locale: German/Ge...
by wmayer
Wed Nov 13, 2019 7:34 am
Forum: Install / Compile
Topic: Travis build failure
Replies: 49
Views: 4358

Re: Travis build failure

Does anybody have a clue why on Windows the FEM unit tests often fail and sometimes don't. Could this be a caching problem?
When looking at the build log you can see that it copies the Python files to the target location but it never builds the binaries from the C++ code.
by wmayer
Tue Nov 12, 2019 11:58 pm
Forum: Python scripting and macros
Topic: [SOLVED] Enumerating Property Types and Object Types before opening a Document?
Replies: 6
Views: 148

Re: [SOLVED] Enumerating Property Types and Object Types before opening a Document?

e1f85cd09 d61bf15c4 t=App.Base.TypeId t.getNumTypes() p=t.fromName("App::DocumentObject") p.Key print(p) p1=t.fromKey(97) p1.Name p.Name p.isDerivedFrom("Base::BaseClass") p.Module pp=p.getParent() pp.Name pp.isBad() b=t.getBadType() b.Name I know I can get the property Types from, for example a Bo...
by wmayer
Tue Nov 12, 2019 10:15 pm
Forum: Developers corner
Topic: [SOLVED-ISH] Advice wanted on designing a c++ class managed by python: Constraint (baseclass)
Replies: 19
Views: 281

Re: [SOLVED-ISH] Advice wanted on designing a c++ class managed by python: Constraint (baseclass)

I think modern compilers might give a warning, if you break the rule of three: https://en.wikipedia.org/wiki/Rule_of_t ... ogramming) It's a question of which warnings are enabled. On my Linux system when I build with clang with -Wall -Wextra -Wpedantic then these warnings are not reported. Edit: A...