Comments (5)
ah sorry, I saw the exception in my setup comes already when I check the version (and not in the convert itself)
node convert2xkt.js -v
from xeokit-convert.
Looks fine to me, that's a valid JavaScript expression. What error condition are you experiencing?
from xeokit-convert.
from xeokit-convert.
What are you doing to get this error?
convert2xkt.js
has no problem with this statement when executed via NodeJS, eg.
node convert2xkt.js -s Duplex.gltf -o test.xkt -l
[convert2xkt] Running convert2xkt v1.1.15-beta-1...
[convert2xkt] Using configs in ./convert2xkt.conf.js
[convert2xkt] Converting single input file Duplex.gltf...
[convert2xkt] Reading input file: /Duplex.gltf
[convert2xkt] Input file size: 1433.53 kB
[convert2xkt] Using parser: parseGLTFJSONIntoXKTModel
[convert2xkt] Parsing normals: disabled
[convert2xkt] Input file parsed OK. Building XKT document...
[convert2xkt] XKT document built OK. Writing to XKT file...
[convert2xkt] Converted to: XKT v10
[convert2xkt] Exclude types:
[convert2xkt] XKT size: 96.46 kB
[convert2xkt] XKT textures size: 0.01kB
[convert2xkt] Compression ratio: 14.86
[convert2xkt] Conversion time: 0.36 s
[convert2xkt] Converted metaobjects: 0
[convert2xkt] Converted property sets: 0
[convert2xkt] Converted drawable objects: 291
[convert2xkt] Converted geometries: 252
[convert2xkt] Converted textures: 0
[convert2xkt] Converted textureSets: 0
[convert2xkt] Converted triangles: 15874
[convert2xkt] Converted vertices: 25262
[convert2xkt] Converted UVs: 0
[convert2xkt] Converted normals: 0
[convert2xkt] minTileSize: 200
[convert2xkt] Writing XKT file: test.xkt
[convert2xkt] Done.
from xeokit-convert.
I additionally use the -m option to read the metadata json from creoox
node convert2xkt.js -s Duplex.gltf -o test.xkt -m Duplex.json
Anyway, I switched back to latest NON beta currently
from xeokit-convert.
Related Issues (20)
- Option to disable ZIPping in XKT
- [FIX] Fix conversion of JSON glTF with embedded textures
- Issue with IFC to XKT Conversion Resulting in Reduced Model Sizes
- [FEATURE] Add externalMetadata option for glTF and GLB
- Cannot create a string longer than 0x1fffffe8 characters HOT 3
- IFC ==> XKT - IFCBOOLEAN
- [ERROR]: [parseGLTFIntoXKTModel] RangeError: Invalid typed array length HOT 5
- Deprecate glTF conversion in favor of .glb
- Unsupported value for params.primitiveType HOT 2
- [parseGLTFIntoXKTModel] RangeError: Invalid array length HOT 13
- Can I decode the xktArrayBuffer by calling toString() ? HOT 2
- problem on npm i weokit/report HOT 6
- can not run nodejs from latest release
- Provide hint in logged error for [ERROR]: [parseGLTFIntoXKTModel] RangeError: Invalid typed array length: 11340
- [FEATURE SUGGESTION] Add TypeScript HOT 1
- [FIX] Make convert2xkt configs argument optional HOT 5
- Cannot read properties of undefined (reading 'IfcAPI')
- Update web-ifc version
- commande line convert on ubuntu don't exclude (from ifc to xkt)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeokit-convert.