vilya / miniply Goto Github PK
View Code? Open in Web Editor NEWA fast and easy-to-use PLY parsing library in a single c++11 header and cpp file
License: MIT License
A fast and easy-to-use PLY parsing library in a single c++11 header and cpp file
License: MIT License
Line 651 of convert_list_to_fixed_size should have nameBufSize as the second arg of snprintf, in place of the present sizeof(nameBuf) [which is sizeof(char *)].
Just doing some work with some LIDAR files, and by default they seem to have 'red', 'green' and 'blue' as the property names for colour rather than 'r', 'g', and 'b'.
I'm not really sure if this is an issue with the scanning software or not, but would it be possible to get an alternative function here, or to make the base find_color
more robust? I've added the following to my own code, which works fine.
bool PLYReader::find_color_full_names(uint32_t propIdxs[3]) const
{
return find_properties(propIdxs, 3, "red", "green", "blue");
}
Cheers,
-Ed
Could be that it is slower on macos?
I run same simple read and it jumps from 23~ms to 125ms
the pc computing power, is relativly similar, i would expect jump of +-10 to 20 ms or am i doing something wrong?
This issue is similar to the following:
miniply currently looks for the "vertex_indices" property, but some PLY files have this under "vertex_index" instead. This returns kInvalidIndex
in propIdxs and results in a failure to parse.
bool PLYReader::find_indices(uint32_t propIdxs[1]) const
{
return find_properties(propIdxs, 1, "vertex_indices");
}
http://paulbourke.net/dataformats/ply/ uses vertex_index
in their examples, so it would be a good idea to check for both.
The example code fix done in 48b37d4 is still missing from the readme documnt.
Current it requires a file handle and must read from disk. - so it's not very useful for parsing data transferred over a network - , can it also parse a memory buffer? -
Hi, very impressed with quality of code and performance, I have it working for basic meshes, and would like to know more about is how to support tristrips ?
From ply I have it's files with "element tristrips 1" but with vertex_indices with no fixed size (or to be deduced from vertex num ?
In current code I cannot get far as here "load_variable_size_element" fails because it thinks there is 1 row/count.
(https://github.com/cnr-isti-vclab/vcglib/blob/a8e87662b63ee9f4ded5d4699b28d74183040803/wrap/io_trimesh/import_ply.h#L869 )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.