This file contains 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
#include <Python.h> | |
struct MyClass { | |
int val; | |
MyClass(void) : val(42) {} | |
}; | |
#ifdef __cplusplus | |
extern "C" { | |
#endif // __cplusplus |
This file contains 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
#include <Python.h> // Must be first | |
#include <vector> | |
#include <stdexcept> | |
#include "PyUtils.h" | |
using namespace std; | |
// ===== | |
// LISTS | |
// ===== |
This file contains 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
// | |
// Marching Cubes Example Program | |
// by Cory Bloyd ([email protected]) | |
// | |
// A simple, portable and complete implementation of the Marching Cubes | |
// and Marching Tetrahedrons algorithms in a single source file. | |
// There are many ways that this code could be made faster, but the | |
// intent is for the code to be easy to understand. | |
// | |
// For a description of the algorithm go to |