Skip to content

Instantly share code, notes, and snippets.

@mpictor
Created June 18, 2011 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpictor/1033017 to your computer and use it in GitHub Desktop.
Save mpictor/1033017 to your computer and use it in GitHub Desktop.
Pre-processed source from OCE; EKOPath has a floating point exception
//simplified with delta, delta.tigris.org - thanks C. Bergström!
class Standard_Transient {};
class Handle_Standard_Transient {
public:
Handle_Standard_Transient(): entity(((Standard_Transient *)0xfefdfefdfefd0000)){}
Handle_Standard_Transient& operator=(const Handle_Standard_Transient& aHandle){}
Standard_Transient *entity;
};
class Interface_EntityCluster : public Standard_Transient {
unsigned int Remove(const int num) ;
int NbLocal() const;
Handle_Standard_Transient theents[4];
};
unsigned int Interface_EntityCluster::Remove(const int num) {
int n = NbLocal();
for (int j = num; j < n; j --)
theents[j-1] = theents[j];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment