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
# Update software packages | |
sudo apt-get update | |
# Install LXDE desktop | |
sudo apt-get -y install lxde | |
# Start desktop service | |
sudo start lxdm | |
# Install Remote Desktop |
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
# Update software packages | |
sudo apt-get update | |
# Download packages: git + gcc | |
sudo apt-get -y install git g++ make cmake | |
# Download common packages: jpeg + zlib + python-pip | |
sudo apt-get -y install libjpeg8-dev libpng-dev zlib1g-dev python-pip | |
# Download software: ImageMagick |
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
# Clone repos | |
git clone https://github.com/ennetws/EventCloudBundler.git | |
git clone https://github.com/ennetws/EventCloudBundlerExtra.git | |
# Compile bundler | |
cd EventCloudBundler/bundler | |
make clean | |
make | |
sudo cp bin/libANN_char.so /lib | |
cd ../.. |
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
#pragma once | |
#include <QNetworkAccessManager> | |
#include <QNetworkRequest> | |
#include <QNetworkReply> | |
#include <QHttpMultiPart> | |
#include <QHttpPart> | |
#include <QFile> | |
namespace BoxCloud |
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
#pragma once | |
#include <iostream> // std::cout | |
#include <QImage> | |
#include <QPainter> | |
#include <QPoint> | |
#include <Eigen/Core> | |
#include <Eigen/Geometry> | |
#define RADIANS(deg) ((deg)/180.0 * M_PI) |
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
// From Robert Bridson's curlnoise | |
// Example usage: | |
// std::vector<Vector3> samples; | |
// bluenoise_sample<3, double, Vector3>(0.02, Vector3(-0.5,-0.5,-0.5), Vector3(0.5,0.5,0.5), samples ); | |
// | |
#ifndef BLUENOISE_H | |
#define BLUENOISE_H | |
#include <array> |
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
// Code from igl library | |
// Copyright (C) 2013 Alec Jacobson <[email protected]> | |
// | |
// This Source Code Form is subject to the terms of the Mozilla Public License | |
// v. 2.0. If a copy of the MPL was not distributed with this file, You can | |
// obtain one at http://mozilla.org/MPL/2.0/. | |
#pragma once | |
#include <Eigen/Geometry> | |
#include <Eigen/Dense> |
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
//Eigen::MatrixXd src = pointsToMatrix(pointsA[i]); | |
//Eigen::MatrixXd dst = pointsToMatrix(pointsB[j]); | |
//Eigen::Matrix4d cR_t = Eigen::umeyama(src, dst, true); | |
//Eigen::Matrix4d R_t = Eigen::umeyama(src, dst, false); | |
//Eigen::Matrix3d R = R_t.block(0,0,3,3); | |
//Eigen::Vector3d t = R_t.block(0,3,3,1); |
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
============================== | |
Expression: (id=\d)(.+?)(") | |
============================== | |
Python script to download: | |
import os.path |
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
std::vector<Vector3> spine, spineNormals; | |
for(int i = 0; i < 10 ; i++){ | |
spine.push_back( Vector3(0,0,0.1 * i) ); | |
#define DEG2RAD 0.01745329 | |
double theta = DEG2RAD * double(i) * M_PI * 2; | |
spineNormals.push_back(rotatedVec(Vector3(0,0.01,0),theta, Vector3(0,0,1))); | |
} | |
// Generate capped cylinder | |
int numSides = 20, numCaps = numSides * 0.5; |
OlderNewer