Skip to content

Instantly share code, notes, and snippets.

Yorik van Havre yorikvanhavre

Block or report user

Report or block yorikvanhavre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yorikvanhavre
yorikvanhavre / io_export_fcstd.py
Created Nov 18, 2019
A FreeCAD exporter for Blender <= 2.80
View io_export_fcstd.py
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program 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
View FreeCAD .FCStd importer for Blender 2.80
bl_info = {
"name": "FreeCAD Importer",
"category": "Import-Export",
"author": "Yorik van Havre",
"version": (5, 0, 0),
"blender": (2, 80, 0),
"location": "File > Import > FreeCAD",
"description": "Imports a .FCStd file from FreeCAD",
"warning": "This addon needs FreeCAD installed on your system. Only Part- and Mesh-based objects supported at the moment.",
}
@yorikvanhavre
yorikvanhavre / check_revit_tiny_lines.py
Created Dec 4, 2018
A FreeCAD macro that checks all visible objects for lines too tiny for Revit
View check_revit_tiny_lines.py
import FreeCAD,FreeCADGui,Part
minl = 0.8 # 0.8 millimeters is the minimum line size that Revit is able to swallow. Pitiful, I know...
edges = []
if FreeCAD.ActiveDocument:
for o in FreeCAD.ActiveDocument.Objects:
if o.ViewObject.Visibility == True:
if o.isDerivedFrom("Part::Feature"):
if o.Shape:
@yorikvanhavre
yorikvanhavre / ideias_contra_fascismo.md
Last active Oct 10, 2018
Ideias para impedir o Brasil de se tornar um estado fascista após a vitória do Bolsonaro
View ideias_contra_fascismo.md

Ideias para impedir o Brasil de se tornar um estado fascista após a vitória do Bolsonaro

  • Aprender e divulgar sobre o nazismo / fascismo, aprender a reconhecer similaridades, e também diferenças e ter uma visão realista e constantemente atualizada sobre a situação
  • Registrar e divulgar crimes fascistas, separar e catalogar os cometidos oficialmente pelo governo, por apoiadores, e por outras instituições que não são parte do governo (legislativo, judiciário, estaduais, etc...)
  • Registrar e catalogar ocorrências de corrupção das instituições (legislativo, judiciário...) por parte do governo
  • Apoiar a imprensa independente
  • Apoiar, ampliar e reforçar movimentos tipicamente "alvos" do fascismo (e consequentemente partes fundamentais da resistência) como movimentos feministas, negros, LGBT
  • Desenvolver cultura alternativa, e meios de financiá-la e mantê-la viva culturalmente (resistir as calunias e campanhas contra)
  • Atentar e identificar novos "alvos" (designados como responsáveis por tudo que for rui
View keybase.md

Keybase proof

I hereby claim:

  • I am yorikvanhavre on github.
  • I am yorikvanhavre (https://keybase.io/yorikvanhavre) on keybase.
  • I have a public key ASDsJiThnDgQBTYV70-5IFhBhEMtnd4i6k5eoOc6oq5M7wo

To claim this, I am signing this object:

@yorikvanhavre
yorikvanhavre / io_import_fcstd.py
Last active Nov 3, 2019
Blender FreeCAD importer stub
View io_import_fcstd.py
bl_info = {
"name": "FreeCAD Importer",
"category": "Import-Export",
"author": "Yorik van Havre",
"version": (1, 0, 0),
"blender": (2, 79, 0),
"location": "File > Import > FreeCAD",
"description": "Imports a .FCStd file from FreeCAD",
"warning": "You need a version of FreeCAD compiled with the same Python version as Blender. Only Part- and Mesh-based objects are supported at the moment",
}
@yorikvanhavre
yorikvanhavre / parametric_column.ifc
Created Aug 3, 2017
An IFC file that contains parametric definitions for FreeCAD
View parametric_column.ifc
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
FILE_NAME('p5.ifc','2017-08-03T15:25:29',('Yorik van Havre','yorik@uncreated.net'),('uncreated.net'),'IfcOpenShell 0.5.0-dev','IfcOpenShell 0.5.0-dev','');
FILE_SCHEMA(('IFC2X3'));
ENDSEC;
DATA;
#1=IFCPERSON($,$,'Yorik van Havre',$,$,$,$,$);
#2=IFCORGANIZATION($,'uncreated.net',$,$,$);
#3=IFCPERSONANDORGANIZATION(#1,#2,$);
@yorikvanhavre
yorikvanhavre / nester.py
Last active Jul 1, 2017
Nesting algo for FreeCAD
View nester.py
# -*- coding: utf-8 -*-
#***************************************************************************
#* *
#* Copyright (c) 2017 Yorik van Havre <yorik@uncreated.net> *
#* *
#* 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 *
#* the License, or (at your option) any later version. *
@yorikvanhavre
yorikvanhavre / Sketchfab-exporter.FCMacro
Last active Mar 21, 2017
A sketchfab exporter for FreeCAD
View Sketchfab-exporter.FCMacro
#!/usr/bin/python
#***************************************************************************
#* *
#* Copyright (c) 2017 - Yorik van Havre <yorik@uncreated.net> *
#* *
#* 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 *
#* the License, or (at your option) any later version. *
@yorikvanhavre
yorikvanhavre / acis-sat-lib.py
Created Jun 20, 2016
A read/write library for ACIS/SAT file format. However, it's too ancient and doesn't respect the current file format specs, which cannot be found on the net, so I stopped there...
View acis-sat-lib.py
# adapted from http://userpages.uni-koblenz.de/~ros/acis.htm
import os
class tawriter:
def __init__(self,asat):
self.l = []
self.sat = []
self.asat = asat
You can’t perform that action at this time.