Search found 14806 matches

Go to advanced search

by wmayer
Wed Nov 13, 2019 6:14 pm
Forum: Python scripting and macros
Topic: Convert mesh to shape
Replies: 3
Views: 49

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: 4
Views: 100

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: 440

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: 4276

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: 136

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: 245

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...
by wmayer
Tue Nov 12, 2019 2:56 pm
Forum: Developers corner
Topic: [SOLVED-ISH] Advice wanted on designing a c++ class managed by python: Constraint (baseclass)
Replies: 19
Views: 245

Re: Advice wanted on designing a c++ class managed by python: Constraint (baseclass)

unless you have to copy other data members except of the PyObject pointer. but that's exactly what I WANT to do. - copy everything **except** PyObject pointer EDIT: oh, wait... your suggestions seems worthy! Well, maybe it was explained a bit too circumstantially. In the assignment operator you sho...
by wmayer
Tue Nov 12, 2019 2:41 pm
Forum: Developers corner
Topic: [SOLVED-ISH] Advice wanted on designing a c++ class managed by python: Constraint (baseclass)
Replies: 19
Views: 245

Re: Advice wanted on designing a c++ class managed by python: Constraint (baseclass)

Therein lies another PITA: \src\Base\BaseClass.h:127: warning: definition of implicit copy assignment operator for 'BaseClass' is deprecated because it has a user-declared destructor I guess it's the code analyzer of QtCreator that complains about it, right? A few months ago I tried to change a few...
by wmayer
Tue Nov 12, 2019 2:28 pm
Forum: Developers corner
Topic: [SOLVED-ISH] Advice wanted on designing a c++ class managed by python: Constraint (baseclass)
Replies: 19
Views: 245

Re: Advice wanted on designing a c++ class managed by python: Constraint (baseclass)

The tricky part is copy(), particularly the desire to not have to implement it for every single subclass, as every one will have ParameterRef data members that I will have to list manually in the copy(). The savior seems to be the default assignment operator, which I could use from copy() to do all...

Go to advanced search