File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,27 @@ namespace OpenSim {
382
382
%include <OpenSim/Common/CSVFileAdapter.h>
383
383
%include <OpenSim/Common/C3DFileAdapter.h>
384
384
385
+ %extend OpenSim::C3DFileAdapter {
386
+ Tables read (const std::string& fileName, unsigned int wrt) {
387
+ C3DFileAdapter::ForceLocation location;
388
+ switch (wrt) {
389
+ case 0 :
390
+ location = C3DFileAdapter::ForceLocation::OriginOfForcePlate;
391
+ break ;
392
+ case 1 :
393
+ location = C3DFileAdapter::ForceLocation::CenterOfPressure;
394
+ break ;
395
+ case 2 :
396
+ location = C3DFileAdapter::ForceLocation::PointOfWrenchApplication;
397
+ break ;
398
+ default :
399
+ throw OpenSim::Exception{
400
+ " An invalid C3DFileAdapter::ForceLocation was provided." };
401
+ }
402
+ return C3DFileAdapter::read (fileName, location);
403
+ };
404
+ };
405
+
385
406
namespace OpenSim {
386
407
%ignore TableSource_::TableSource_ (TableSource_ &&);
387
408
}
You can’t perform that action at this time.
0 commit comments