Re: [MORPHMET] Error with read.ply in geomorph
Thanks again, Emma. On Mon, Dec 15, 2014 at 8:02 PM, Emma Sherratt emma.sherr...@gmail.com wrote: Dear David and Stefan, The issue was that the PLY file of David has textures, which our read.ply function currently does not support. Resaving the file without the texture information made the file readable. FYI Stefan, the original file read fine with your vsgImport function, but only when readcolor=FALSE. When TRUE, it crashed R. Emma On Tuesday, 16 December 2014 05:34:00 UTC+11, Stefan Schlager wrote: Hi David, You can use either vcgImport from Rvcg or file2mesh from Morpho (which is basically the same) to import all kinds of meshes (stl, obj, ply) binary and ascii into an object of class mesh3d Best Stefan On 15/12/14 01:52, David Katz wrote: Hello, When I try to read a 3D surface file (ply ascii format) into geomorph, I get the following error: Error in dim(points) - c(ncolpts, npoints) : dims [product 6426920] do not match the length of object [5784228] For what it's worth, length of object is *exactly *90% of dims. Does anyone have an idea where this problem is coming from and how to fix it? Note that the model opens without difficulty as a binary ply in Geomagic. Thanks. David Katz -- David Katz Doctoral Candidate Department of Anthropology--Evolutionary Wing University of California, Davis Young Hall 204 -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+u...@morphometrics.org. -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org. -- David Katz Doctoral Candidate Department of Anthropology--Evolutionary Wing University of California, Davis Young Hall 204 -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org.
Re: [MORPHMET] Error with read.ply in geomorph
Hi Emma, which version of Rvcg did you use? could you send me the file for debugging? I have tested the function with a variety of textured files without issues (at least no R crashes). in case your file is not a png and/or split into multiple images, you should get a message stating: please convert texture images to png format only single texture files supported, only first one stored and if that is the case, when rendering with rgl you will get a warning: Warning message: In rgl.material(...) : RGL: Pixmap load: unable to open file 'Desktop/smilla1_0.png' for reading Best Stefan On 16/12/14 05:02, Emma Sherratt wrote: Dear David and Stefan, The issue was that the PLY file of David has textures, which our read.ply function currently does not support. Resaving the file without the texture information made the file readable. FYI Stefan, the original file read fine with your vsgImport function, but only when readcolor=FALSE. When TRUE, it crashed R. Emma On Tuesday, 16 December 2014 05:34:00 UTC+11, Stefan Schlager wrote: Hi David, You can use either vcgImport from Rvcg or file2mesh from Morpho (which is basically the same) to import all kinds of meshes (stl, obj, ply) binary and ascii into an object of class mesh3d Best Stefan On 15/12/14 01:52, David Katz wrote: Hello, When I try to read a 3D surface file (ply ascii format) into geomorph, I get the following error: Error in dim(points) - c(ncolpts, npoints) : dims [product 6426920] do not match the length of object [5784228] For what it's worth, length of object is /exactly /90% of dims. Does anyone have an idea where this problem is coming from and how to fix it? Note that the model opens without difficulty as a binary ply in Geomagic. Thanks. David Katz -- David Katz Doctoral Candidate Department of Anthropology--Evolutionary Wing University of California, Davis Young Hall 204 -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+u...@morphometrics.org javascript:. -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org mailto:morphmet+unsubscr...@morphometrics.org. -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org. signature.asc Description: OpenPGP digital signature