예제 #1
0
bool BicubicPatch::flat_enough(const ControlPoints *Patch) const
{
    DBL Dist;

    Dist = determine_subpatch_flatness(Patch);

    if (Dist < 0.0)
    {
        return false;
    }
    else
    {
        if (Dist < Flatness_Value)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
예제 #2
0
static int flat_enough(BICUBIC_PATCH *Object, VECTOR (*Patch)[4][4])
{
  DBL Dist;

  Dist = determine_subpatch_flatness(Patch);

  if (Dist < 0.0)
  {
    return (0);
  }
  else
  {
    if (Dist < Object->Flatness_Value)
    {
      return (1);
    }
    else
    {
      return (0);
    }
  }
}