Search found 20144 matches

by wmayer
Fri Apr 19, 2024 12:23 pm
Forum: Developers corner
Topic: Change color of an edge
Replies: 8
Views: 1386

Re: Change color of an edge

Here a Python example. This will work in C++, too:

Code: Select all

doc = App.newDocument()
box = doc.addObject("Part::Box", "Box")
doc.recompute()
view = box.ViewObject

line_color = [view.LineColor] * len(box.Shape.Edges)
line_color[5] = (1.0,0.0,0.0,0.0)
view.LineColorArray = line_color
by wmayer
Thu Apr 18, 2024 10:17 pm
Forum: Developers corner
Topic: FreeCAD build requires gtest (googletest), but the build system does not check for it
Replies: 11
Views: 664

Re: FreeCAD build requires gtest (googletest), but the build system does not check for it

It doesn't make much sense to let regular users run the tests for several reasons: The normal way to run the tests is to do that from within an IDE. The unit tests are independent executables that we do not deploy with our installers On Windows you can't even see the output of the test applications ...
by wmayer
Thu Apr 18, 2024 12:31 pm
Forum: Packaging
Topic: [WIP] OpenBSD Port
Replies: 58
Views: 31433

Re: [WIP] OpenBSD Port

The most relevant utilities are:

Code: Select all

@bin bin/lrelease
@bin bin/lupdate
@bin bin/rcc
@bin bin/uic
I don't think that any of the others are needed by FreeCAD.
by wmayer
Thu Apr 18, 2024 12:01 pm
Forum: Path/CAM
Topic: Error CAM Simulation
Replies: 5
Views: 355

Re: Error CAM Simulation

Syres wrote: Thu Apr 18, 2024 9:43 am I assume the fix has been created here: https://github.com/FreeCAD/FreeCAD/pull/13499/files
The provided PR doesn't work as expected.

For now the only way is to revert the made changes:
https://github.com/FreeCAD/FreeCAD/pull/13520
by wmayer
Thu Apr 18, 2024 8:57 am
Forum: UX/UI Design
Topic: Tabbar: whole toobar vanished when restart
Replies: 18
Views: 1374

Re: Tabbar: whole toobar vanished when restart

When i now install a addon and restart, the the log and sometimes the config get weird. There is a race condition. What can happen is that the new process has already started while the old process still writes the user config to disk. When the new process reads in the user config then it may be par...
by wmayer
Wed Apr 17, 2024 5:54 pm
Forum: Path/CAM
Topic: Error CAM Simulation
Replies: 5
Views: 355

Re: Error CAM Simulation

This line looks wrong to me:

Code: Select all

self.cutMaterial.ViewObject.ShapeAppearance.DiffuseColor = (1.0, 0.85, 0.45, 0.0)
It should be

Code: Select all

self.cutMaterial.ViewObject.DiffuseColor = (1.0, 0.85, 0.45, 0.0)
by wmayer
Tue Apr 16, 2024 9:31 pm
Forum: Forum in Deutsch
Topic: Neue CPU? Benötige mal einen Vergleich an einem STL-Modell
Replies: 44
Views: 1773

Re: Neue CPU? Benötige mal einen Vergleich an einem STL-Modell

user1234 wrote: Tue Apr 16, 2024 8:51 pm edit: nur zur Info, ich kann in auf github nicht schauen, was für ein Compiler verwendet wird, weil man für das log sich einloggen muss, was echt Mies ist.
CMake wrote: CC: arm64-apple-darwin20.0.0-clang
CXX: arm64-apple-darwin20.0.0-clang++
by wmayer
Tue Apr 16, 2024 5:59 pm
Forum: Help on using FreeCAD
Topic: (clarified) Unexpected colors in dev?
Replies: 39
Views: 2553

Re: Unexpected colors in dev?

chrisb wrote: Sun Apr 07, 2024 11:04 pm Here is one that annoys me on nearly every sketch (except the first):
With https://github.com/FreeCAD/FreeCAD/pull/13495 you will be able to set specular color to black.