Commit Graph

45 Commits

Author SHA1 Message Date
Ladislav Michl
9683cf1e4f Base: rename Exception's PascalCase methods to camelCase 2025-05-05 23:50:01 +02:00
Kacper Donat
13fbab9e42 Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
mos
967dd8a8ed [MeshPart] clean
removed old commented code.

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

revert comments

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
2024-05-27 11:06:30 -05:00
howetuft
99364d313b Release GIL while meshing in MeshPart.meshFromShape
This commit releases the Global Interpreter Lock around mesher call and
should enable multithreading use when exporting large quantities of
objects (for instance for external rendering).
2024-02-13 11:15:52 +01:00
wmayer
01af14829a MeshPart: apply clang format 2023-09-02 11:30:04 +02:00
Chris Hennes
fdc4490b72 MeshPart: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
wmayer
da00501288 Mod: modernize C++: use equals default 2023-08-22 11:16:49 +02:00
Uwe
2669383c2a [MeshPart] remove unused includes
- also some sorting
2022-11-23 03:35:31 +01:00
luz paz
be783892bb MeshPart: remove trailing whitespace 2022-11-15 12:45:52 +01:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
wmayer
4c0b62555e MeshPart: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 10:34:51 +02:00
wmayer
936bc03959 Mesh: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 13:33:18 +02:00
wmayer
8c7213e847 MeshPart: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
cf8eaccc79 MeshPart: raise runtime error in meshFromShape() if smesh was built without netgen support 2022-01-26 11:56:23 +01:00
luzpaz
a77ccbd007 MeshPart: fix header uniformity + remove superfluous whitespace (#5135)
* MeshPart: fix header uniformity + remove superfluous whitespace
2021-11-06 00:15:00 +01:00
wmayer
2295c4b9a3 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
0e5cbf5298 Py2/Qt4: fix build failures and warnings 2020-11-30 19:05:37 +01:00
wmayer
2520569cc7 fixes #0004426: [skip ci] Patch to add MinLength and MaxLenght to the Netgen options in the Python API (provided by thomasFreeCAD) 2020-09-12 19:37:12 +02:00
luz.paz
56b618c8be Revised per feedback from review 2019-12-17 15:13:48 -03:00
luz.paz
cc97145e9d Fix various typos [skip ci]
Fixed via 
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2019-12-17 15:13:48 -03:00
wmayer
4e7c2a233f add method to get wires of mesh boundaries 2019-11-10 11:14:04 +01:00
wmayer
b14cf8a00d extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
wmayer
929210fd1d add method to project points on mesh 2019-06-26 16:57:14 +02:00
wmayer
88f91d621b determine edge parameters where curve point will be projected onto a mesh edge 2019-06-11 13:25:52 +02:00
wmayer
143a5ffe83 extend MeshPart.projectShapeOnMesh to allow list of points for projection, support keywords 2019-06-08 14:19:29 +02:00
wmayer
951f612022 add method to project shape on mesh 2019-05-14 15:21:08 +02:00
wmayer
9e2427684f add method to project shape on mesh 2019-05-12 22:56:23 +02:00
wmayer
f8728a008f fixes #0001906: add Parameters isRelative, theAngDeflection of BRepMesh_IncrementalMesh in MeshFromShape Gui command 2017-09-30 16:15:24 +02:00
Ian Rees
6be7148405 Improve Python docstrings in Part and MeshPart 2017-04-09 12:00:24 +12:00
looooo
f1fcefb228 py3: Mesh: fix py3 Long/Int problem with python2 2017-02-24 14:20:50 +01:00
wmayer
59fb7ec2cd py3: ported MeshPart to python3 2017-02-24 14:20:50 +01:00
wmayer
179c05a42f fix compiler warning 2016-10-31 21:31:35 +01:00
wmayer
7248683f11 create mesh segments by face colors 2016-09-07 19:20:33 +02:00
wmayer
f899847f5d add OCC standard meshing algorithm to Mesher class 2016-09-07 16:39:54 +02:00
Wolfgang E. Sanyer
d1d2f1f811 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
wmayer
afcdd66734 + simplify porting of MeshPart module to Python3 2016-01-20 22:38:45 +01:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Sebastian Hoogen
d49528b27e issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
af50cbf964 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
da0a11cff9 + Improve meshing algorithm 2013-11-07 11:17:18 +01:00
wmayer
af1e6fb1ec + Advanced options for different meshing algorithms 2013-11-07 02:16:33 +01:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00