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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Requer o plugin vagrant-vbguest. Se necessário, instale-o com o comando | |
# | |
# vagrant plugin install vagrant-vbguest | |
# | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.provider "virtualbox" do |vb| |
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 python | |
freecadfunctions="""#!/usr/env/bin python | |
#python 2 | |
import FreeCAD,Part | |
def pointstopoles1D(points): | |
return zip(*[(FreeCAD.Vector(point[0:3]),point[3]) for point in points]) | |
def pointstopoles(points,cu): | |
poles=[] |