Skip to content

Instantly share code, notes, and snippets.

View davidrihtarsic's full-sized avatar

David Rihtaršič davidrihtarsic

  • University of Ljubljana
  • Ljubljana, Slovenia
View GitHub Profile
@mario52a
mario52a / Macro FCCamera.FCMacro
Last active March 9, 2025 03:14
This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera, align view to face or to axis, align the object to view.
# -*- coding: utf-8 -*-
"""
***************************************************************************
* Copyright (c) 2015 2016 2017 2018 2019 2020 2024 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
* as published by the Free Software Foundation; either version 2 of *