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 | |
// Code adapted from https://github.com/propanoid/DBSCAN | |
#include <vector> | |
#include <algorithm> | |
#include <omp.h> | |
// Any basic vector/matrix library should also work | |
#include <Eigen/Core> |
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 random import sample | |
from string import digits, ascii_uppercase, ascii_lowercase | |
from tempfile import gettempdir | |
from os import path | |
def rand_fname(suffix='', length=8): | |
chars = ascii_lowercase + ascii_uppercase + digits | |
#fname = path.join(gettempdir(), 'tmp-' + ''.join(sample(chars, length)) + suffix) | |
fname = 'tmp-' + ''.join(sample(chars, length)) + suffix | |
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; |
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
//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
// 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
// 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
#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
#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
# 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 ../.. |