open_toontown_panda3d/panda/src/egg/eggPatch.cxx

38 lines
1.1 KiB
C++
Executable File

// Filename: eggPatch.cxx
// Created by: drose (27Apr12)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#include "eggPatch.h"
#include "eggGroupNode.h"
#include "plane.h"
#include "indent.h"
#include <algorithm>
TypeHandle EggPatch::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: EggPatch::write
// Access: Published, Virtual
// Description: Writes the patch to the indicated output stream in
// Egg format.
////////////////////////////////////////////////////////////////////
void EggPatch::
write(ostream &out, int indent_level) const {
write_header(out, indent_level, "<Patch>");
write_body(out, indent_level+2);
indent(out, indent_level) << "}\n";
}