Commit Graph

60 Commits

Author SHA1 Message Date
mosfet80+
cc96fcae66 [mod] removed unused variable
removed unused variable
2024-05-21 13:01:34 +02:00
mosfet80
dcc1c3c9e4 mod: clean ImportOCAF.cpp
clean  ImportOCAF.cpp
2024-05-20 11:44:08 -05:00
David Carter
ba20441935 Material: Material appearance
Uses new material system for appearance

Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.

The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.

A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
wmayer
e6bbc7f049 Part: use of ShapeMapHasher for code simplification 2024-02-12 12:02:17 -06:00
bgbsww
bd1fc0fc03 Add support for OCCT 7.8.0 (#11909) 2024-01-09 19:47:25 -06:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
af3a8d4224 Import: Apply clang format 2023-09-10 19:23:47 +02:00
wmayer
38a9082546 Import: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
da00501288 Mod: modernize C++: use equals default 2023-08-22 11:16:49 +02:00
wmayer
26ea9e4ea4 Import: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
wmayer
c770e1b677 Mod: catch exception raised by Rotation::setValue 2023-03-01 18:43:15 +01:00
Uwe
f340176f1c [Import] remove unused includes
- also some sorting
2022-11-25 04:34:44 +01:00
andrea
c66aadeb60 removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
84f5b40789 Import: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Zheng, Lei
3335da00ae Import: fix transparency STEP export/import
App::Color::a in FreeCAD is actually interpreted as transparency
instead of alpha.
2021-10-09 20:43:24 +08:00
Zheng, Lei
eaca6571ee Import: fix STEP color and add transparency in legacy importer/exporter 2021-10-07 18:08:00 +08:00
wmayer
45e0673645 LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
cf5f580f4e Import: [skip ci] degrade output in STEP importer to log messages 2020-05-28 17:52:01 +02:00
wmayer
6300e09dd8 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
Zheng, Lei
a460fdc8b6 Import: add new implementation of STEP importer/exporter
For better supporting Link and groups. The original implementation can
still be used by uncheck the STEP import setting 'Use Link Group'.
2019-08-17 15:15:47 +02:00
wmayer
ba96c0773a PVS: V688 A local variable possesses the same name as one of the class members, which can result in a confusion 2019-03-13 11:58:43 +01:00
wmayer
58fed273ab fixes 0003729: REGRESSION: FreeCAD 0.17 does not export color information with STEP files 2018-12-24 17:27:56 +01:00
wmayer
6787d5d28d move class ExportOCAF to own source files 2018-09-28 15:06:46 +02:00
wmayer
f4fbbb0a79 fixes 0003491: Import.export not preserving placement of Part Features in STP file export 2018-09-28 14:58:49 +02:00
wmayer
4a2d7fc312 fixes 0003165: Color information lost in STEP export 2018-09-28 11:49:04 +02:00
wmayer
b8e8f4a8d1 fixes #0002908: stp file import name mismatch (due to some limitation into UTF-8 support & naming convention) 2018-09-14 18:15:48 +02:00
luz.paz
1d5799e5b3 Misc. typos
Inspired by @normandc per https://gitter.im/FreeCAD/FreeCAD?at=5a729c6ece68c3bc742df205
2018-02-07 09:40:03 +01:00
wmayer
fde42545ba fix various coverity issues 2017-09-15 11:48:38 +02:00
wmayer
473ea474ce Port to occ7.2:
+ replace Quantity_Parameter with Standard_Real is it's marked deprecated
+ include NCollection_Vector as it's needed by STEPCAFControl_Writer
+ remove GC_MakeConicalSurface used for cone and distance as this was never implemented in any earlier occ version and has been removed now
2017-09-01 12:01:50 +02:00
wmayer
8856041a72 improve whitespaces 2017-08-01 08:30:22 +02:00
Jean-Marie Verdun
4f69fd5a31 Fix Placement and Color export within Hierarchical Step exporter of single shapes 2017-07-31 22:33:09 +02:00
Jean-Marie Verdun
a89dbdc801 Export single STEP object with absolute coordinate instead of (0,0,0) as default origin 2017-07-31 16:45:24 -03:00
wmayer
4469964dc4 improve whitespaces 2017-07-26 23:08:44 +02:00
Jean-Marie Verdun
28fc8ff34f Enable the ReadShapeCompoundMode into the C++ code 2017-07-26 16:16:06 -03:00
wmayer
905b1adee8 remove unused variables 2017-07-13 22:02:11 +02:00
wmayer
ded46ffa65 fix whitespaces 2017-07-13 21:46:24 +02:00
Jean-Marie Verdun
c8919651ba Final fix for hierarchical STEP exporter 2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
ef4efc52e5 Improve hierarchical exporter 2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
a83d71c7c8 Add initial code for hierarchical STEP exporter 2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
4939a86fd6 Fix bug 3076 about color issue when opening a hierarchical step file
with Compound.
2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
d073a453bf Add Vertices and Edges support to STEP Compound Importer 2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
e02306892f Introduce relative placement for STEP importer instead of absolute placement 2017-07-11 11:24:49 -03:00
Jean-Marie Verdun
7efb99ad18 Step Reader Improvements
Call new functions which allows to allocate in a single call Object into the document instead of multiple calls
Put into a Compound, STEP Compound instead of a Sub Tree which was creating far
too much object (aka replicate what CAD Assistant and EDrawings are doing when
opening a complex STEP tree)
2017-05-07 21:37:48 +02:00
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
wmayer
305e7fa62c issue #0002698: Exported STEP-File contains surplus PRODUCTS 2017-03-26 18:29:27 +02:00
Jean-Marie Verdun
5f1879ee21 Move Step reader to New Part Design workflow 2017-03-23 21:43:46 +01:00
wmayer
cd92e65729 prework for issue #0002698 2017-02-04 11:34:55 +01:00
Jean-Marie Verdun
250b98a07c Activate only UI tree leaf as to display properly colors when browsing a STEP (there is currently a limitation within the reader which creates compound which are totally grey) and accelerate browsing by de-activating Compound rendering 2017-01-30 17:59:07 +01:00
wmayer
01bc2fc6ce fix crash with null pointer links
in PropertyLinkList handle case with null pointers as value
in STEP reader avoid to create coumpound objects with null pointer links
2017-01-30 16:47:31 +01:00
wmayer
f40c9ece02 code cleanup 2017-01-27 15:48:27 +01:00