Skip to content

Commit

Permalink
Use Simbody's native PolygonalMesh rather than stale copy (#3972)
Browse files Browse the repository at this point in the history
* Use Simbody's native PolygonalMesh rather than the old proxy we used in opensim-core

* Add method that takes normal String to workaround swig failure to handle SimTK::String for pathname
  • Loading branch information
aymanhab authored Dec 14, 2024
1 parent 5bf2b07 commit aaab82c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 268 deletions.
267 changes: 0 additions & 267 deletions Bindings/SWIGSimTK/PolygonalMesh.h

This file was deleted.

8 changes: 7 additions & 1 deletion Bindings/simbody.i
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ namespace SimTK {
%template(ArrayIndexInt) ArrayIndexTraits<int>;
}

%include <SWIGSimTK/PolygonalMesh.h>
%include <SimTKcommon/internal/PolygonalMesh.h>
%include <SWIGSimTK/DecorativeGeometry.h>


Expand Down Expand Up @@ -354,5 +354,11 @@ namespace SimTK {
return key;
}
}
%extend PolygonalMesh {
void loadFile(const std::string& pathname) {
// SWIG cant handle SimTK::String despite autoconversion
$self->loadFile(pathname);
}
}
}

0 comments on commit aaab82c

Please sign in to comment.