Skip to content

Geometry toJSON fix #10657

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

Merged
merged 1 commit into from
Mar 6, 2017
Merged

Geometry toJSON fix #10657

merged 1 commit into from
Mar 6, 2017

Conversation

gelibolue
Copy link
Contributor

Same problem, correct fix #10468
Current geometry.toJSON creates output like this:

{
  "uuid":"E1A66209-4A78-4B74-A760-BFF01BC3FA3E",
  "type":"Geometry",
  "data":
  {
    "vertices":[0,0,0,1,0,0,1,1,0,0,1,0],
    "normals":[],
    "faces":[2,0,1,2,0,2,0,2,3,0]
  }
}

Should be like this (clara.io and blender exporter use this one):

{
  "uuid":"E1A66209-4A78-4B74-A760-BFF01BC3FA3E",
  "type":"Geometry",
  "vertices":[0,0,0,1,0,0,1,1,0,0,1,0],
  "normals":[],
  "faces":[2,0,1,2,0,2,0,2,3,0]
}

@mrdoob mrdoob merged commit 9cc10f5 into mrdoob:dev Mar 6, 2017
@mrdoob
Copy link
Owner

mrdoob commented Mar 6, 2017

Thanks!

mrdoob added a commit that referenced this pull request Mar 6, 2017
mrdoob added a commit that referenced this pull request Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSONLoader not reading stored Mesh files correctly.
2 participants