GithubHelp home page GithubHelp logo

dxf-to-ply-converter's Introduction

DXF-to-PLY-converter

Running Command:

awk -f dxf-ply.awk input.dxf > output.ply 2> error.log

Logic:

Excracting x, y & z coordinates:
 x1:10, y1:20, z1:30;
 x2:11, y2:21, z2:31;
 x3:12, y3:22, z3:32;
Calcuating the indices of a face from a set of coordinates:

index = coordinate_index * dimensions + coordinate_dimension
eg:

(0.0, 0.0, 0.0) -> 0 * 3 + 0 = 0
(1.0, 0.0, 0.0) -> 1 * 3 + 0 = 3
(0.0, 1.0, 0.0) -> 2 * 3 + 1 = 7
(0.0, 0.0, 1.0) -> 3 * 3 + 2 = 11

SOURCES:

The PLY Polygon File Format:

https://web.archive.org/web/20161204152348/http://www.dcs.ed.ac.uk/teaching/cs4/www/graphics/Web/ply.html
http://paulbourke.net/dataformats/ply/
https://brainder.org/tag/ply/

DXF:

http://paulbourke.net/dataformats/dxf/dxf10.html
http://paulbourke.net/dataformats/dxf/min3d.html
http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
https://www.fileformat.info/format/dxf/egff.htm

Useful tools:

Online converter: https://products.aspose.app/3d/conversion/dxf-to-ply
FreeCAD: https://github.com/FreeCAD/FreeCAD
meshlab: https://github.com/cnr-isti-vclab/meshlab

dxf-to-ply-converter's People

Contributors

wesamabadi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.