Example #1
0
 void copy_data(bp::object from, int size, scalar_t* to) {
     using Array = tbm::ArrayX<scalar_t>;
     bp::extract<Eigen::Map<Array>> extract_map(from);
     if (extract_map.check()) {
         std::copy_n(extract_map().data(), size, to);
     } else {
         std::copy_n(bp::extract<Array>(from)().data(), size, to);
     }
 }
Example #2
0
int main(int argc, char* argv[])
{
	std::vector<std::string> args(argv, argv + argc);

	std::string max_root = args.at(1);
	
	res_file maxres(max_root + "\\MAX.RES");

	CreateDirectoryA("output", 0);
	//extract_units(maxres);
	extract_map(max_root + "\\DESERT_1.WRL", "output/desert1");

	return 0;
}