thi-ng / geom

2D/3D geometry toolkit for Clojure/Clojurescript
Apache License 2.0
953 stars 79 forks source link

how to export step/igs/webgl from Obj? #78

Closed selvakarna closed 4 years ago

selvakarna commented 4 years ago

how to export step/igs/webgl from Obj?

postspectacular commented 4 years ago

Hi @selvakarna - do you mean converting an OBJ file to Step/IGES? Unfortunately neither of these are directly supported here, but I'm working on an IGES exporter in TypeScript. Even that is not a fully automated solution and will still require 1) a 3rd party OBJ parser and 2) step-by-step construction of the result IGES document (iterate over all mesh faces and add each to the doc). Furthermore, that package only supports polygons & polylines right now, but that would be sufficient for OBJ geometry...

selvakarna commented 4 years ago

Hi @postspectacular , thanks for reference , can you share , sample code for IGES or STEP export from polylines ?

selvakarna commented 4 years ago

How to install this package ? can you share package name and all.

postspectacular commented 4 years ago

Hey, as I mentioned, this is not a Clojure project, but a TypeScript package (compiled to JavaScript) and installation details are included in the above linked readme file. You should be able to use this (or other NPM modules) with ClojureScript though: https://clojurescript.org/guides/javascript-modules#node-modules - I have not tried this myself though and can't really help with that...