Skip to content
Permalink
Browse files

fix loading of classes

  • Loading branch information
wonder-sk authored and nyalldawson committed Oct 26, 2020
1 parent a3da3b3 commit 956315809a9e59ec989290b21c46396900e89f54
@@ -73,7 +73,7 @@ void QgsPointCloud3DGeometry::makeVertexBuffer( const QgsPointCloud3DSymbolHandl
vertexBufferData.resize( data.positions.size() * 4 * sizeof( float ) );
float *rawVertexArray = reinterpret_cast<float *>( vertexBufferData.data() );
int idx = 0;
int i = 0;
Q_ASSERT( data.positions.count() == data.classes.count() );
for ( int i = 0; i < data.positions.size(); ++i )
{
rawVertexArray[idx++] = data.positions.at( i ).x();
@@ -17,7 +17,7 @@ void main(void)
else if ( abs( clsid - 12 ) < 0.1 ) // overlaps
{
color = vec4(1,0,0,1);
//discard;
discard; // skip overlaps
}
else
{
@@ -68,7 +68,7 @@ QVector<char> QgsPointCloudDecoder::decompressBinaryClasses( const QString &file
// qint32 z = *(double*)(ptData+16);
char cls = bytes[30];
// vertices.push_back( Point3D( x, y, z ) );
classes.push_back( cls );
classes[i] = cls;
//++count;
}
return classes;

0 comments on commit 9563158

Please sign in to comment.
You can’t perform that action at this time.