Commit Graph

29 Commits

Author SHA1 Message Date
luz.paz
8af8689d73 Arch: [skip ci] fix header uniformity
This PR fixes header uniformity across all Arch files
2019-12-26 18:24:06 +01:00
Zheng, Lei
ef5acc5023 Arch: relax Part::Feature type checking
For supporting Link inside Arch.
2019-11-17 13:03:42 -03:00
Daniel Angelov
3a018f26aa Remove extra indentation from webGL template. 2019-08-09 19:07:57 -03:00
Daniel Angelov
4402170f37 Update translate in no GUIup case
If the `utf8_decode` is not added, when saving on server side, the following error occurs: 
```
  File "/usr/share/freecad/Mod/Arch/importWebGL.py", line 129, in export
    FreeCAD.Console.PrintMessage(translate("Arch","Successfully written", utf8_decode=True) + ' ' + filename + "\n")
TypeError: translate() got an unexpected keyword argument 'utf8_decode'
```
2019-08-09 18:54:11 -03:00
GeneGH
2549d1cfc4 Repair pythonopen in line 126 for Python3
Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
2019-02-08 11:06:05 -02:00
Yorik van Havre
d0651ba51f Arch: Fixed bug in WebGL exporter 2018-04-02 13:43:29 -03:00
luzpaz
5f33f574a8 Crowdin: Removing whitespace from widgets
Modified the code so that the whitespace was hardcoded since translators on Crowdin weren't adding the whitespace. Please review if correct. 
+ found some other typos/grammar issues along the way. 
CC @yorikvanhavre
2018-01-01 17:52:12 +01:00
looooo
10866d38d3 py3: Draft: string / unicode:
issue 0000995
- use optional argument to get unicode from translation in python2
- add a utf8_decode function to get unicode from string, bytes, unicode
2017-06-20 12:18:01 +02:00
looooo
9cedf0f2e4 py3: Arch: print fixes 2017-01-17 11:13:36 +01:00
Yorik van Havre
876b3595dc py3: open function is in module 'io' in py3 instead of __builtin__ 2017-01-17 09:24:59 +01:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Jonathan Wiedemann
c8a3ee5dd8 Fix webgl export for mesh based object 2016-10-29 00:01:03 +02:00
Jonathan Wiedemann
054470bc94 add decode utf8 importWebGL.py 2016-05-18 17:25:54 +02:00
Yorik van Havre
f8571fb2a4 Changed all references to DraftGeomUtils.sortEdges to Part.__sortEdges__ 2015-09-04 11:54:57 -03:00
Johannes Reinhardt
5f11fb054f Use new curve discretization 2014-08-14 23:28:50 +02:00
Johannes Reinhardt
e8eb687e10 Revert "Arch: Turned jreinhardt's fix to webGL into an option"
This reverts commit 90f2fc2034.

Conflicts:
	src/Mod/Arch/Arch_rc.py
	src/Mod/Arch/Resources/ui/archprefs-import.ui
2014-08-14 23:28:50 +02:00
Yorik van Havre
0c4bb217d1 Arch: Turned jreinhardt's fix to webGL into an option 2014-05-02 17:20:17 -03:00
Johannes Reinhardt
7a3fdf94e8 fix export of circular edges 2014-04-29 16:00:42 -03:00
Johannes Reinhardt
eb10394b23 added webGL export option for faceloop linewidth 2014-04-29 16:00:42 -03:00
Yorik van Havre
39cd059e1b Arch: fixed importWebGL to work from command line 2014-04-27 10:49:46 -03:00
Yorik van Havre
d8de96470f Arch: allow to set a custom camera position in webgl export 2014-04-27 00:00:10 -03:00
Yorik van Havre
b999a6574b Arch: Place polylines in the XY plane by default in IFC export 2014-04-26 13:37:31 -03:00
Yorik van Havre
6a64cde3cb Arch: made importWebGL easier to use in python scripts 2014-04-26 13:09:43 -03:00
Yorik van Havre
b3fc7b7a78 Fixed translation system in Arch & Draft 2014-01-07 11:17:31 -02:00
Yorik van Havre
60a12031cb Arch: Better wireframe material for the webgl exporter 2013-04-13 18:57:35 -03:00
Yorik van Havre
80ed02054e Arch: Simplified webgl exporter 2013-04-13 00:29:05 -03:00
Yorik van Havre
b8b8f6c460 Arch: WebGL exporter now has mouse controls 2013-04-12 15:37:10 -03:00
Yorik van Havre
a5474182b9 Arch: fixed errors in webgl exporter 2013-04-11 11:23:39 -03:00
Yorik van Havre
69f7a14193 0001035: WebGL exporter
The Arch module now features a webgl exporter that produces an all-included
HTML file that displays the exported objects in WebGL-capable web browsers.
Many enhancements are still necessary, especially with lights and materials.

At time of export, the exporter downloads the three.js library from github
and includes it in the HTML file, so it has no other dependencies.
2013-04-09 19:43:45 -03:00