Examples of copyTextureAndMaterial()


Examples of artofillusion.object.TriangleMesh.copyTextureAndMaterial()

    // Construct the new mesh.
   
    TriangleMesh newmesh = new TriangleMesh(v, f);
    Edge newedge[] = newmesh.getEdges();
    newmesh.getSkeleton().copy(theMesh.getSkeleton());
    newmesh.copyTextureAndMaterial(theMesh);
    newmesh.setSmoothingMethod(theMesh.getSmoothingMethod());
    newmesh.setParameterValues(newParamVal);
   
    // Copy over the smoothness values for edges.
   
View Full Code Here

Examples of artofillusion.object.TriangleMesh.copyTextureAndMaterial()

    // Create the new mesh.
   
    TriangleMesh newmesh = new TriangleMesh(newvert, newface);
    Vertex newvt[] = (Vertex []) newmesh.getVertices();
    Edge newed[] = newmesh.getEdges();
    newmesh.copyTextureAndMaterial(theMesh);
    newmesh.setSmoothingMethod(theMesh.getSmoothingMethod());

    // Update the texture parameters.
   
    TextureParameter param[] = theMesh.getParameters();
View Full Code Here

Examples of artofillusion.object.TriangleMesh.copyTextureAndMaterial()

    // Create the new mesh.
   
    TriangleMesh newmesh = new TriangleMesh(newvert, newface);
    Vertex newvt[] = (Vertex []) newmesh.getVertices();
    Edge newed[] = newmesh.getEdges();
    newmesh.copyTextureAndMaterial(theMesh);
    newmesh.setSmoothingMethod(theMesh.getSmoothingMethod());

    // Update the texture parameters.
   
    TextureParameter param[] = theMesh.getParameters();
View Full Code Here

Examples of artofillusion.object.TriangleMesh.copyTextureAndMaterial()

    int f[][] = new int[faces.size()][];
    count = 0;
    for (Integer face : faces)
      f[count++] = new int[] {vertIndex[fc[face].v1], vertIndex[fc[face].v2], vertIndex[fc[face].v3]};
    TriangleMesh mesh = new TriangleMesh(v, f);
    mesh.copyTextureAndMaterial(theMesh);
    mesh.setSmoothingMethod(theMesh.getSmoothingMethod());

    // Verify that it is a valid mesh.

    int vertexEdgeCount[] = new int[vertices.size()];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.