Skip to content

Instantly share code, notes, and snippets.

@Rallaz
Created March 20, 2013 18:36
Show Gist options
  • Save Rallaz/5207255 to your computer and use it in GitHub Desktop.
Save Rallaz/5207255 to your computer and use it in GitHub Desktop.
/* BitThickness
* For R13-R14, this is a BD. We are asserting that the version
* is not R13-R14; this value should be read by the user
* For R2000+, this is a single bit, If the bit is one,
* the thickness value is assumed to be 0.0, if not a BD follow
*/
void dwgBuffer::getThickness(bool b_R2000_style) {
if ( b_R2000_style )
/* If the bit is one, the thickness value is assumed to be 0.0.*/
if ( getBit() == 1 )
return 0.0;
/*R13-R14 or bit == 0*/
return getBitDouble();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment