Replies: 5 comments 17 replies
-
This is a fantastic project. Thank you very much. I think I already know the answer to this but... How much work would it take to make this a 3D viewer? I'm guessing the answer is "a lot" / "too much for this project"? The only reason I'm asking is that I note that you're basing the rendering on three.js and using WebGL - so that gives me a glimmer of hope... FWIW, I'm extremely impressed by the performance of the viewer. Using your example viewer project and a 400MB dxf (produced from a Rhino file) and it renders quickly (quicker than AutoCADs DXF TrueView desktop viewer!) (Posting this as a discussion rather than an issue - is that kosher?) |
Beta Was this translation helpful? Give feedback.
-
@mirh1 I have seen your recent issue in |
Beta Was this translation helpful? Give feedback.
-
FWIW I've created a React sample - here: dxf-viewer-react There are still a few kinks to work out. I'm not sure how best to "publicize" this for folks who prefer React than Vue. Some possibilities:
To be clear - I only want to "publicize" this React version so as to help potential dxf-viewer users get started with this awesome package. And I can't figure out how to submit a pull request for a new example app :-) |
Beta Was this translation helpful? Give feedback.
-
In my application that uses DxfViewer I want to be able to highlight an entity in the rendered view. This is how I'm thinking of approaching the problem: All the above is straightforward for me - apart from the last step (2.2). My question is how would it be best to insert a bounding box into the scene? I can think of three general approaches:
I think option 3 is the best approach. Do you agree? With the implementation of this option, I could "brute force" things I think, and tear down the scene, merge in the new fragment and rebuild the scene from scratch. However, it strikes me one could be much more "surgical" in the approach and would only need to add to the pre-existing scene. Also, the more surgical approach might allow for dynamic drawing on the scene with the mouse (this isn't a requirement for my initial app but would be cool for "lassoing" objects in later versions) I'm going to go ahead and start work on the brute force approach to option 3. This will allow me to complete my proof-of-concept app and my initial test files are small anyway! I'd love to hear any and all input on any of the above - especially alternative approaches (in case I'm looking at the problem all wrong!) |
Beta Was this translation helpful? Give feedback.
-
Regarding migrating the next release to TypeScript. Please don't. I'm sure your mind is already made up. If so, then of course, that's cool. If you're on the fence - please don't. Look at it this way - by not adding TypeScript you'll be able to put that extra time into new features. Are you convinced that implementing DxfViewer in TypeScript will bring a net productivity gain (over time). I'm just a sample of one - but if this project had been written in TS I probably wouldn't have taken the time to contribute to it (I know they're only small contributions!) I realize I'm swimming against the tide on this one! |
Beta Was this translation helpful? Give feedback.
-
Place for any project-related questions and discussions.
Beta Was this translation helpful? Give feedback.
All reactions