Skip to content

This random page is the page that you have to see, no one has the same page than you, she was made for you

Notifications You must be signed in to change notification settings

martinezguillaume/random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random

This random page is the page that you have to see, no one has the same page than you, she was made for you

THREE.JS

Load JSON object

  lifecycle({
    componentDidMount() {
      // Create meshes from JSON
      const meshes = [];

      const parsedModel = new ParsedModel();
      parsedModel.load('test.dae')
      .then(() => {
        parsedModel.geometries.forEach((geometry, uuid) => {
          const material = parsedModel.materialsArray[parsedModel.materialIndices.get(uuid)];
          meshes.push(
            $('mesh', { key: uuid },
              $('geometry', {
                vertices: geometry.vertices,
                faces: geometry.faces,
              }),
              createMaterial(material),
            ),
          );
        });
        this.props.setMeshes(meshes);
        console.log('meshes', meshes)
      });
    },
  }),

About

This random page is the page that you have to see, no one has the same page than you, she was made for you

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published