Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's no import examples, and no usage in reference #25

Open
vongoethe opened this issue Feb 16, 2017 · 3 comments
Open

There's no import examples, and no usage in reference #25

vongoethe opened this issue Feb 16, 2017 · 3 comments
Assignees

Comments

@vongoethe
Copy link

I cannot find any information about import operation.
How is it used?
Nothing in the examples and tutorials, even nothing in the docs.
Could you please provide some information?
Thanks

@kovacsv
Copy link
Owner

kovacsv commented Feb 16, 2017

@kovacsv kovacsv self-assigned this Feb 16, 2017
@mauricesvay
Copy link

From the examples, I understand that imported data is converted to JSON, and can only be used with ConvertJSONDataToRenderBodies for rendering.
Is there a way a to merge the imported data with a JSM.Body?

My goal is to import an OBJ file, add some mesh generated with JSM and export the result to OBJ. I don't need to render with three.js. Is it possible?

@kovacsv
Copy link
Owner

kovacsv commented Sep 27, 2017

Unfortunately this convertion is not implemented at the moment, but JSONData is a triangulated representation of the model, so it is easy to convert it to an obj file.

You can create JSONData from a model with the ConvertModelToTriangleModel and ConvertTriangleModelToJsonData functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants