Skip to content

Commit ac2f930

Browse files
committed
[ci skip] [appveyor skip] Add reference to BTK code for exporting values as blank.
1 parent c776edd commit ac2f930

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OpenSim/Common/C3DFileAdapter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ C3DFileAdapter::extendRead(const std::string& fileName) const {
120120
// BTK reads empty values as zero, but sets a "residual" value
121121
// to -1 and it is how it knows to export these values as
122122
// blank, instead of 0, when exporting to .trc
123+
// See: BTKCore/Code/IO/btkTRCFileIO.cpp#L359-L360
123124
// Read in value if it is not zero or residual is not -1
124125
if (!pt->GetValues().row(f).isZero() || //not precisely zero
125126
(pt->GetResiduals().coeff(f) != -1) ) {//residual is not -1

0 commit comments

Comments
 (0)