Open nabsul opened 7 years ago
@nabsul please instruct me how did you hardcoded it so it started working ! @samchon please change the "npm install -g 3d-bin-packing" installation back to version 2.0.7 until 2.0.8 is stable ! I'm in urgent need of optimal solution for my dataset. Please help me figure out a way to run this mindblowing packer within next 30 hours :(
I have resigned from the betterwaysystems
who ordered me to develop the 3d-bin-packing
. So I can't help you officially by updating this repository.
So I checked Well, the latest version of samchon
is 2.0.9-d. I can't understand the reason why the old version (2.0.9) is installed. To help you, I will change the version number from 2.0.9
to 2.0.10
.
Thank You @samchon you're the best ! I could install "3d-bin-packing" but when i execute it there's a new problem... for executing... I took help from the instructions you gave to deadeye636 in issues...
What should I do ?
Well, there's no problem for me. It seems your domain problem.
Below code ran correctly.: https://gist.github.com/samchon/6de8ce3780de171fe399c05f472a5012
It is again showing same error Sir, @samchon . If it's not working in Nodejs maybe with Visual Studio it will... I'm sorry for all the trouble I'm causing to you Sir, but I'm extremely helpless right now and you are the only person who can help me.
Please post a step by step procedure for me assuming i have nothing installed on my system, not even your framework. That'll help me figure out problem faster and if everything goes well I might solve my problem before my last 19 hours run out !!
This is what I read at http://betterwaysystems.github.io/packer/api/ts/
However, if you want to install the C++ mode, you've to install Visual C++ Redistributable for Visual >Studio 2015. After the installation, execute release/cpp/Packer.exe. Then a cloud server deducting >packer solution will be opened. After running the cloud server, open release/ts/index.html.
You also can separate cloud server(C++) and clients(Web), let users to connect remote Packer server, >by editing ip address in release/ts/server.xml
https://www.microsoft.com/en-US/download/details.aspx?id=48145 release/cpp/Packer.exe release/ts/index.html release/ts/server.xml
But after installing Visual C++ Redistributable for Visual >Studio 2015, I'm stuck... Where to find Packer.exe and other files ? I searched whole PC but it wasn't there...neither it is in your git zip file. Where to place the cpp code file which they gave as sample? How to compile and execute that file ?
Thank you once again.
This is not a commercial solution that listening your all customization requirements. You'd better to learn the NodeJs or C++ first. Try the below method and if you want more customization option, then you must do it by yourself
Create an empty folder and type below commands:
npm init
npm install --save 3d-bin-packing
After the npm initialization, make a index.js
file such below:
var fs = require("fs");
var samchon = require("samchon");
var library = samchon.library;
var pack = require("3d-bin-packing");
function main(inputPath, outputPath)
{
var input_str = fs.readFileSync(inputPath, "utf8");
var input_xml = new library.XML(input_str);
var packer = new pack.PackerForm();
packer.construct(input_xml);
var result = packer.optimize();
var output_str = result.toXML().toString();
fs.writeFileSync(outputPath, output_str, "utf8");
}
main(process.argv[2], process.argv[3]);
After the creation of the index.js
, type such command on the command line
node index input.xml output.xml
@nabsul please instruct me how did you hardcoded it so it started working !
@sstajinder1 Sorry I didn't see your question till now, I must have missed the notification. I checked out the packer lib and edited package.json
.
Please help me figure out a way to run this mindblowing packer within next 30 hours :(
Oops :-(
I don't know what happened to my posting. @sstajinder1 If your still looking for a solution let me know. @nabsul Thanks for tracking me down on twitter I responded there. If anybody else is interested I am going to be re-implementing this project as a normal Node.js module along with a bunch of other fixes. Let me know if thats something you would be interested in. I am happy to take just input on the project even if you don't feel you can help.
If someone see TypeError: library.XML is not a constructor
, trying to run an example from samchon above, add __export(require("./library/XML"));
into ./node_modules/samchon/library.js. It helped me.
Hi,
I tried to install this NPM package and it failed. When I hardcoded samchon to 2.0.7 it worked fine.