Search found 124 matches
- Sun May 22, 2022 2:18 pm
- Forum: Developers corner
- Topic: Python access impact on C++ refactoring
- Replies: 5
- Views: 1118
Re: Python access impact on C++ refactoring
In the C++ code that conform the Python interface (usually generated by parsing .xml files), FreeCAD C++ objects are accessed via a pointer. So if you don't change the name of these classes or the signature of the members, it shouldn't affect the Python interface. Of course, in any case, you should ...
- Sat May 07, 2022 1:31 pm
- Forum: Draft, Arch & BIM
- Topic: Running the Python command 'Draft_Move' failed
- Replies: 6
- Views: 2185
Re: Running the Python command 'Draft_Move' failed
There is an incompatibility between your current version of Pivy and Python 3.10.
The same as here: https://forum.freecadweb.org/viewtopic.php?f=3&t=67542
The same as here: https://forum.freecadweb.org/viewtopic.php?f=3&t=67542
- Sun Apr 17, 2022 12:39 am
- Forum: Developers corner
- Topic: Issue #6752 - DeprecationWarning: distutils package is deprecated and slated for removal in Python 3.12
- Replies: 7
- Views: 7020
Re: Issue #6752 - DeprecationWarning: distutils package is deprecated and slated for removal in Python 3.12
I think is better to keep the deprecated distutils module in some places since for Debian-based systems replacement modules for distutils have some bugs: for example, in Debian, for Python 3.9: python3.9 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True...
- Thu Apr 14, 2022 5:19 pm
- Forum: Developers corner
- Topic: Issue #6752 - DeprecationWarning: distutils package is deprecated and slated for removal in Python 3.12
- Replies: 7
- Views: 7020
- Tue Mar 29, 2022 5:45 pm
- Forum: Help on using FreeCAD
- Topic: Bug - Scale image plane
- Replies: 7
- Views: 1704
Re: Bug - Scale image plane
Coin is the graphics library used by FreeCAD. Pivy is an interface to use Coin from Python.
On Ubuntu, the file required by cmake is provided by the libcoin-dev package.
On Ubuntu, the file required by cmake is provided by the libcoin-dev package.
- Tue Mar 29, 2022 1:15 am
- Forum: Help on using FreeCAD
- Topic: Bug - Scale image plane
- Replies: 7
- Views: 1704
Re: Bug - Scale image plane
The problem is caused by an incompatibility between your current version of Pivy and Python 3.10.
If Ubuntu doesn't provide a supported version at the moment, you can build Pivy yourself from here: https://github.com/coin3d/pivy
If Ubuntu doesn't provide a supported version at the moment, you can build Pivy yourself from here: https://github.com/coin3d/pivy
- Wed Mar 16, 2022 3:10 pm
- Forum: Developers corner
- Topic: Question about PartGui::ViewProviderPartExt class
- Replies: 4
- Views: 925
Re: Question about PartGui::ViewProviderPartExt class
I agree on the points related to potential bugs and that for arbitrary shapes it is very difficult to know the number of faces in advance. But, for example, you can run the following macro to copy the Shape property and DiffuseColor property from an arbitrary object to a Part::FeaturePython object: ...
- Tue Mar 15, 2022 9:32 pm
- Forum: Developers corner
- Topic: Question about PartGui::ViewProviderPartExt class
- Replies: 4
- Views: 925
Question about PartGui::ViewProviderPartExt class
The question is specifically about the setHighlightedFaces and setHighlightedEdges functions. When an object is added (for example obj = App.ActiveDocument.addObject("Part::Box") ) the fields faceset->partIndex and lineset->coordIndex have zero elements (since obj.Shape is still null). The...
- Thu Mar 10, 2022 3:14 am
- Forum: Developers corner
- Topic: [fixed] [regression] [crash] Edit points forces FC to crash
- Replies: 8
- Views: 1732
Re: Edit points forces FC to crash
Confirmed. The regression is generated with these changes: https://github.com/FreeCAD/FreeCAD/pull/3535 . OS: Arch Linux (XFCE/xfce) Word size of FreeCAD: 64-bit Version: 0.20.27995 (Git) Build type: Release Branch: gui-view_provider Hash: b9028eb8a9552507c1b7b8548e16d35803ffbd9c Python 3.10.2, Qt 5...
- Sun Feb 27, 2022 2:29 pm
- Forum: Developers corner
- Topic: Ticket #6488 - Cone surface returns wrong dv derivative
- Replies: 13
- Views: 3619
Re: Cone surface returns wrong dv derivative ?
There is a bug in the Open Cascade function ElSLib::ConeDN. On the v partial derivative, only the normal component to the cone axis is computed. Should be added the component of the partial derivative along the axis to get the vector tangent to the surface. gp_Vec ElSLib::ConeDN (const Standard_Real...