| FEP00 | |
|---|---|
| Title | Evolution of FreeCAD's Rendering Subsystem |
| Status | Draft |
| Author(s) | Joao Matos (tritao) |
| Created | Mar 02, 2025 |
| Updated | Mar 02, 2025 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import csv | |
| import json | |
| import subprocess | |
| import sys | |
| from dataclasses import dataclass | |
| from datetime import datetime, timezone | |
| from typing import Any, Dict, Iterable, List, Optional, Tuple | |
| OWNER = "FreeCAD" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Runtime.CompilerServices; | |
| using CppSharp; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Cors.Infrastructure; | |
| using Microsoft.AspNetCore.Http; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| #include <cctype> | |
| #include <stdexcept> | |
| #include <unordered_map> | |
| #include <sstream> | |
| #include <iomanip> | |
| #include <iostream> | |
| #include <algorithm> | |
| // Simple RGB color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static PyObject* createMyConstantsEnum() | |
| { | |
| // Import the Python 'enum' module. | |
| PyObject* enumModule = PyImport_ImportModule("enum"); | |
| if (!enumModule) { | |
| PyErr_SetString(PyExc_ImportError, "Failed to import the enum module"); | |
| return nullptr; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Python.h> | |
| #include <thread> | |
| #include <future> | |
| #include <iostream> | |
| #include <chrono> | |
| // ----- Python-bound Function: execute ----- | |
| // | |
| // This function takes an integer, offloads a computation (here, squaring the number) | |
| // using std::async, and returns the result. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <chrono> | |
| struct Color { | |
| float a, b, c, d; | |
| }; | |
| volatile float sink = 0.0f; | |
| #if defined(_MSC_VER) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cMake/FreeCAD_Helpers/SetupPython.cmake b/cMake/FreeCAD_Helpers/SetupPython.cmake | |
| index a2887affcb..6043fba779 100644 | |
| --- a/cMake/FreeCAD_Helpers/SetupPython.cmake | |
| +++ b/cMake/FreeCAD_Helpers/SetupPython.cmake | |
| @@ -18,4 +18,12 @@ macro(SetupPython) | |
| message(FATAL_ERROR "To build FreeCAD you need at least Python 3.8\n") | |
| endif() | |
| + # If a custom Python directory was passed in, then save it as PYTHON_HOME_DIR, | |
| + # which is used by config.h.cmake when generating the config header file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| cd $SCRIPT_DIR | |
| cd coin | |
| # rm -rf bld | |
| mkdir -p bld && cd bld | |
| cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | |
| -DCOIN_BUILD_SHARED_LIBS=1 -DCOIN_BUILD_EXAMPLES=1 -DCOIN_BUILD_TRACY_PROFILER=0 \ |
NewerOlder