ghemingway / cad.js Goto Github PK
View Code? Open in Web Editor NEWWeb-based CAD file viewer
Home Page: http://ghemingway.github.io/cad.js
License: Apache License 2.0
Web-based CAD file viewer
Home Page: http://ghemingway.github.io/cad.js
License: Apache License 2.0
The title is my problem,Who can answer that? Thanks in advance
I modified the JSON path in build.js to point to the JSON in my own project.F12 throws an exception:
Is it because my JSON format is not correct?I'm through http://2geojson.com/index.php, this web site to transform DXF converted to JSON, if is the format error, so I change how to convert JSON?
If we can transfer the project into server JSON (no matter what kind of server, C, C + +, JAVA, Python,. Net, etc.), HTML page parse the JSON data model, then it will be a very high commonality project, now I can't Node. Js and Python, if I want to finish a project (I am a JAVA developer), need based on your project to do?
Functional test all APIs
I have run the demo, but I still do not know how you get these XML files. Is there any project that can convert DWG files to XML?
By the way, I use three v0.70.1 to run the demo, but the demo itself is running under three v64, which I failed to run on. The error message is all about framework. I am really confuse about that.
Followed the installation guide and installed everything on ubuntu on WSL.
The Redis server and node server starts fine. But http://localhost:8080 shows an empty screen on browser.
Any suggestions?
npm run start-dev
[email protected] start-dev /home/abc/dev/acad/cad.js
node src/server/api_server.js -e development
{"message":"CAD.js API Server listening on: 8080","level":"info"}
{"message":"\tRedis Connected.","level":"info"}
{"message":"Configuring auth/auth plugin: permit","level":"info"}
{"message":"\tSetting User-Validation function","level":"info"}
{"message":"\tSetting User-Authorization function","level":"info"}
{"message":"Configuring storage plugin: filesystem","level":"info"}
{"message":"\tAssembly Root: /home/sam/dev/acad/cad.js/data","level":"info"}
{"message":"\tNC Root: /home/sam/dev/acad/cad.js/data","level":"info"}
GET / 304 - - 123.887 ms
GET /js/main.css 304 - - 50.876 ms
GET /js/main.js 304 - - 51.337 ms
GET /cad.js/?resource_url=/cad.js/data/cutter/index.json 200 713 - 70.503 ms
GET /js/main.js 304 - - 44.813 ms
GET /js/main.css 304 - - 32.122 ms
Hello, can you guide me for a local setup ? i have an stl file and i'm not sure how to display it or if i have to convert it first.
Thanks!
Allow models to have arbitrarily long and segmented URL paths.
I tried viewing one of the models that I extracted with the readme example, in particular the cutter one. When I went to http://localhost:8080/cutter
, I got the error below. Any help would be appreciated, thanks!
Message: Uncaught TypeError: Cannot read property 'count' of undefined
Error: null
Filename: http://localhost:8080/js/main.js
Line number: 23691
Column number: 36
three.js:23464 Uncaught TypeError: Cannot read property 'count' of undefined
normalizeSkinWeights @ three.js:23464
THREE.SkinnedMesh @ three.js:23399
addShellGeometry @ shape.js:127
(anonymous function) @ shape.js:113
dispatchEvent @ three.js:8299
addGeometry @ shell.js:67
workerMessage @ data_loader.js:207
(anonymous function) @ data_loader.js:31
Make it functional and pretty
Need better server-client segmentation for allowing multiple live-views simultaneously.
Get 3D viewer working well for iOS and Android phones and tablets
Need to figure out how to serve files statically.
Need to make sure that models are cleanly removed from the CAD manager.
Make it pretty.
@ghemingway is this still maintained?
Hi, I have a .dwg file. How can I get the json files required by cad.js from it. I tried to convert the .dwg files using autocad to json but none matches with the format you guys have. So what should I do in this situation. I have a .dwg file & want to load this model in this tool (cad js)
Capture ongoing flow of NC state and delta data and serialize to either Redis or filesystem.
I followed all the steps README.md and installed the project on my PC successfully, but now I can not view an example.
After the project is running with ("npm run start-dev"), how I can do to see an example? What request should I do? I've tried several ways but I can not see anything in the browser.
I created a folder "data" as indicated and put the files there that I got after running the command "node scripts/scrapeModel.js -d date/cutter -h http://www.steptools.com/demos/cutter/index.xml" and "node scripts/xmlToJson.js -d date/cutter -i index.xml" at the end made the following request "http://localhost:8080/cad.js?resource_url=/data/modelname/index.xml " and also experimented with "http://localhost:8080/cad.js?resource_url=/data/modelname/index.json" but had no effect and the page was blank.
How do I see an example in the browser?
thanks
Installed per instructions and grabbed example model per these instructions: https://github.com/ghemingway/cad.js/tree/master/docs
However running express server and visiting URL (http://localhost:8080/cad.js?resource_url=/data/rear/index.xml) results in the following:
Any thoughts why this might be the output?
This is a very cool project and I'm very keen to use it in a few projects.
hi, now i work on 3d but faced with difficulties。 I need the function of measuring the distance between two points on 3d object. so does cad.js have this function? Thank you very much.
This will allow them to be rendered in a second render pass after certain effects are applied and also allow bounding boxes to be displayed when the selected object is hidden.
Need to have a nice external interface for interacting with the CAD manager and its models. Internally, this will be most event driven, but from outside of the manager it should be functional.
The config file in redis is called redis.config, while the provided config file in cad.js is a json file called config.json.
How to load this json file into redis server as config ??
Currently it only works for the entire assembly. If an object (shape/assembly/product) is selected then it should focus the view on the selection.
STEP -> XML -> JSON via the application
Framework to enable other formats to be converted to our JSON
Done in conjunction with #22 and STEPTools.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.