public PShapeOBJ(PApplet parent, BufferedReader reader) { ArrayList<OBJFace> faces = new ArrayList<OBJFace>(); ArrayList<OBJMaterial> materials = new ArrayList<OBJMaterial>(); ArrayList<PVector> coords = new ArrayList<PVector>(); ArrayList<PVector> normals = new ArrayList<PVector>(); ArrayList<PVector> texcoords = new ArrayList<PVector>(); parseOBJ(parent, reader, faces, materials, coords, normals, texcoords); // The OBJ geometry is stored with each face in a separate child shape. parent = null; family = GROUP; addChildren(faces, materials, coords, normals, texcoords); }
public PShapeOBJ(PApplet parent, BufferedReader reader, String basePath) { ArrayList<OBJFace> faces = new ArrayList<OBJFace>(); ArrayList<OBJMaterial> materials = new ArrayList<OBJMaterial>(); ArrayList<PVector> coords = new ArrayList<PVector>(); ArrayList<PVector> normals = new ArrayList<PVector>(); ArrayList<PVector> texcoords = new ArrayList<PVector>(); parseOBJ(parent, basePath, reader, faces, materials, coords, normals, texcoords); // The OBJ geometry is stored with each face in a separate child shape. parent = null; family = GROUP; addChildren(faces, materials, coords, normals, texcoords); }