Comments (10)
Hi! You can use DxfViewer.GetScene()
method to obtain three.js
scene object which can be used to add any additional objects to render. To match model space coordinates you should subtract scene origin from your objects coordinates. The origin can be obtained by DxfViewer.GetOrigin()
method.
from dxf-viewer.
Hi Vagran,
thanks for your response, where is tutorial for instalation without node, i want install only javascript+html version.
When i install via node cmd with command : npm install dxf-viewer I get the result:
I dont see example version in HTML + Javascript :-(
from dxf-viewer.
There is currently no any bundle build. You can find usage example in typical full-featured web application here.
from dxf-viewer.
Will this compilation be available?
from dxf-viewer.
Currently it is not planned for this version. Bundle building is planned for next major release which will be rewritten in TypeScript.
from dxf-viewer.
I understand, can you help me run your solution from the simplest version without node to open a dxf file? Only html and js?
from dxf-viewer.
I doubt I can help there, since I am not really familiar with modern web application build toolchain, so I also need to spend some time for some research. You may invest your time in learning some of web building tools (like rollup, webpack, esbuild etc.) and producing a bundle. Then check the code in the example mentioned above to get basic understanding how the library is used.
from dxf-viewer.
Ok, where i find documentation?
from dxf-viewer.
The library API is documented by JsDoc comments in the source code.
from dxf-viewer.
Thanks, but still i dont know how i can run this library, i need simple example only index.html where i add patch to the dxf file, and finally in browser index.html show dxf file...
from dxf-viewer.
Related Issues (20)
- Return type of GetCamera() HOT 1
- The wrong layer and color are assigned to the MTEXT entity where blockCtx exists.
- Some Questions about the Parameters in the TextDecoder() Method HOT 6
- Question: How to determine whether the drawn content is a whole? HOT 2
- Question: All geometries use RawShaderMaterial ? HOT 1
- Calculation Enhancements for DXF Files in Metal Laser Cutting HOT 1
- Could not load ShapePath imported by node_modules textRenderer.js HOT 6
- Can read/write DXF files in binary form?
- Can read/write DXF files in binary form? HOT 1
- Support DIMBLK HOT 2
- Cannot be used on the Vue3 project HOT 2
- How to get clientX and clientY on pointerdown event? HOT 3
- Question: How can external users get this.controls
- Input coordinates how to focus
- Module parse failed HOT 1
- ParseError: 'import' and 'export' may appear only with 'sourceType: module' HOT 2
- Problems with for ANSI31/SOLID pattern hatches HOT 7
- Are the coordinates of the loaded dxf drawings consistent with those of cad? HOT 1
- 3D entities and arbitrary extrusion direction for planar entities HOT 2
- How to compute scale? The dxf is vector illustration, how to compute scale in dxf-viewer ? HOT 2
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 dxf-viewer.