This file contains 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
import FreeCAD as App, FreeCADGui as Gui, time | |
from PySide2 import QtGui,QtCore | |
class Animation(object): | |
def __init__(self): | |
App.Console.PrintMessage("init \n") | |
App.ActiveDocument.recompute() | |
self.timer = QtCore.QTimer() | |
QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.my_update) | |
self.timer.start(100) #100ms for step, adjust to performance of the PC |
This file contains 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
import FreeCAD as App, FreeCADGui as Gui, Part, time | |
from PySide2 import QtGui,QtCore | |
from pivy import coin | |
import math | |
class CustomArrow(object): | |
def __init__(self): | |
self.cyl_height = 6 | |
cyl_radius = 3 |
This file contains 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
# based on gl_example.py https://github.com/cmbruns/pyopenxr_examples | |
import ctypes | |
import logging | |
from threading import Thread | |
import sdl2 | |
import platform | |
from OpenGL import GL |
This file contains 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
# This script creates a simple Qt Widget, renders it to a Coin3D texture (SoTexture2), and creates a cube (SoCube) with that texture. | |
# It also simulates (def simulate_picking(self)) a 3D ray that intersects with Coin3D render of the QWidget. If the point of intersection is on the "Hello World" button widget, then QMouseEvent (pressed and relesed) is triggered and button activation is animated. | |
from OpenGL import GL | |
from PySide2.QtWidgets import QOpenGLWidget, QApplication | |
from PySide2.QtCore import Qt, QTimer, Signal, Slot | |
from PySide2.QtGui import QOpenGLContext | |
from PySide2.QtGui import qGray, qRed, qGreen, qBlue, qAlpha | |
from pivy.coin import SoFrustumCamera |
This file contains 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
# This script creates ABENICS (half of) cross gear in FreeCAD | |
import FreeCAD as App | |
import Part | |
import InvoluteGearFeature | |
doc = App.ActiveDocument | |
mod = 2.0 # gear tooth module | |
monopole_teeth = 12 # number of teeth | |
cross_teeth = monopole_teeth * 2 | |
height = 20 # height of the monopole gear |
This file contains 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
# This script animates "Box" attached to an curve with MapPathParameter | |
# It can be used for animation of indexing conveyor (start/stop) | |
import FreeCAD as App, FreeCADGui as Gui, Part, time | |
from PySide2 import QtGui,QtCore | |
class Animation(object): | |
def __init__(self): | |
App.Console.PrintMessage('Animation has started\n') | |
App.ActiveDocument.recompute() |
This file contains 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
# This script aniamtes "Box" attached to an curve with MapPathParameter | |
import FreeCAD as App, FreeCADGui as Gui, Part, time | |
from PySide2 import QtGui,QtCore | |
class Animation(object): | |
def __init__(self): | |
App.Console.PrintMessage('Animation has started\n') | |
App.ActiveDocument.recompute() | |
self.timer = QtCore.QTimer() |
This file contains 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
Informacje o komputerze: | |
Producent: Unknown | |
Model: Unknown | |
Rodzaj: Komputer stacjonarny | |
Nie wykryto panelu dotykowego | |
Informacje o procesorze: | |
Dostawca CPU: AuthenticAMD | |
Marka procesora: AMD Ryzen 7 1700 Eight-Core Processor | |
Rodzina CPU: 0x17 |
This file contains 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
GameAction [AppID 220, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with "" | |
GameAction [AppID 220, ActionID 1] : LaunchApp changed task to SynchronizingCloud with "" | |
GameAction [AppID 220, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with "" | |
GameAction [AppID 220, ActionID 1] : LaunchApp changed task to CreatingProcess with "" | |
GameAction [AppID 220, ActionID 1] : LaunchApp waiting for user response to CreatingProcess "" | |
GameAction [AppID 220, ActionID 1] : LaunchApp continues with user response "CreatingProcess" | |
/bin/sh\0-c\0/home/adi/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=220 -- '/mnt/ssd/SteamLibrary/steamapps/common/Half-Life 2/hl2.sh' -game hl2 -steam -vulkan\0 | |
Game process added : AppID 220 "/home/adi/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=220 -- '/mnt/ssd/SteamLibrary/steamapps/common/Half-Life 2/hl2.sh' -game hl2 -steam -vulkan", ProcID 17050, IP 0.0.0.0:0 | |
ERROR: ld.so: object '/home/adi/.local/share/Steam/ubuntu12_32/gameoverlayre |
This file contains 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
--- Serious Engine Startup --- | |
SeriousEngine Build: 10000.10 | |
Executable: D:\ssrt\Bin\SeriousSamTFE.exe | |
Assumed engine directory: `\„ä | |
Examining underlying OS... | |
Type: WinNT | |
Version: 6.2, build 9200 |
NewerOlder