* Add custom template path support for WebGL export
- Extract hardcoded template into separate file and store in Mod/BIM/Resources/templates
- Remove hardcoded template from code
- Add new section to Import-Export Preference page ("WebGL"). This introduces two new parameters
- Make export() return bool to indicate success or failure for controlled headless export
- Add new unit tests for WebGL export to ensure functionality
- Update CMakeLists.txt to include the new template resource
* Apply suggestions from code review
Changes to literals, suggested after DWG review
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
* Removed unused import
* Removed unused import
---------
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
Co-authored-by: Yorik van Havre <yorik.vanhavre@gmail.com>
51 lines
2.9 KiB
Python
51 lines
2.9 KiB
Python
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
# ***************************************************************************
|
|
# * *
|
|
# * Copyright (c) 2013 Yorik van Havre <yorik@uncreated.net> *
|
|
# * *
|
|
# * This file is part of FreeCAD. *
|
|
# * *
|
|
# * FreeCAD is free software: you can redistribute it and/or modify it *
|
|
# * under the terms of the GNU Lesser General Public License as *
|
|
# * published by the Free Software Foundation, either version 2.1 of the *
|
|
# * License, or (at your option) any later version. *
|
|
# * *
|
|
# * FreeCAD is distributed in the hope that it will be useful, but *
|
|
# * WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
|
# * Lesser General Public License for more details. *
|
|
# * *
|
|
# * You should have received a copy of the GNU Lesser General Public *
|
|
# * License along with FreeCAD. If not, see *
|
|
# * <https://www.gnu.org/licenses/>. *
|
|
# * *
|
|
# ***************************************************************************
|
|
|
|
# Unit test for the Arch module
|
|
from bimtests.TestArchRoof import TestArchRoof
|
|
from bimtests.TestArchSpace import TestArchSpace
|
|
from bimtests.TestArchWall import TestArchWall
|
|
from bimtests.TestArchBuildingPart import TestArchBuildingPart
|
|
from bimtests.TestArchAxis import TestArchAxis
|
|
from bimtests.TestArch import TestArch
|
|
from bimtests.TestArchMaterial import TestArchMaterial
|
|
from bimtests.TestArchPanel import TestArchPanel
|
|
from bimtests.TestArchWindow import TestArchWindow
|
|
from bimtests.TestArchStairs import TestArchStairs
|
|
from bimtests.TestArchPipe import TestArchPipe
|
|
from bimtests.TestArchCurtainWall import TestArchCurtainWall
|
|
from bimtests.TestArchProfile import TestArchProfile
|
|
from bimtests.TestArchProject import TestArchProject
|
|
from bimtests.TestArchSectionPlane import TestArchSectionPlane
|
|
from bimtests.TestArchRebar import TestArchRebar
|
|
from bimtests.TestArchGrid import TestArchGrid
|
|
from bimtests.TestArchFence import TestArchFence
|
|
from bimtests.TestArchEquipment import TestArchEquipment
|
|
from bimtests.TestArchFrame import TestArchFrame
|
|
from bimtests.TestArchReference import TestArchReference
|
|
from bimtests.TestArchSchedule import TestArchSchedule
|
|
from bimtests.TestArchTruss import TestArchTruss
|
|
from bimtests.TestArchComponent import TestArchComponent
|
|
from bimtests.TestWebGLExport import TestWebGLExport
|