Skip to content

Commit

Permalink
A Data3D section is allowed to have 0 points
Browse files Browse the repository at this point in the history
See ASTM standard Table 9: "recordCount" shall be in the interval [0, 2^63).

Part of #262
  • Loading branch information
asmaloney committed Oct 20, 2023
1 parent e30d652 commit 1b0862e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/E57SimpleData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ namespace e57
/// Validates a Data3D and throws on error.
void _validateData3D( const Data3D &inData3D )
{
if ( inData3D.pointCount < 1 )
{
throw E57_EXCEPTION2( ErrorValueOutOfBounds,
"pointCount=" + toString( inData3D.pointCount ) + " minimum=1" );
}

if ( inData3D.pointFields.pointRangeNodeType == NumericalNodeType::Integer )
{
throw E57_EXCEPTION2( ErrorInvalidNodeType, "pointRangeNodeType cannot be Integer" );
Expand Down

0 comments on commit 1b0862e

Please sign in to comment.