Commit Graph

1037 Commits

Author SHA1 Message Date
wmayer
56ff88ea46 cleanup experimental code, improve whitespaces 2017-02-12 14:41:55 +01:00
wmayer
968a597aa7 get VBO support for SoBrepFaceSet working on Windows 2017-02-12 14:41:55 +01:00
Jean-Marie Verdun
8383f7222f Accelerate 3D rendering with VBO support
*First step to move Part rendering using VBO instead of direct rendering
*Update comments inside the code
*Assume VBO is available if OpenGL > 3.0 is detected
*Add initial Color support to VBO rendering !
*Initial full feature VBO rendering implementation
*Modify some include issue for linux build
*Try to fix linux include header
*Reupdate header include for linux support
*Fix compilation on linux
*Fix linux and MacoOS build
*Fix glGetString definition
*Fix Windows build
*Add VBO support as an option into the Preference menu
*Fix crash while running FreeCAD test bench with new VBO rendering infrastructure (in both cases)
*Improve performances
*Compute material index only when a VBO update is required (improve frame rate by 10%)
*Clean the code
*Fix Travis compilation warning
*Try to fix Windows compilation issue
*Update include for Windows
2017-02-12 14:41:55 +01:00
Yorik van Havre
d7ed8c4383 Part: Set per-face transparency in boolean ops - fixes #1029,#2806 2017-02-10 21:53:57 -02:00
wmayer
81c3bc6ef5 make new Part.Line behaviour the default 2017-02-09 21:47:25 +01:00
Alexander Gryson
64b36a2801 Update Metadata 2017-02-07 10:50:00 -02:00
Alexander Gryson
5965f48867 Align Part workbench icons to guidelines 2017-02-07 10:50:00 -02:00
wmayer
6b0a0ff9c7 issue #0001935 2017-02-05 19:00:45 +01:00
wwmayer
c014fe17d8 Merge pull request #460 from realthunder/PathArea
Added Path.Area and Path::FeatureArea
2017-02-04 11:36:21 +01:00
wmayer
1afa150585 raise error if parameters of ellipse are invalid 2017-02-02 15:52:28 +01:00
Zheng, Lei
79a261e868 Merge remote-tracking branch 'upstream/master' into PathArea 2017-01-26 15:47:26 +08:00
wmayer
0955ccf594 fix whitespaces 2017-01-20 19:22:50 +01:00
wmayer
7a3c8d0a81 make indexes of GeomBSplineCurve consistent to OCC API 2017-01-20 18:49:59 +01:00
wmayer
5dab557dfd in geometry classes raise RuntimeError instead of basic exception type 2017-01-20 18:09:02 +01:00
wwmayer
ad2940888b Merge pull request #447 from abdullahtahiriyo/bspline_2017
Bspline 2017
2017-01-20 17:34:01 +01:00
wmayer
eeb7dd458a spend own type for Python wrappers of FeaturePrimitive and BodyBase 2017-01-20 15:42:50 +01:00
wmayer
ac7750fab6 issue #0002867: AttachExtension crash 2017-01-20 13:17:11 +01:00
Zheng, Lei
2c249e8356 Part: fixed missing export declare of sort_Edges 2017-01-20 18:30:56 +08:00
Zheng, Lei
eb0f89f477 Part: exported Part::sort_Edges
Fixed export of Part::shape2pyshape
2017-01-20 17:46:47 +08:00
Zheng, Lei
4a0e037893 Part: export Part::shape2pyshape 2017-01-19 23:05:30 +08:00
abdullahtahiriyo
3f0c9d7bc3 Merge branch 'master' into bspline_2017 2017-01-18 22:48:27 +01:00
looooo
42331bde1b python3: neutral fixes 2017-01-14 19:22:15 +01:00
Abdullah Tahiri
1076b70056 Part: BSpline creation method corrected as per Werner's indication
==================================================================

http://forum.freecadweb.org/viewtopic.php?f=10&t=19700
2017-01-12 22:44:07 +01:00
Abdullah Tahiri
609c80b71a Part: Fixes triggered by Werner's comments on my branch 2017-01-10 20:05:18 +01:00
Abdullah Tahiri
e7dacb9178 Part: Bezier serialization support extension to periodic
=======================================================

Extension for periodic + suggestions by Werner.
2017-01-10 14:44:43 +01:00
wwmayer
5d817c7a28 Merge pull request #426 from brawaga/patch-2
Update Part_ru.ts
2017-01-09 10:08:59 +01:00
wwmayer
5a370d6a78 Merge pull request #421 from dev-at-stellardeath-org/master
Fix non-GUI usage in BOPTools
2017-01-08 18:48:14 +01:00
Abdullah Tahiri
61b685fd53 Part: BSpline serialization
===========================

It stores a rational BSpline even if non-rational.

It should be extended to store in addition whether it is periodic or not, i.e. to support periodic BSplines.
2017-01-08 00:42:30 +01:00
brawaga
58844feaa1 Update Part_ru.ts
Added translations, corrected some existed for grammar, syntax or style.
2017-01-07 23:55:55 +08:00
Abdullah Tahiri
8ea8699d14 Part: Enable BSpline creation from poles 2017-01-07 02:00:12 +01:00
Lorenz Hüdepohl
b6cf0e2500 Fix non-GUI usage in BOPTools
Only define the translation related functions if the GUI is up
2017-01-06 18:25:56 +01:00
triplus
8ac67eae80 Update BOA common and section documentation 2017-01-05 20:11:18 +01:00
wmayer
96dc57c068 replace Qt keyword slots with Q_SLOTS 2017-01-05 14:27:19 +01:00
Abdullah Tahiri
b277620138 Part: GeomBSpline extension for basic BSPline Sketcher support
==============================================================

1) Basic set/get interface for poles, weights, knots and multiplicities

2) Introduction of GeomBoundedCurve class replicating OCC hierarchy. Why? To provide seamless start/end point interface for any bounded curve, i.e. Bezier, BSpline,

Note: The ArcOfConic start/end point interface relies on GeomTrimmedCurve, and introduces CCW/CW correcting code which relies on Axis. Axis are introduced in GeomConic and are
not part of GeomBounded.

Note 2: In the future, it may be thought to make GeomArcOfConic (the equivalent of GeomTrimmedCurve) deriving from GeomBoundedCurve, as to fully replicate OCC hierarchy. GeomBoundedCurve
defines the functions as virtual to allow seamless integration.
2017-01-05 11:58:33 +01:00
wwmayer
6dff7f1f1d Merge pull request #413 from realthunder/sortEdges
Add C++ implementation of Part.sortEdges
2017-01-04 17:12:10 +01:00
Stefan Tröger
b4a569e013 PartDesign: Change body viewprovider to group 2017-01-04 16:01:58 +01:00
Stefan Tröger
9a3b952fb9 PartDesign: Port body to be a origin group 2017-01-04 16:01:58 +01:00
Stefan Tröger
47ed29fffd Extensions: GeoFeatureGroup only for GeoFeature 2017-01-04 16:01:58 +01:00
wmayer
dfbd6aa237 cleanup work: overload methods instead of using new method names 2017-01-04 15:39:27 +01:00
triplus
43ad429734 Add Part BOA multiCut, multiCommon and multiSection methods 2017-01-04 14:06:12 +01:00
Zheng, Lei
e381b2332a Added Part.sortEdges
Unlike Part.__sortEdges__ which only return a list of connected edges,
and discard the rest. Part.sortEdges return a list of list of
connected edges, which includes all input edges.
2017-01-03 16:59:16 +08:00
wmayer
3114df352d in forward declaration replace class keyword when struct is expected
comment out unused parameters
2016-12-29 17:52:39 +01:00
Yorik van Havre
39491713f2 BOPTools: Fix to work without the GUI 2016-12-28 17:00:59 -02:00
wmayer
cbf717f317 fix whitespaces 2016-12-28 14:22:42 +01:00
wmayer
7496eeef18 move methods setXAxisDir/getXAxisDir to base class 2016-12-28 14:22:12 +01:00
wwmayer
309d46137e Merge pull request #401 from abdullahtahiriyo/parabola_2017
Parabola 2017
2016-12-28 13:48:13 +01:00
wmayer
f065f8eb53 if UnicodeUTF8 is not defined use a fallback implementation of translate() 2016-12-27 20:12:39 +01:00
Yorik van Havre
86b3463ee1 updated ts files 2016-12-26 12:36:24 -02:00
Abdullah Tahiri
f9eec60b1c Sketcher: Parabola fix loading from file 2016-12-24 22:15:41 +01:00
Abdullah Tahiri
82259f31da Part::Geometry: ArcOfParabola CCW emulation support/fix
=========================================================

Correction of the emulation so that arcs of parabola are always CCW.
2016-12-24 16:11:15 +01:00