예제 #1
0
파일: sqtool.c 프로젝트: DimondTheCat/xray
static LWError SuperQ_Build( sqData *tool, MeshEditOp *edit )
{
   int ok;
   switch ( tool->shape ) {
      case 0:  ok = ellipsoid( edit, tool );  break;
      case 1:  ok = toroid( edit, tool );     break;
      default: break;
   }
   tool->update = LWT_TEST_NOTHING;
   return ok ? NULL : "Failed";
}
예제 #2
0
파일: toroid.cpp 프로젝트: avalero/OOML
int main(int argc, char **argv)
{
  IndentWriter writer;
  Component2D circle(Circle::create(1.0).translate(2, 0, 0));
  Component toroid(circle.rotateExtrudedCopy());

  writer << toroid;

  Component toroid2(Toroid(2.0, 1.0));

  writer << toroid2;
  std::cout << writer;

  return 0;
}