Skip to content

Instantly share code, notes, and snippets.

@SilverIce
Created July 10, 2011 07:27
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 SilverIce/1074352 to your computer and use it in GitHub Desktop.
Save SilverIce/1074352 to your computer and use it in GitHub Desktop.
void Extract()
{
List<Vector3> points;
uint32 splineflags;
if (splineflags & (Flying | Catmullrom))
{
if (splineflags & Cyclic) // 0x00080000
{
points.RemoveAT(0);
if (splineflags & Enter_Cycle) // 0x00100000
points.RemoveAT(0);
points.RemoveAT(points.count - 1);
points.RemoveAT(points.count - 1);
}
else
{
points.RemoveAT(0);
points.RemoveAT(points.count - 1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment