Comments (2)
Oh, you're right, this function will run to the end of the entity. I never needed to implement anything 3D so I didn't test or think about that.
Yeah, those could really be moved out to the entity. We just need to identify all the codes that are possible on the vertices section (if there are more than what's there already). Then the default case in this switch you posted could stop parsing the vertices and return without advancing the scanner.
Do you want to give that a try and submit a PR?
As for the OCS to world stuff, I wrote three-dxf which uses three.js under the hood. Not sure, but maybe Three.js will take care of that for you (assuming you are able to use it in your project).
from dxf-parser.
Maybe just return on default case?
I also use three js. Three would handle it if you put the lines in parent object then rotate the parent, but I need a 2d drawing and don't want to have to rely on three js libs for canvas drawing. I found some c code that I could port over... I'll look through the 3dxf code. I have some tricks iplemented for large dxf files, and would love to pick up any optimizations you have.
I'll do a PR tomorrow. Thanks
from dxf-parser.
Related Issues (20)
- Group code does not have a defined type:
- 'should parse MULTILEADER entities' test fails because `leaders.dxf` is missing HOT 1
- Test 'should parse a complex BLOCKS section' is failing
- Problem with parsing/showing ARC entity HOT 3
- Can read/write DXF files in binary form? HOT 1
- final vertex of 3DFACE not being added to entity vertex list when encountering a code other than 0
- How to combine color of walls with color of closed area
- I decided this repo was dead and created a new parser repository.
- Support for pdf HOT 1
- How to handle large points HOT 1
- DxfParser export seems broken HOT 1
- `TypeError: Cannot call a class as a function` in tests
- npm or yarn? HOT 1
- Compilation issue with ParseHelpers HOT 3
- Question - Ability to read group of elements HOT 1
- How can get perimeter of DXF File ?
- Parsing blocks with attributes HOT 1
- The angle always in radians
- Types?
- How to convert to DXF JSON
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-parser.