Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py
:
import re
[RequireComponent(typeof(MeshFilter))] | |
public class GenerateMesh02 : MonoBehaviour { | |
/* scratchpad */ | |
private MeshFilter mf; | |
void Start () { | |
mf = GetComponent<MeshFilter> (); | |
GenerateMesh (); |
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Collections; | |
// This script is adapted from these, | |
// but has been heavily modified in some areas: | |
// http://www.redblobgames.com/pathfinding/a-star/implementation.html#csharp | |
// https://gist.github.com/DanBrooker/1f8855367ae4add40792 | |
// I'm continuing to optimize and change things here. I would not use this |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int addi(int a, int b) { | |
return a + b; | |
} | |
char *adds(char *a, char *b) { | |
char *res = malloc(strlen(a) + strlen(b) + 1); |
%% Read image and convert to grayscale | |
img = imread('pic.jpg'); | |
img = rgb2gray(img); | |
%% Define grayscale representations of 0-255 | |
chars = fliplr([' ', '.', ',', ':', '-', '=', '+', '*', '#', '%', '@']); | |
step = 256 / 11; | |
%% Cut image so its size is 8*w times 13*h | |
imgSize = size(img); |
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py
:
import re
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include "Stroke.hpp" | |
#include <SFML/OpenGL.hpp> | |
const float myRand(float low, float high) | |
{ | |
return static_cast<float>(std::rand()) / RAND_MAX * (high - low) + low; |
// NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation. | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// A console to display Unity's debug logs in-game. | |
/// </summary> | |
public class Console : MonoBehaviour | |
{ |
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Ismael Celis | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |